Kirill Sizov created IGNITE-24744:
--------------------------------------

             Summary: Insert fails with "doWithRetry failed without exception"
                 Key: IGNITE-24744
                 URL: https://issues.apache.org/jira/browse/IGNITE-24744
             Project: Ignite
          Issue Type: Bug
            Reporter:  Kirill Sizov


*Scenario*
Create an HA zone.
One thread continuously inserts data.
Another thread randomly starts and stops node

*Expected behavior*
All data is inserted successfully.

*Actual behavior*
Client fails with 
{noformat}
Caused by: java.lang.IllegalStateException: doWithRetry failed without exception
    at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733) 
~[?:?]
    at 
org.apache.ignite.internal.util.ExceptionUtils$8.copy(ExceptionUtils.java:965) 
~[ignite-core-3.1.0-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.util.ExceptionUtils$ExceptionFactory.createCopy(ExceptionUtils.java:811)
 ~[ignite-core-3.1.0-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.util.ExceptionUtils.copyExceptionWithCause(ExceptionUtils.java:613)
 ~[ignite-core-3.1.0-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.util.ExceptionUtils.copyExceptionWithCauseInternal(ExceptionUtils.java:746)
 ~[ignite-core-3.1.0-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.util.ExceptionUtils.copyExceptionWithCause(ExceptionUtils.java:564)
 ~[ignite-core-3.1.0-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.client.sql.ClientSql.execute(ClientSql.java:125) 
~[ignite-client-3.1.0-SNAPSHOT.jar:?]
    at org.apache.ignite.sql.IgniteSql.execute(IgniteSql.java:90) 
~[ignite-api-3.1.0-SNAPSHOT.jar:?]
    at 
org.gridgain.poc.framework.worker.ignite3.task.ExecuteQueryTask.executeQueries(ExecuteQueryTask.java:100)
 ~[poc-tester-ignite3-0.5.0-SNAPSHOT.jar:?]
    at 
org.gridgain.poc.framework.worker.ignite3.task.ExecuteQueryTask.body0(ExecuteQueryTask.java:82)
 ~[poc-tester-ignite3-0.5.0-SNAPSHOT.jar:?]
    ... 4 more
Caused by: java.util.concurrent.CompletionException: 
java.lang.IllegalStateException: doWithRetry failed without exception
    at 
java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:332)
 ~[?:?]
    at 
java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1177)
 ~[?:?]
    at 
java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2341) 
~[?:?]
    at 
org.apache.ignite.internal.client.ReliableChannel.lambda$serviceAsync$2(ReliableChannel.java:257)
 ~[ignite-client-3.1.0-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.client.ClientFutureUtils.doWithRetryAsync(ClientFutureUtils.java:56)
 ~[ignite-client-3.1.0-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.client.ClientFutureUtils.doWithRetryAsync(ClientFutureUtils.java:45)
 ~[ignite-client-3.1.0-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.client.ReliableChannel.serviceAsync(ReliableChannel.java:255)
 ~[ignite-client-3.1.0-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.client.ReliableChannel.serviceAsync(ReliableChannel.java:276)
 ~[ignite-client-3.1.0-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.client.sql.ClientSql.executeAsync(ClientSql.java:284)
 ~[ignite-client-3.1.0-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.client.sql.ClientSql.executeAsync(ClientSql.java:220)
 ~[ignite-client-3.1.0-SNAPSHOT.jar:?]
    at 
org.apache.ignite.internal.client.sql.ClientSql.execute(ClientSql.java:123) 
~[ignite-client-3.1.0-SNAPSHOT.jar:?]
    at org.apache.ignite.sql.IgniteSql.execute(IgniteSql.java:90) 
~[ignite-api-3.1.0-SNAPSHOT.jar:?]
    at 
org.gridgain.poc.framework.worker.ignite3.task.ExecuteQueryTask.executeQueries(ExecuteQueryTask.java:100)
 ~[poc-tester-ignite3-0.5.0-SNAPSHOT.jar:?]
    at 
org.gridgain.poc.framework.worker.ignite3.task.ExecuteQueryTask.body0(ExecuteQueryTask.java:82)
 ~[poc-tester-ignite3-0.5.0-SNAPSHOT.jar:?]
    ... 4 more
Caused by: java.lang.IllegalStateException: doWithRetry failed without exception
    at 
org.apache.ignite.internal.client.ClientFutureUtils.lambda$doWithRetryAsync$0(ClientFutureUtils.java:78)
 ~[ignite-client-3.1.0-SNAPSHOT.jar:?]
    at 
java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863)
 ~[?:?] {noformat}
There is an exception on the server side 
{noformat}
 java.util.concurrent.CompletionException: 
org.apache.ignite.tx.TransactionException: IGN-NETWORK-5 
TraceId:ffbfaf6c-1c3e-490c-9c49-569adbaae008 Failed to process replica request 
[replicaGroupId=TablePartitionIdMessageImpl [partitionId=0, tableId=19]]
    at 
org.apache.ignite.internal.lang.IgniteExceptionMapperUtil.lambda$convertToPublicFuture$3(IgniteExceptionMapperUtil.java:178)
    at 
java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934)
    at 
java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:911)
    at 
java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510)
    at 
java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2194)
    at 
org.apache.ignite.internal.replicator.ReplicaService.lambda$sendToReplicaRaw$8(ReplicaService.java:152)
    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$UniHandle.tryFire(CompletableFuture.java:914)
    at 
java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482)
    at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: org.apache.ignite.tx.TransactionException: IGN-NETWORK-5 
TraceId:ffbfaf6c-1c3e-490c-9c49-569adbaae008 Failed to process replica request 
[replicaGroupId=TablePartitionIdMessageImpl [partitionId=0, tableId=19]]
    at 
org.apache.ignite.internal.tx.TransactionExceptionMapperProvider.lambda$mappers$1(TransactionExceptionMapperProvider.java:44)
    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)
    ... 15 more
Caused by: 
org.apache.ignite.internal.replicator.exception.ReplicationException: 
IGN-NETWORK-5 TraceId:ffbfaf6c-1c3e-490c-9c49-569adbaae008 Failed to process 
replica request [replicaGroupId=TablePartitionIdMessageImpl [partitionId=0, 
tableId=19]]
    at 
org.apache.ignite.internal.util.ExceptionUtils.lambda$withCause$1(ExceptionUtils.java:472)
    at 
org.apache.ignite.internal.util.ExceptionUtils.withCauseInternal(ExceptionUtils.java:534)
    at 
org.apache.ignite.internal.util.ExceptionUtils.withCause(ExceptionUtils.java:472)
    ... 10 more
Caused by: org.apache.ignite.internal.network.RecipientLeftException: 
IGN-NETWORK-5 TraceId:ffbfaf6c-1c3e-490c-9c49-569adbaae008
    at 
org.apache.ignite.internal.network.netty.ConnectionManager.disposeRecoveryDescriptorsOfLeftNode(ConnectionManager.java:665)
    at 
org.apache.ignite.internal.network.netty.ConnectionManager.lambda$handleNodeLeft$9(ConnectionManager.java:644)
    at 
java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:863)
    at 
java.base/java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:841)
    ... 4 more{noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to