AMashenkov commented on a change in pull request #395:
URL: https://github.com/apache/ignite-3/pull/395#discussion_r728085406



##########
File path: 
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/SqlQueryProcessor.java
##########
@@ -96,15 +89,39 @@ public SqlQueryProcessor(
         tableManager.listen(TableEvent.DROP, new 
TableDroppedListener(schemaHolder));
     }
 
-
     /** {@inheritDoc} */
-    @Override public void stop() throws NodeStoppingException {
-        // TODO: IGNITE-15161 Implement component's stop.
+    @Override public void stop() throws Exception {
+        busyLock.block();
+
+        Exception exOut = null;
+
+        for (AutoCloseable service : new AutoCloseable[] {executionSrvc, 
msgSrvc, taskExecutor}) {

Review comment:
       Can IgniteUtils.closeAll() be reused 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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to