[
https://issues.apache.org/jira/browse/IGNITE-20137?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17845457#comment-17845457
]
Mikhail Efremov commented on IGNITE-20137:
------------------------------------------
Message in the second case:
{code:java}
Unexpected exception type thrown, expected:
<org.apache.ignite.tx.TransactionException> but was:
<org.apache.ignite.lang.IgniteException>
Expected :class org.apache.ignite.tx.TransactionException
Actual :class org.apache.ignite.lang.IgniteException
<Click to see difference>
org.opentest4j.AssertionFailedError: Unexpected exception type thrown,
expected: <org.apache.ignite.tx.TransactionException> but was:
<org.apache.ignite.lang.IgniteException>
at
org.junit.jupiter.api.AssertionFailureBuilder.build(AssertionFailureBuilder.java:151)
at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:67)
at org.junit.jupiter.api.AssertThrows.assertThrows(AssertThrows.java:35)
at org.junit.jupiter.api.Assertions.assertThrows(Assertions.java:3115)
at
org.apache.ignite.internal.runner.app.ItIgniteNodeRestartTest.testOneNodeRestartWithGap(ItIgniteNodeRestartTest.java:1190)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at
java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at
java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at
java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
at
java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at
java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
at
java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at java.base/java.util.stream.IntPipeline$1$1.accept(IntPipeline.java:180)
at
java.base/java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:104)
at
java.base/java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:699)
at
java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at
java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at
java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at
java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at
java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at
java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at
java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:274)
at
java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
at
java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at
java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at
java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
at
java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
at
java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at
java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
Caused by: org.apache.ignite.lang.IgniteException: IGN-CMN-65535
TraceId:73d0cfb1-6abf-4091-a038-b660d8581e84 The primary replica await timed
out [replicationGroupId=8_part_0, referenceTimestamp=HybridTimestamp
[physical=2024-05-11 00:43:48:686 +0600, logical=0,
composite=112418267377565696], currentLease=Lease [leaseholder=iinrt_tonrwg_0,
leaseholderId=99dc8a9e-8dd2-47eb-908e-59e984a0ff54, accepted=false,
startTime=HybridTimestamp [physical=2024-05-11 00:43:53:183 +0600, logical=0,
composite=112418267672281088], expirationTime=HybridTimestamp
[physical=2024-05-11 00:45:53:183 +0600, logical=0,
composite=112418275536601088], prolongable=false, proposedCandidate=null,
replicationGroupId=8_part_0]]
at
org.apache.ignite.internal.lang.IgniteExceptionMapperUtil.mapToPublicException(IgniteExceptionMapperUtil.java:118)
at
org.apache.ignite.internal.lang.IgniteExceptionMapperUtil.lambda$convertToPublicFuture$2(IgniteExceptionMapperUtil.java:138)
at
java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:930)
at
java.base/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:907)
at
java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at
java.base/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
at
java.base/java.util.concurrent.CompletableFuture$Timeout.run(CompletableFuture.java:2792)
at
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
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:
org.apache.ignite.internal.placementdriver.PrimaryReplicaAwaitTimeoutException:
IGN-PLACEMENTDRIVER-1 TraceId:73d0cfb1-6abf-4091-a038-b660d8581e84 The primary
replica await timed out [replicationGroupId=8_part_0,
referenceTimestamp=HybridTimestamp [physical=2024-05-11 00:43:48:686 +0600,
logical=0, composite=112418267377565696], currentLease=Lease
[leaseholder=iinrt_tonrwg_0,
leaseholderId=99dc8a9e-8dd2-47eb-908e-59e984a0ff54, accepted=false,
startTime=HybridTimestamp [physical=2024-05-11 00:43:53:183 +0600, logical=0,
composite=112418267672281088], expirationTime=HybridTimestamp
[physical=2024-05-11 00:45:53:183 +0600, logical=0,
composite=112418275536601088], prolongable=false, proposedCandidate=null,
replicationGroupId=8_part_0]]
at
org.apache.ignite.internal.placementdriver.leases.LeaseTracker.lambda$awaitPrimaryReplica$4(LeaseTracker.java:271)
at
java.base/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:986)
at
java.base/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:970)
... 9 more
Caused by: java.util.concurrent.TimeoutException
... 7 more
The primary replica await timed out [replicationGroupId=8_part_0,
referenceTimestamp=HybridTimestamp [physical=2024-05-11 00:43:48:686 +0600,
logical=0, composite=112418267377565696], currentLease=Lease
[leaseholder=iinrt_tonrwg_0,
leaseholderId=99dc8a9e-8dd2-47eb-908e-59e984a0ff54, accepted=false,
startTime=HybridTimestamp [physical=2024-05-11 00:43:53:183 +0600, logical=0,
composite=112418267672281088], expirationTime=HybridTimestamp
[physical=2024-05-11 00:45:53:183 +0600, logical=0,
composite=112418275536601088], prolongable=false, proposedCandidate=null,
replicationGroupId=8_part_0]]
org.apache.ignite.lang.IgniteException: IGN-CMN-65535
TraceId:73d0cfb1-6abf-4091-a038-b660d8581e84 The primary replica await timed
out [replicationGroupId=8_part_0, referenceTimestamp=HybridTimestamp
[physical=2024-05-11 00:43:48:686 +0600, logical=0,
composite=112418267377565696], currentLease=Lease [leaseholder=iinrt_tonrwg_0,
leaseholderId=99dc8a9e-8dd2-47eb-908e-59e984a0ff54, accepted=false,
startTime=HybridTimestamp [physical=2024-05-11 00:43:53:183 +0600, logical=0,
composite=112418267672281088], expirationTime=HybridTimestamp
[physical=2024-05-11 00:45:53:183 +0600, logical=0,
composite=112418275536601088], prolongable=false, proposedCandidate=null,
replicationGroupId=8_part_0]]
at
app//org.apache.ignite.internal.lang.IgniteExceptionMapperUtil.mapToPublicException(IgniteExceptionMapperUtil.java:118)
at
app//org.apache.ignite.internal.lang.IgniteExceptionMapperUtil.lambda$convertToPublicFuture$2(IgniteExceptionMapperUtil.java:138)
at
[email protected]/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:930)
at
[email protected]/java.util.concurrent.CompletableFuture$UniHandle.tryFire(CompletableFuture.java:907)
at
[email protected]/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at
[email protected]/java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
at
[email protected]/java.util.concurrent.CompletableFuture$Timeout.run(CompletableFuture.java:2792)
at
[email protected]/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at
[email protected]/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at
[email protected]/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:304)
at
[email protected]/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at
[email protected]/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at [email protected]/java.lang.Thread.run(Thread.java:829)
Caused by:
org.apache.ignite.internal.placementdriver.PrimaryReplicaAwaitTimeoutException:
IGN-PLACEMENTDRIVER-1 TraceId:73d0cfb1-6abf-4091-a038-b660d8581e84 The primary
replica await timed out [replicationGroupId=8_part_0,
referenceTimestamp=HybridTimestamp [physical=2024-05-11 00:43:48:686 +0600,
logical=0, composite=112418267377565696], currentLease=Lease
[leaseholder=iinrt_tonrwg_0,
leaseholderId=99dc8a9e-8dd2-47eb-908e-59e984a0ff54, accepted=false,
startTime=HybridTimestamp [physical=2024-05-11 00:43:53:183 +0600, logical=0,
composite=112418267672281088], expirationTime=HybridTimestamp
[physical=2024-05-11 00:45:53:183 +0600, logical=0,
composite=112418275536601088], prolongable=false, proposedCandidate=null,
replicationGroupId=8_part_0]]
at
app//org.apache.ignite.internal.placementdriver.leases.LeaseTracker.lambda$awaitPrimaryReplica$4(LeaseTracker.java:271)
at
[email protected]/java.util.concurrent.CompletableFuture.uniExceptionally(CompletableFuture.java:986)
at
[email protected]/java.util.concurrent.CompletableFuture$UniExceptionally.tryFire(CompletableFuture.java:970)
... 9 more
Caused by: java.util.concurrent.TimeoutException
... 7 more
{code}
> testOneNodeRestartWithGap's assert throws TransactionException is failed
> ------------------------------------------------------------------------
>
> Key: IGNITE-20137
> URL: https://issues.apache.org/jira/browse/IGNITE-20137
> Project: Ignite
> Issue Type: Bug
> Affects Versions: 3.0
> Reporter: Alexey Scherbakov
> Priority: Major
> Labels: ignite-3
> Fix For: 3.0
>
>
> *Description*
> With unchanged code there 2 ways to fail, both in the same assert that waits
> {{TransactionException}} to be thrown:
> # assert returns false because there is no any thrown exception;
> # assert returns false because the caught exception is timeout with
> {{{}PrimaryReplicaAwaitTimeoutException{}}}.
> We could remove the assert and fix the follow line:
> {code:java}
> TableManager tableManager = unwrapTableManager(ignite1.tables());{code}
> {color:#383838}Without unwrapping there will be {{{}ClassCastException{}}}.
> With this 2 changes the test will pass with 100% rate.{color}
>
> *What to fix*
> Probably, the assert should be left, but the issue needs an investigation:
> why there 2 reasons of fail and what exactly do we expect there?
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)