AMashenkov commented on a change in pull request #9314:
URL: https://github.com/apache/ignite/pull/9314#discussion_r704183592
##########
File path:
modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/stat/StatisticsGatherer.java
##########
@@ -152,14 +203,25 @@ public LocalStatisticsGatheringContext
gatherLocalObjectsStatisticsAsync(
if (log.isDebugEnabled())
log.debug("Cancel previous statistic gathering for [key=" +
key + ']');
- oldCtx.futureGather().cancel(false);
+ oldCtx.cancel();
+ }
+
+ if (!active) {
+ newCtx.cancel();
+ gatheringInProgress.remove(key);
Review comment:
Do you read 'active' flag and remove key under busylock?
--
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]