[ https://issues.apache.org/jira/browse/IGNITE-23702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Denis Chudov updated IGNITE-23702: ---------------------------------- Description: *Stack trace:* {code:java} java.lang.AssertionError: Unexpected replica reservation with STOPPING state [groupId=18_part_1]. at org.apache.ignite.internal.replicator.ReplicaManager$ReplicaStateManager.reserveReplica(ReplicaManager.java:1560) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at org.apache.ignite.internal.replicator.ReplicaImpl.waitForActualState(ReplicaImpl.java:306) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at org.apache.ignite.internal.replicator.ReplicaImpl.lambda$processLeaseGrantedMessage$6(ReplicaImpl.java:240) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106) ~[?:?] at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235) ~[?:?] at org.apache.ignite.internal.replicator.ReplicaImpl.lambda$processLeaseGrantedMessage$7(ReplicaImpl.java:209) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106) ~[?:?] at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235) ~[?:?] at org.apache.ignite.internal.replicator.ReplicaImpl.processLeaseGrantedMessage(ReplicaImpl.java:209) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at org.apache.ignite.internal.replicator.ReplicaImpl.processPlacementDriverMessage(ReplicaImpl.java:178) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at org.apache.ignite.internal.replicator.ReplicaManager.lambda$onPlacementDriverMessageReceived$7(ReplicaManager.java:539) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106) ~[?:?] at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235) ~[?:?] at org.apache.ignite.internal.replicator.ReplicaManager.onPlacementDriverMessageReceived(ReplicaManager.java:539) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at org.apache.ignite.internal.network.TrackableNetworkMessageHandler.onReceived(TrackableNetworkMessageHandler.java:52) ~[ignite-network-api-9.0.127-SNAPSHOT.jar:?] at org.apache.ignite.internal.network.DefaultMessagingService.handleStartingWithFirstHandler(DefaultMessagingService.java:549) ~[ignite-network-9.0.127-SNAPSHOT.jar:?] at org.apache.ignite.internal.network.DefaultMessagingService.lambda$handleMessageFromNetwork$5(DefaultMessagingService.java:440) ~[ignite-network-9.0.127-SNAPSHOT.jar:?] 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:834) [?:?]{code} *Scenario:* *What needs to be fixed:* * missed synchronized block, which should have wrapped stopReplica method in ReplicaStateManager#planDeferredReplicaStop * incorrect lease expiration waiting: reservation flah may be not removed when expiration timestamp comes was: Stack trace: {code:java} java.lang.AssertionError: Unexpected replica reservation with STOPPING state [groupId=18_part_1]. at org.apache.ignite.internal.replicator.ReplicaManager$ReplicaStateManager.reserveReplica(ReplicaManager.java:1560) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at org.apache.ignite.internal.replicator.ReplicaImpl.waitForActualState(ReplicaImpl.java:306) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at org.apache.ignite.internal.replicator.ReplicaImpl.lambda$processLeaseGrantedMessage$6(ReplicaImpl.java:240) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106) ~[?:?] at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235) ~[?:?] at org.apache.ignite.internal.replicator.ReplicaImpl.lambda$processLeaseGrantedMessage$7(ReplicaImpl.java:209) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106) ~[?:?] at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235) ~[?:?] at org.apache.ignite.internal.replicator.ReplicaImpl.processLeaseGrantedMessage(ReplicaImpl.java:209) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at org.apache.ignite.internal.replicator.ReplicaImpl.processPlacementDriverMessage(ReplicaImpl.java:178) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at org.apache.ignite.internal.replicator.ReplicaManager.lambda$onPlacementDriverMessageReceived$7(ReplicaManager.java:539) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106) ~[?:?] at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235) ~[?:?] at org.apache.ignite.internal.replicator.ReplicaManager.onPlacementDriverMessageReceived(ReplicaManager.java:539) ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] at org.apache.ignite.internal.network.TrackableNetworkMessageHandler.onReceived(TrackableNetworkMessageHandler.java:52) ~[ignite-network-api-9.0.127-SNAPSHOT.jar:?] at org.apache.ignite.internal.network.DefaultMessagingService.handleStartingWithFirstHandler(DefaultMessagingService.java:549) ~[ignite-network-9.0.127-SNAPSHOT.jar:?] at org.apache.ignite.internal.network.DefaultMessagingService.lambda$handleMessageFromNetwork$5(DefaultMessagingService.java:440) ~[ignite-network-9.0.127-SNAPSHOT.jar:?] 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:834) [?:?]{code} What needs to be fixed: * missed synchronized block, which should have wrapped stopReplica method in ReplicaStateManager#planDeferredReplicaStop * incorrect lease expiration waiting: reservation flah may be not removed when expiration timestamp comes > Incorrect HB in deferred replica stop on partition restart > ---------------------------------------------------------- > > Key: IGNITE-23702 > URL: https://issues.apache.org/jira/browse/IGNITE-23702 > Project: Ignite > Issue Type: Bug > Reporter: Denis Chudov > Priority: Major > Labels: ignite-3 > Attachments: _Integration_Tests_Integration_CLI_10340.log > > > *Stack trace:* > {code:java} > java.lang.AssertionError: Unexpected replica reservation with STOPPING state > [groupId=18_part_1]. > at > org.apache.ignite.internal.replicator.ReplicaManager$ReplicaStateManager.reserveReplica(ReplicaManager.java:1560) > ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] > at > org.apache.ignite.internal.replicator.ReplicaImpl.waitForActualState(ReplicaImpl.java:306) > ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] > at > org.apache.ignite.internal.replicator.ReplicaImpl.lambda$processLeaseGrantedMessage$6(ReplicaImpl.java:240) > ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] > at > java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106) > ~[?:?] > at > java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235) > ~[?:?] > at > org.apache.ignite.internal.replicator.ReplicaImpl.lambda$processLeaseGrantedMessage$7(ReplicaImpl.java:209) > ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] > at > java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106) > ~[?:?] > at > java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235) > ~[?:?] > at > org.apache.ignite.internal.replicator.ReplicaImpl.processLeaseGrantedMessage(ReplicaImpl.java:209) > ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] > at > org.apache.ignite.internal.replicator.ReplicaImpl.processPlacementDriverMessage(ReplicaImpl.java:178) > ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] > at > org.apache.ignite.internal.replicator.ReplicaManager.lambda$onPlacementDriverMessageReceived$7(ReplicaManager.java:539) > ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] > at > java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106) > ~[?:?] > at > java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235) > ~[?:?] > at > org.apache.ignite.internal.replicator.ReplicaManager.onPlacementDriverMessageReceived(ReplicaManager.java:539) > ~[ignite-replicator-9.0.127-SNAPSHOT.jar:?] > at > org.apache.ignite.internal.network.TrackableNetworkMessageHandler.onReceived(TrackableNetworkMessageHandler.java:52) > ~[ignite-network-api-9.0.127-SNAPSHOT.jar:?] > at > org.apache.ignite.internal.network.DefaultMessagingService.handleStartingWithFirstHandler(DefaultMessagingService.java:549) > ~[ignite-network-9.0.127-SNAPSHOT.jar:?] > at > org.apache.ignite.internal.network.DefaultMessagingService.lambda$handleMessageFromNetwork$5(DefaultMessagingService.java:440) > ~[ignite-network-9.0.127-SNAPSHOT.jar:?] > 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:834) [?:?]{code} > *Scenario:* > > *What needs to be fixed:* > * missed synchronized block, which should have wrapped stopReplica method in > ReplicaStateManager#planDeferredReplicaStop > * incorrect lease expiration waiting: reservation flah may be not removed > when expiration timestamp comes > > -- This message was sent by Atlassian Jira (v8.20.10#820010)