RodionSmolnikovGG commented on a change in pull request #9362:
URL: https://github.com/apache/ignite/pull/9362#discussion_r703002519
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/visor/tx/VisorTxTask.java
##########
@@ -120,7 +122,11 @@
/** {@inheritDoc} */
@Nullable @Override protected Map<ClusterNode, VisorTxTaskResult>
reduce0(List<ComputeJobResult> results) throws IgniteException {
- Map<ClusterNode, VisorTxTaskResult> mapRes = new TreeMap<>();
+ int limit = taskArg.getLimit() == null ? DEFAULT_REDUCE_LIMIT :
taskArg.getLimit();
+
+ if (limit <= 0) return Collections.emptyMap();
+
+ Map<ClusterNode, VisorTxTaskResult> mapRes = new HashMap<>();
Review comment:
Real mistake, sorry, reverted
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]