zstan commented on a change in pull request #8837:
URL: https://github.com/apache/ignite/pull/8837#discussion_r601152415
##########
File path:
modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/IgniteH2Indexing.java
##########
@@ -3270,4 +3289,21 @@ public DistributedSqlConfiguration
distributedConfiguration() {
defragmentationThreadPool
);
}
+
+ /**
+ * Cancel rebuilding indexes for the cache through a future.
+ *
+ * @param rebFut Index rebuilding future.
+ */
+ private void cancelIndexRebuildFuture(@Nullable SchemaIndexCacheFuture
rebFut) {
+ if (rebFut != null && !rebFut.isDone() &&
rebFut.cancelToken().cancel()) {
+ try {
+ rebFut.get();
+ }
+ catch (IgniteCheckedException e) {
+ if (!(e instanceof SchemaIndexOperationCancellationException))
+ log.warning("Error after canceling index rebuild", e);
Review comment:
"." needed, i hope.
--
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]