Skip to content

Commit 081199b

Browse files
committed
fix (BaseClient): do not randomize the urls that are sorted
1 parent 7781d39 commit 081199b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/DIRAC/Core/DISET/private/BaseClient.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def __findServiceURL(self):
323323
pass
324324

325325
# We randomize the list, and add at the end the failover URLs (System/FailoverURLs/Component)
326-
urlsList = List.randomize(List.fromChar(urls, ",")) + failoverUrls
326+
urlsList = List.fromChar(urls, ",") + failoverUrls
327327
self.__nbOfUrls = len(urlsList)
328328
self.__nbOfRetry = (
329329
2 if self.__nbOfUrls > 2 else 3
@@ -445,7 +445,6 @@ def _connect(self):
445445
return self.__initStatus
446446
if self.__enableThreadCheck:
447447
self.__checkThreadID()
448-
449448
gLogger.debug(f"Trying to connect to: {self.serviceURL}")
450449
try:
451450
# Calls the transport method of the apropriate protocol.

0 commit comments

Comments
 (0)