IGNITE-10020 Fixed control.sh error comparison method violates its general contract - Fixes #5087.
Signed-off-by: Alexey Goncharuk <alexey.goncha...@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/ignite-627 Commit: e111d895e7f7f32d6f764683ba8412d61d370455 Parents: ad99fba Author: a-polyakov <polyakov.alexandr.alexandrov...@gmail.com> Authored: Sat Oct 27 14:23:06 2018 +0300 Committer: Alexey Goncharuk <alexey.goncha...@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);