You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ignite.apache.org by GitBox <gi...@apache.org> on 2020/10/20 13:43:11 UTC

[GitHub] [ignite] anton-vinogradov commented on a change in pull request #8374: IGNITE-13599 Switch tests should have better precision

anton-vinogradov commented on a change in pull request #8374:
URL: https://github.com/apache/ignite/pull/8374#discussion_r508514521



##########
File path: modules/ducktests/src/main/java/org/apache/ignite/internal/ducktest/tests/cellular_affinity_test/CellularTxStreamer.java
##########
@@ -58,26 +63,30 @@
 
         Affinity<Integer> aff = ignite.affinity(cacheName);
 
-        while (!terminated()) {
-            key++;
+        List<Integer> cellKeys = new ArrayList<>();
+
+        int candidate = 0;
 
-            Collection<ClusterNode> nodes = aff.mapKeyToPrimaryAndBackups(key);
+        while (cellKeys.size() < 100) {
+            Collection<ClusterNode> nodes = aff.mapKeyToPrimaryAndBackups(++candidate);
 
             Map<Object, Long> stat = nodes.stream().collect(

Review comment:
       each key has it's own map




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org