[
https://issues.apache.org/jira/browse/IGNITE-25836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18048181#comment-18048181
]
Igor Sapego commented on IGNITE-25836:
--------------------------------------
LGTM
> ClientInboundMessageHandler logs a warning on query cancellation
> ----------------------------------------------------------------
>
> Key: IGNITE-25836
> URL: https://issues.apache.org/jira/browse/IGNITE-25836
> Project: Ignite
> Issue Type: Bug
> Components: thin clients ai3
> Reporter: Pavel Tupitsyn
> Assignee: Pavel Tupitsyn
> Priority: Major
> Labels: ignite-3
> Fix For: 3.2
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> As a user, I don't expect a warning in the server log when I cancel a query
> from the client:
> {code}
> [2025-07-04T11:44:25,764][WARN
> ][%org.apache.ignite.internal.runner.app.PlatformTestNodeRunner%sql-execution-pool-2][ClientInboundMessageHandler]
> Error processing client request [connectionId=30, id=11, op=50,
> remoteAddress=/127.0.0.1:40918]:org.apache.ignite.sql.SqlException: IGN-SQL-6
> The query was cancelled while executing. TraceId:7df72f80
> java.util.concurrent.CompletionException: org.apache.ignite.sql.SqlException:
> IGN-SQL-6 The query was cancelled while executing. TraceId:7df72f80
> at
> org.apache.ignite.client.handler.requests.sql.ClientSqlExecuteRequest.lambda$executeAsync$10(ClientSqlExecuteRequest.java:238)
> at
> java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:990)
> at
> java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:974)
> at
> java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
> at
> java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2162)
> at
> org.apache.ignite.internal.sql.engine.exec.fsm.Query.onError(Query.java:137)
> at
> org.apache.ignite.internal.sql.engine.exec.fsm.QueryExecutionProgram.errorHandler(QueryExecutionProgram.java:93)
> at
> org.apache.ignite.internal.sql.engine.exec.fsm.Program.lambda$run$2(Program.java:105)
> at
> java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863)
> at
> java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841)
> at
> java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
> at
> java.base/java.util.concurrent.CompletableFuture.postFire(CompletableFuture.java:614)
> at
> java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1163)
> at
> java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
> at
> org.apache.ignite.internal.sql.engine.exec.QueryTaskExecutorImpl.lambda$execute$0(QueryTaskExecutorImpl.java:101)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
> at
> java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
> at java.base/java.lang.Thread.run(Thread.java:840)
> Caused by: org.apache.ignite.sql.SqlException: The query was cancelled while
> executing.
> at
> org.apache.ignite.internal.sql.engine.util.SqlExceptionMapperProvider.lambda$mappers$0(SqlExceptionMapperProvider.java:52)
> at
> org.apache.ignite.internal.lang.IgniteExceptionMapper.map(IgniteExceptionMapper.java:61)
> at
> org.apache.ignite.internal.lang.IgniteExceptionMapperUtil.map(IgniteExceptionMapperUtil.java:195)
> at
> org.apache.ignite.internal.lang.IgniteExceptionMapperUtil.mapToPublicException(IgniteExceptionMapperUtil.java:125)
> at
> org.apache.ignite.internal.lang.IgniteExceptionMapperUtil.mapToPublicException(IgniteExceptionMapperUtil.java:88)
> at
> org.apache.ignite.internal.lang.SqlExceptionMapperUtil.mapToPublicSqlException(SqlExceptionMapperUtil.java:63)
> ... 18 more
> Caused by: org.apache.ignite.internal.sql.engine.QueryCancelledException: The
> query was cancelled while executing.
> at
> org.apache.ignite.internal.sql.engine.QueryCancel.throwIfCancelled(QueryCancel.java:98)
> at
> org.apache.ignite.internal.sql.engine.exec.ExecutionServiceImpl$DistributedQueryManager.sendFragments(ExecutionServiceImpl.java:1097)
> at
> org.apache.ignite.internal.sql.engine.exec.ExecutionServiceImpl$DistributedQueryManager.lambda$execute$8(ExecutionServiceImpl.java:1071)
> at
> java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150)
> ... 5 more
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)