You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by mm...@apache.org on 2020/04/23 09:47:59 UTC

[ignite] branch master updated: IGNITE-12927: Fix flaky testRebalancingLastCancelledTime test. (#7709)

This is an automated email from the ASF dual-hosted git repository.

mmuzaf pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git


The following commit(s) were added to refs/heads/master by this push:
     new c6bfa69  IGNITE-12927: Fix flaky testRebalancingLastCancelledTime test. (#7709)
c6bfa69 is described below

commit c6bfa69b009e4991b59260e30250fd4350b99d67
Author: Nikita Amelchev <ns...@gmail.com>
AuthorDate: Thu Apr 23 12:47:42 2020 +0300

    IGNITE-12927: Fix flaky testRebalancingLastCancelledTime test. (#7709)
---
 .../internal/processors/cache/CacheGroupsMetricsRebalanceTest.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheGroupsMetricsRebalanceTest.java b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheGroupsMetricsRebalanceTest.java
index ab11826..ac23e28 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheGroupsMetricsRebalanceTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/CacheGroupsMetricsRebalanceTest.java
@@ -311,7 +311,7 @@ public class CacheGroupsMetricsRebalanceTest extends GridCommonAbstractTest {
         List<String> cacheNames = Lists.newArrayList(CACHE4, CACHE5);
 
         for (String cacheName : cacheNames) {
-            ignite0.getOrCreateCache(cacheName).putAll(new Random().ints(KEYS_COUNT).boxed()
+            ignite0.getOrCreateCache(cacheName).putAll(new Random().ints(KEYS_COUNT).distinct().boxed()
                 .collect(Collectors.toMap(i -> i, i -> (long)i)));
         }