zstan commented on a change in pull request #8962:
URL: https://github.com/apache/ignite/pull/8962#discussion_r607536497
##########
File path:
modules/core/src/main/java/org/apache/ignite/internal/managers/indexing/IndexesRebuildTask.java
##########
@@ -84,17 +87,20 @@
// To avoid possible data race.
GridFutureAdapter<Void> outRebuildCacheIdxFut = new
GridFutureAdapter<>();
- // An internal future for the ability to cancel index rebuilding.
- // This behavior should be discussed in IGNITE-14321.
IgniteLogger log = cctx.kernalContext().grid().log();
+ // An internal future for the ability to cancel index rebuilding.
SchemaIndexCacheFuture intRebFut = new SchemaIndexCacheFuture(new
SchemaIndexOperationCancellationToken());
- cancelIndexRebuildFuture(idxRebuildFuts.put(cctx.cacheId(),
intRebFut), log);
+
+ SchemaIndexCacheFuture prevIntRebFut =
idxRebuildFuts.put(cctx.cacheId(), intRebFut);
Review comment:
have a call, seems we can simplify here, i huge +1 for such
simplification here.
--
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]