AMashenkov commented on code in PR #3531:
URL: https://github.com/apache/ignite-3/pull/3531#discussion_r1554573777


##########
modules/sql-engine/src/test/java/org/apache/ignite/internal/sql/engine/exec/rel/AbstractExecutionTest.java:
##########
@@ -100,14 +100,18 @@ protected ExecutionContext<T> executionContext(boolean 
withDelays) {
                     false,
                     0);
 
-            StripedThreadPoolExecutor stripedThreadPoolExecutor = 
(StripedThreadPoolExecutor) IgniteTestUtils.getFieldValue(
+            StripedThreadPoolExecutor stripedThreadPoolExecutor = 
IgniteTestUtils.getFieldValue(
                     taskExecutor,
                     QueryTaskExecutorImpl.class,
                     "stripedThreadPoolExecutor"
             );
-            stripedThreadPoolExecutor.shutdown();
 
-            IgniteTestUtils.setFieldValue(taskExecutor, 
"stripedThreadPoolExecutor", testExecutor);
+            // change it once on startup
+            if (!(stripedThreadPoolExecutor instanceof 
IgniteTestStripedThreadPoolExecutor)) {

Review Comment:
   BTW, if the condition doesn't met, then stripedThreadPoolExecutor will not 
be stopped.



-- 
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