ptupitsyn commented on a change in pull request #9522:
URL: https://github.com/apache/ignite/pull/9522#discussion_r738304340



##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/client/thin/ReliableChannel.java
##########
@@ -644,7 +643,18 @@ synchronized boolean initChannelHolders() {
         if (idx != -1)
             currDfltHolder = holders.get(idx);
 
-        for (InetSocketAddress addr : allAddrs) {
+        List<InetSocketAddress> allAddrsSorted = new ArrayList<>(allAddrs);
+
+        allAddrsSorted.sort((a1, a2) -> {

Review comment:
       To clarify - let's establish a stable behavior:
   * If `AddressesFinder` is present, use addresses from there in the provided 
order
   * Otherwise, use `Addresses` is the provided order




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to