zstan commented on a change in pull request #8837:
URL: https://github.com/apache/ignite/pull/8837#discussion_r594907214



##########
File path: 
modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
##########
@@ -1042,6 +1044,18 @@ private void stopCache(GridCacheAdapter<?, ?> cache, 
boolean cancel, boolean des
             if (destroy)
                 cache.removeMetrics();
 
+            if (ctx.kernalContext().query().moduleEnabled()) {
+                IgniteInternalFuture<?> rebFut = 
ctx.kernalContext().query().getIndexing().indexRebuildFuture(ctx);
+
+                if (rebFut != null) {
+                    try {
+                        rebFut.get();
+                    }
+                    catch (IgniteCheckedException ignore) {

Review comment:
       why do we ignore error 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]


Reply via email to