You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ag...@apache.org on 2018/10/27 11:24:24 UTC
ignite git commit: IGNITE-10020 Fixed control.sh error comparison
method violates its general contract - Fixes #5087.
Repository: ignite
Updated Branches:
refs/heads/master ad99fbae7 -> e111d895e
IGNITE-10020 Fixed control.sh error comparison method violates its general contract - Fixes #5087.
Signed-off-by: Alexey Goncharuk <al...@gmail.com>
Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/e111d895
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/e111d895
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/e111d895
Branch: refs/heads/master
Commit: e111d895e7f7f32d6f764683ba8412d61d370455
Parents: ad99fba
Author: a-polyakov <po...@gmail.com>
Authored: Sat Oct 27 14:23:06 2018 +0300
Committer: Alexey Goncharuk <al...@gmail.com>
Committed: Sat Oct 27 14:23:06 2018 +0300
----------------------------------------------------------------------
.../cache/distribution/CacheDistributionTaskResult.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ignite/blob/e111d895/modules/core/src/main/java/org/apache/ignite/internal/commandline/cache/distribution/CacheDistributionTaskResult.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/commandline/cache/distribution/CacheDistributionTaskResult.java b/modules/core/src/main/java/org/apache/ignite/internal/commandline/cache/distribution/CacheDistributionTaskResult.java
index 71de3bb..52c6eec 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/commandline/cache/distribution/CacheDistributionTaskResult.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/commandline/cache/distribution/CacheDistributionTaskResult.java
@@ -294,10 +294,10 @@ public class CacheDistributionTaskResult extends VisorDataTransferObject {
Row other = (Row)o;
- int res = grpId - other.grpId;
+ int res = Integer.compare(grpId, other.grpId);
if (res == 0) {
- res = partId - other.partId;
+ res = Integer.compare(partId, other.partId);
if (res == 0)
res = nodeId.compareTo(other.nodeId);