ivandasch commented on a change in pull request #8374:
URL: https://github.com/apache/ignite/pull/8374#discussion_r508501971
##########
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:
Are you sure that creating the same map on each iteration is a good idea?
----------------------------------------------------------------
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:
[email protected]