You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Iurii Gerzhedovich (Jira)" <ji...@apache.org> on 2024/11/05 08:54:00 UTC
[jira] [Updated] (IGNITE-23605) Sql. Add shutdown guard for sql-execution-pool
[ https://issues.apache.org/jira/browse/IGNITE-23605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Iurii Gerzhedovich updated IGNITE-23605:
----------------------------------------
Component/s: sql
> Sql. Add shutdown guard for sql-execution-pool
> ----------------------------------------------
>
> Key: IGNITE-23605
> URL: https://issues.apache.org/jira/browse/IGNITE-23605
> Project: Ignite
> Issue Type: Bug
> Components: sql
> Reporter: Iurii Gerzhedovich
> Priority: Major
> Labels: ignite-3
>
> During node stop can be raised an error in the log:
> {code:java}
> [2024-11-05T10:48:22,758][ERROR][%no_node%sql-execution-pool-0][FailureManager] Critical system error detected. Will be handled accordingly to configured handler [hnd=NoOpFailureHandler [super=AbstractFailureHandler [ignoredFailureTypes=UnmodifiableSet [SYSTEM_WORKER_BLOCKED, SYSTEM_CRITICAL_OPERATION_TIMEOUT]]], failureCtx=CRITICAL_ERROR]
> org.apache.ignite.lang.IgniteException: Unexpected error during execute fragment 0 of query 51b58280-486b-4102-8ebe-1a2485da3fc7
> at org.apache.ignite.internal.sql.engine.exec.QueryTaskExecutorImpl.lambda$execute$0(QueryTaskExecutorImpl.java:96) ~[main/:?]
> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
> at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
> at java.base/java.lang.Thread.run(Thread.java:829) [?:?]
> Caused by: java.util.concurrent.RejectedExecutionException: Task org.apache.ignite.internal.sql.engine.exec.QueryTaskExecutorImpl$$Lambda$734/0x0000000800422440@5f1a1354 rejected from java.util.concurrent.ThreadPoolExecutor@de37509[Shutting down, pool size = 1, active threads = 1, queued tasks = 0, completed tasks = 4]
> at java.base/java.util.concurrent.ThreadPoolExecutor$AbortPolicy.rejectedExecution(ThreadPoolExecutor.java:2055) ~[?:?]
> at java.base/java.util.concurrent.ThreadPoolExecutor.reject(ThreadPoolExecutor.java:825) ~[?:?]
> at java.base/java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1355) ~[?:?]
> at org.apache.ignite.internal.thread.AbstractStripedThreadPoolExecutor.execute(AbstractStripedThreadPoolExecutor.java:61) ~[main/:?]
> at org.apache.ignite.internal.sql.engine.exec.QueryTaskExecutorImpl.execute(QueryTaskExecutorImpl.java:80) ~[main/:?]
> at org.apache.ignite.internal.sql.engine.exec.ExecutionContext.execute(ExecutionContext.java:329) ~[main/:?]
> at org.apache.ignite.internal.sql.engine.exec.rel.AsyncRootNode.closeAsync(AsyncRootNode.java:169) ~[main/:?]
> at org.apache.ignite.internal.sql.engine.exec.rel.AsyncRootNode.onError(AsyncRootNode.java:119) ~[main/:?]
> at org.apache.ignite.internal.sql.engine.exec.rel.AbstractNode.onError(AbstractNode.java:125) ~[main/:?]
> at org.apache.ignite.internal.sql.engine.exec.ExecutionContext.lambda$execute$0(ExecutionContext.java:336) ~[main/:?]
> at org.apache.ignite.internal.sql.engine.exec.QueryTaskExecutorImpl.lambda$execute$0(QueryTaskExecutorImpl.java:83) ~[main/:?] {code}
> A guard is needed to prevent sending to execute a new task in the query pool after the node starts shutdown.
> One of the test where it appears in logs - AsyncRootNodeTest
--
This message was sent by Atlassian Jira
(v8.20.10#820010)