AMashenkov commented on a change in pull request #8842:
URL: https://github.com/apache/ignite/pull/8842#discussion_r586244941
##########
File path:
modules/calcite/src/main/java/org/apache/ignite/internal/processors/query/calcite/exec/QueryTaskExecutorImpl.java
##########
@@ -74,7 +75,20 @@ public void failureProcessor(FailureProcessor
failureProcessor) {
/** {@inheritDoc} */
@Override public void execute(UUID qryId, long fragmentId, Runnable
qryTask) {
- stripedThreadPoolExecutor.execute(qryTask, hash(qryId, fragmentId));
+ stripedThreadPoolExecutor.execute(
+ () -> {
+ try {
+ qryTask.run();
+ }
+ catch (Throwable e) {
+ if (X.cause(e, InterruptedException.class) != null)
+ Thread.currentThread().interrupt();
+
Review comment:
```suggestion
/*
* No exceptions are rethrown here to preserve the current
thread from being destroyed,
* because other queries may be pinned to the current
thread id.
* However, unrecoverable errors must be processed by
FailureHandler.
*/
```
----------------------------------------------------------------
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]