[ https://issues.apache.org/jira/browse/IGNITE-20471?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mirza Aliev updated IGNITE-20471: --------------------------------- Description: *Motivation* {noformat} [2023-09-29T17:58:48,717][ERROR][main][ItSqlAsynchronousApiTest] EXCEPTION org.apache.ignite.lang.IgniteException: null at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) ~[?:?] at org.apache.ignite.internal.util.ExceptionUtils$1.copy(ExceptionUtils.java:772) ~[main/:?] at org.apache.ignite.internal.util.ExceptionUtils$ExceptionFactory.createCopy(ExceptionUtils.java:706) ~[main/:?] at org.apache.ignite.internal.util.ExceptionUtils.copyExceptionWithCause(ExceptionUtils.java:543) ~[main/:?] at org.apache.ignite.internal.util.ExceptionUtils.copyExceptionWithCauseInternal(ExceptionUtils.java:641) ~[main/:?] at org.apache.ignite.internal.util.ExceptionUtils.copyExceptionWithCause(ExceptionUtils.java:494) ~[main/:?] at org.apache.ignite.internal.sql.AbstractSession.execute(AbstractSession.java:63) ~[main/:?] at org.apache.ignite.internal.sql.api.ItSqlAsynchronousApiTest.select(ItSqlAsynchronousApiTest.java:458) ~[integrationTest/:?] ... Caused by: java.util.concurrent.CompletionException: org.apache.ignite.lang.IgniteException: IGN-CMN-65535 TraceId:54d81fd9-6453-4adb-863d-6e82b9c0cb08 at org.apache.ignite.internal.sql.api.SessionImpl.lambda$executeAsync$3(SessionImpl.java:208) ~[main/:?] ... Caused by: org.apache.ignite.lang.IgniteException at org.apache.ignite.internal.lang.IgniteExceptionMapperUtil.mapToPublicException(IgniteExceptionMapperUtil.java:110) ~[main/:?] at org.apache.ignite.internal.sql.engine.AsyncSqlCursorImpl.wrapIfNecessary(AsyncSqlCursorImpl.java:100) ~[main/:?] at org.apache.ignite.internal.sql.engine.AsyncSqlCursorImpl.lambda$requestNextAsync$0(AsyncSqlCursorImpl.java:76) ~[main/:?] at java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:930) ~[?:?] at java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:907) ~[?:?] ... Caused by: java.util.concurrent.TimeoutException at org.apache.ignite.internal.sql.engine.exec.ResolvedDependencies.fetchColocationGroup(ResolvedDependencies.java:60) ~[main/:?] at org.apache.ignite.internal.sql.engine.exec.ExecutionServiceImpl$DistributedQueryManager.fetchColocationGroups(ExecutionServiceImpl.java:982) ~[main/:?] at org.apache.ignite.internal.sql.engine.exec.ExecutionServiceImpl$DistributedQueryManager.mapFragments(ExecutionServiceImpl.java:850) ~[main/:?] at org.apache.ignite.internal.sql.engine.exec.ExecutionServiceImpl$DistributedQueryManager.lambda$execute$11(ExecutionServiceImpl.java:654) ~[main/:?] ... {noformat} was: *Motivation* According the logic of invocations of {{TxManagerImpl#finish}}, it is possible that {{recipientNode}}, which is passed to {{finish}}, could be {{null}}. Further in the code of {{finish}} method we make {{replicaService.invoke(recipientNode)}} and this could lead to {{NullPointerException}}. UPD1: It is possible that I was wrong and we even don't reach the code where we call invoke {{replicaService.invoke(recipientNode)}}, because before we check {{groups.isEmpty()}} and seems that we go through the other branch. Need to investigate why I've got {{null}} when run {{ItTableRaftSnapshotsTest#entriesKeepAppendedAfterSnapshotInstallation}} > Timeout exception from org.apache.ignite.sql.Session#execute() could be > printed to log ambiguously > -------------------------------------------------------------------------------------------------- > > Key: IGNITE-20471 > URL: https://issues.apache.org/jira/browse/IGNITE-20471 > Project: Ignite > Issue Type: Bug > Reporter: Mirza Aliev > Priority: Major > Labels: ignite-3 > > *Motivation* > {noformat} > [2023-09-29T17:58:48,717][ERROR][main][ItSqlAsynchronousApiTest] EXCEPTION > org.apache.ignite.lang.IgniteException: null > at > java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710) > ~[?:?] > at > org.apache.ignite.internal.util.ExceptionUtils$1.copy(ExceptionUtils.java:772) > ~[main/:?] > at > org.apache.ignite.internal.util.ExceptionUtils$ExceptionFactory.createCopy(ExceptionUtils.java:706) > ~[main/:?] > at > org.apache.ignite.internal.util.ExceptionUtils.copyExceptionWithCause(ExceptionUtils.java:543) > ~[main/:?] > at > org.apache.ignite.internal.util.ExceptionUtils.copyExceptionWithCauseInternal(ExceptionUtils.java:641) > ~[main/:?] > at > org.apache.ignite.internal.util.ExceptionUtils.copyExceptionWithCause(ExceptionUtils.java:494) > ~[main/:?] > at > org.apache.ignite.internal.sql.AbstractSession.execute(AbstractSession.java:63) > ~[main/:?] > at > org.apache.ignite.internal.sql.api.ItSqlAsynchronousApiTest.select(ItSqlAsynchronousApiTest.java:458) > ~[integrationTest/:?] > ... > Caused by: java.util.concurrent.CompletionException: > org.apache.ignite.lang.IgniteException: IGN-CMN-65535 > TraceId:54d81fd9-6453-4adb-863d-6e82b9c0cb08 > at > org.apache.ignite.internal.sql.api.SessionImpl.lambda$executeAsync$3(SessionImpl.java:208) > ~[main/:?] > ... > Caused by: org.apache.ignite.lang.IgniteException > at > org.apache.ignite.internal.lang.IgniteExceptionMapperUtil.mapToPublicException(IgniteExceptionMapperUtil.java:110) > ~[main/:?] > at > org.apache.ignite.internal.sql.engine.AsyncSqlCursorImpl.wrapIfNecessary(AsyncSqlCursorImpl.java:100) > ~[main/:?] > at > org.apache.ignite.internal.sql.engine.AsyncSqlCursorImpl.lambda$requestNextAsync$0(AsyncSqlCursorImpl.java:76) > ~[main/:?] > at > java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:930) > ~[?:?] > at > java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:907) > ~[?:?] > ... > Caused by: java.util.concurrent.TimeoutException > at > org.apache.ignite.internal.sql.engine.exec.ResolvedDependencies.fetchColocationGroup(ResolvedDependencies.java:60) > ~[main/:?] > at > org.apache.ignite.internal.sql.engine.exec.ExecutionServiceImpl$DistributedQueryManager.fetchColocationGroups(ExecutionServiceImpl.java:982) > ~[main/:?] > at > org.apache.ignite.internal.sql.engine.exec.ExecutionServiceImpl$DistributedQueryManager.mapFragments(ExecutionServiceImpl.java:850) > ~[main/:?] > at > org.apache.ignite.internal.sql.engine.exec.ExecutionServiceImpl$DistributedQueryManager.lambda$execute$11(ExecutionServiceImpl.java:654) > ~[main/:?] > ... > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010)