ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ivasilin...@apache.org
Subject incubator-ignite git commit: #ignite-sberb-34: debug info.
Date Thu, 02 Jul 2015 10:32:04 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-sberb-34 [created] 9b7b96635


#ignite-sberb-34: debug info.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/9b7b9663
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/9b7b9663
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/9b7b9663

Branch: refs/heads/ignite-sberb-34
Commit: 9b7b966350c37cb27037c9ec7c3e35f6ce8c4958
Parents: da6ff64
Author: ivasilinets <ivasilinets@gridgain.com>
Authored: Thu Jul 2 13:31:20 2015 +0300
Committer: ivasilinets <ivasilinets@gridgain.com>
Committed: Thu Jul 2 13:31:20 2015 +0300

----------------------------------------------------------------------
 .../main/java/org/apache/ignite/internal/util/IgniteUtils.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/9b7b9663/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java b/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
index f457d6c..96af8aa 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
@@ -8048,9 +8048,13 @@ public abstract class IgniteUtils {
     public static String consistentId(Collection<String> addrs, int port) {
         assert !F.isEmpty(addrs);
 
+        List<String> sortAddrs = new ArrayList(addrs);
+
+        Collections.sort(sortAddrs);
+
         StringBuilder sb = new StringBuilder();
 
-        for (String addr : addrs)
+        for (String addr : sortAddrs)
             sb.append(addr).append(',');
 
         sb.delete(sb.length() - 1, sb.length());


Mime
View raw message