[DEBUG] [11/04/2024 11:36:52.810] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 11:36:52,810 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/04/2024 11:36:52.810] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [11/04/2024 11:36:52.810] [main] [EventStream(pekko://test)] Default Loggers started 11:36:52,822 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.153:17355] with UID [1685454667987714671] [INFO] [11/04/2024 11:36:52.822] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.153:17355] with UID [1685454667987714671] [INFO] [11/04/2024 11:36:52.824] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.153:17355] - Starting up, Pekko version [1.0.3] ... 11:36:52,824 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.153:17355] - Starting up, Pekko version [1.0.3] ... 11:36:52,826 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.153:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 11:36:52,827 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.153:17355] - Started up successfully [INFO] [11/04/2024 11:36:52.826] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.153:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [11/04/2024 11:36:52.826] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.153:17355] - Started up successfully 11:36:52,828 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.153:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 11:36:52,828 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.153:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [11/04/2024 11:36:52.828] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.153:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [11/04/2024 11:36:52.828] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.153:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 11:36:52,839 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerLeaderStateChanges [WARN] [11/04/2024 11:36:52.842] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower85]: org.opendaylight.controller.cluster.common.actor.Monitor@65f38a15 [INFO] [pekkoDeadLetter][11/04/2024 11:36:52.841] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower85] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:52,842 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower85] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:52,843 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower85 with journal batch size 1000 11:36:52,845 AM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader84] to Actor[pekko://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [11/04/2024 11:36:52.845] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader84]: org.opendaylight.controller.cluster.common.actor.Monitor@4c01ea22 [INFO] [pekkoDeadLetter][11/04/2024 11:36:52.845] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader84] to Actor[pekko://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:52,845 AM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader84 with journal batch size 1000 11:36:52,847 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower85: Set currentTerm=1, votedFor=leader84 11:36:52,847 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower85: Received ReplicatedLogEntry for recovery: index: 0, size: 141 11:36:52,847 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower85: Updated server config: isVoting: false, peers: [PeerInfo [id=leader84, address=pekko://test/user/leader84, votingState=VOTING]] 11:36:52,847 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower85: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:36:52,848 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader84: Set currentTerm=1, votedFor=leader84 11:36:52,848 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader84: Received ReplicatedLogEntry for recovery: index: 0, size: 141 11:36:52,848 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader84: Updated server config: isVoting: true, peers: [PeerInfo [id=follower85, address=pekko://test/user/follower85, votingState=NON_VOTING]] 11:36:52,848 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader84: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:36:53,285 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:36:53,286 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader84 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.153:17355, Removed) 11:36:53,286 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader84 (Follower): Received ElectionTimeout - switching to Candidate 11:36:53,286 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader84 (Candidate): Election: Candidate has following voting peers: [] 11:36:53,286 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader84: Set currentTerm=2, votedFor=leader84 11:36:53,286 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader84 (Candidate): Starting new election term 2 11:36:53,286 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader84 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:36:53,287 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader84 (Candidate): Received ElectionTimeout 11:36:53,287 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader84 (Leader): Election: Leader has following peers: [follower85] 11:36:53,287 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader84 (Leader): Checking sendAppendEntries for follower follower85: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:36:53,288 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader84 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:36:53,288 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower85 (Follower): Term 2 in "AppendEntries [leaderId=leader84, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 11:36:53,288 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower85: Set currentTerm=2, votedFor=null 11:36:53,288 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower85: Last sync leader does not match current leader leader84, need to catch up to -1 11:36:53,289 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader84 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower85 updated: matchIndex: -1, nextIndex: 0 [WARN] [11/04/2024 11:36:53.289] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower85] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@690cceda 11:36:53,289 AM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower85] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][11/04/2024 11:36:53.289] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower85] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower85] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:53,289 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader84 (Leader): Checking sendAppendEntries for follower follower85: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:36:53,304 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:36:53,646 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower85: Lagging 0 entries behind leader leader84 and reached -1 (of expected -1) [WARN] [11/04/2024 11:36:53.646] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower85] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2fc2d931 11:36:53,646 AM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower85] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][11/04/2024 11:36:53.646] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower85] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower85] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:53,656 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/roleChangeNotifier87#-306817662] 11:36:53,659 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower85-collector88#-691631543] 11:36:53,659 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower85] 11:36:53,660 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader84-collector89#-1081713221] 11:36:53,660 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader84] 11:36:53,661 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart starting [WARN] [11/04/2024 11:36:53.664] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower91]: org.opendaylight.controller.cluster.common.actor.Monitor@639ec493 [INFO] [pekkoDeadLetter][11/04/2024 11:36:53.664] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower91] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:53,664 AM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower91] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:53,665 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower91 with journal batch size 1000 11:36:53,667 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Set currentTerm=1, votedFor=leader90 11:36:53,668 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Received ReplicatedLogEntry for recovery: index: 0, size: 141 11:36:53,668 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Updated server config: isVoting: false, peers: [PeerInfo [id=leader90, address=pekko://test/user/leader90, votingState=VOTING]] 11:36:53,668 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:36:53,669 AM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader90] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [11/04/2024 11:36:53.669] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader90]: org.opendaylight.controller.cluster.common.actor.Monitor@7503887f 11:36:53,669 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader90 with journal batch size 1000 [INFO] [pekkoDeadLetter][11/04/2024 11:36:53.669] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader90] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:53,670 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Set currentTerm=1, votedFor=leader90 11:36:53,672 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Received ReplicatedLogEntry for recovery: index: 0, size: 141 11:36:53,672 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Updated server config: isVoting: true, peers: [PeerInfo [id=follower91, address=pekko://test/user/follower91, votingState=NON_VOTING]] 11:36:53,672 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:36:54,96 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:36:54,96 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.153:17355, Removed) 11:36:54,96 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Follower): Received ElectionTimeout - switching to Candidate 11:36:54,96 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Candidate): Election: Candidate has following voting peers: [] 11:36:54,96 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Set currentTerm=2, votedFor=leader90 11:36:54,96 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Candidate): Starting new election term 2 11:36:54,96 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:36:54,97 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Candidate): Received ElectionTimeout 11:36:54,98 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Election: Leader has following peers: [follower91] 11:36:54,98 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Checking sendAppendEntries for follower follower91: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:36:54,98 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:36:54,98 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Term 2 in "AppendEntries [leaderId=leader90, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 11:36:54,98 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Set currentTerm=2, votedFor=null 11:36:54,98 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower91: Last sync leader does not match current leader leader90, need to catch up to -1 11:36:54,99 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower91 updated: matchIndex: -1, nextIndex: 0 11:36:54,99 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Checking sendAppendEntries for follower follower91: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [11/04/2024 11:36:54.099] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower91] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@549ebe13 11:36:54,99 AM [test-pekko.actor.default-dispatcher-17] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower91] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][11/04/2024 11:36:54.099] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower91] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower91] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:54,127 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:54,127 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:54,127 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 11:36:54,127 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Setting last applied to 0 11:36:54,127 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Moving last applied index from -1 to 0 11:36:54,127 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Applying state for log index 0 data zero 11:36:54,127 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: applyState called: zero 11:36:54,127 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Checking sendAppendEntries for follower follower91: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:36:54,128 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): sendAppendEntries: 0 is present for follower follower91 11:36:54,128 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Sending AppendEntries to follower follower91: AppendEntries [leaderId=leader90, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:36:54,128 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Persisting ApplyJournalEntries with index=0 11:36:54,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): handleAppendEntries: AppendEntries [leaderId=leader90, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:36:54,128 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:54,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Number of entries to be appended = 1 11:36:54,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:36:54,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Append entry to log zero 11:36:54,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:54,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:54,128 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:54,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Log size is now 1 11:36:54,128 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:54,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Commit index set to 0 11:36:54,128 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 11:36:54,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower91, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:54,128 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Setting last applied to 1 11:36:54,128 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Moving last applied index from 0 to 1 11:36:54,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower91: Lagging 0 entries behind leader leader90 and reached 0 (of expected -1) 11:36:54,128 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Applying state for log index 1 data one 11:36:54,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:36:54,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Setting last applied to 0 11:36:54,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Moving last applied index from -1 to 0 11:36:54,128 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Applying state for log index 0 data zero 11:36:54,128 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: applyState called: one 11:36:54,128 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: applyState called: zero 11:36:54,129 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Checking sendAppendEntries for follower follower91: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:36:54,129 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): sendAppendEntries: 0 is present for follower follower91 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Persisting ApplyJournalEntries with index=0 11:36:54,129 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Sending AppendEntries to follower follower91: AppendEntries [leaderId=leader90, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:54,129 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower91 updated: matchIndex: 0, nextIndex: 1 11:36:54,129 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: fakeSnapshot purging log to 0 for term 2 [WARN] [11/04/2024 11:36:54.129] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower91] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6349ce54 11:36:54,129 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Checking sendAppendEntries for follower follower91: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:36:54,129 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): sendAppendEntries: 1 is present for follower follower91 [INFO] [pekkoDeadLetter][11/04/2024 11:36:54.129] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower91] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower91] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): handleAppendEntries: AppendEntries [leaderId=leader90, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Number of entries to be appended = 2 11:36:54,129 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Sending AppendEntries to follower follower91: AppendEntries [leaderId=leader90, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:54,129 AM [test-pekko.actor.default-dispatcher-16] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower91] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Append entry to log one 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Log size is now 2 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Commit index set to 1 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower91, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower91: Lagging 0 entries behind leader leader90 and reached 1 (of expected -1) 11:36:54,129 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Persisting ApplyJournalEntries with index=1 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Setting last applied to 1 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Moving last applied index from 0 to 1 11:36:54,129 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Applying state for log index 1 data one 11:36:54,129 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:54,130 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: applyState called: one 11:36:54,130 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower91 updated: matchIndex: 1, nextIndex: 2 11:36:54,130 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): handleAppendEntries: AppendEntries [leaderId=leader90, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:54,130 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Number of entries to be appended = 1 11:36:54,130 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Checking sendAppendEntries for follower follower91: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:36:54,130 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 11:36:54,130 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:36:54,130 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Log size is now 2 11:36:54,130 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:36:54,130 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower91, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:54,130 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:36:54,130 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower91: Lagging 0 entries behind leader leader90 and reached 1 (of expected -1) 11:36:54,130 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: fakeSnapshot purging log to 0 for term 2 11:36:54,130 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 11:36:54,130 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Setting last applied to 2 11:36:54,130 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Moving last applied index from 1 to 2 11:36:54,130 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Applying state for log index 2 data two 11:36:54,130 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Persisting ApplyJournalEntries with index=1 11:36:54,130 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: applyState called: two 11:36:54,130 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Checking sendAppendEntries for follower follower91: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): sendAppendEntries: 2 is present for follower follower91 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Sending AppendEntries to follower follower91: AppendEntries [leaderId=leader90, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): handleAppendEntries: AppendEntries [leaderId=leader90, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Number of entries to be appended = 1 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Append entry to log two 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Log size is now 2 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Commit index set to 2 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower91, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower91: Lagging 0 entries behind leader leader90 and reached 2 (of expected -1) 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Setting last applied to 2 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Moving last applied index from 1 to 2 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Applying state for log index 2 data two 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: applyState called: two 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Persisting ApplyJournalEntries with index=2 11:36:54,131 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: fakeSnapshot purging log to 1 for term 2 11:36:54,132 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): sendAppendEntries: 2 is present for follower follower91 11:36:54,132 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Persisting ApplyJournalEntries with index=2 11:36:54,132 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower91 updated: matchIndex: 2, nextIndex: 3 11:36:54,132 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Checking sendAppendEntries for follower follower91: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:36:54,132 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] [WARN] [11/04/2024 11:36:54.190] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader90]: org.opendaylight.controller.cluster.common.actor.Monitor@69b1a524 [INFO] [pekkoDeadLetter][11/04/2024 11:36:54.190] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader90] to Actor[pekko://test/user/termination-monitor] was not delivered. [9] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:54,191 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader90] to Actor[pekko://test/user/termination-monitor] was not delivered. [9] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:54,191 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader90 with journal batch size 1000 11:36:54,194 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Set currentTerm=1, votedFor=leader90 11:36:54,194 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Received ReplicatedLogEntry for recovery: index: 0, size: 141 11:36:54,194 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Updated server config: isVoting: true, peers: [PeerInfo [id=follower91, address=pekko://test/user/follower91, votingState=NON_VOTING]] 11:36:54,194 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Set currentTerm=2, votedFor=leader90 11:36:54,194 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:36:54,676 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.153:17355, Removed) 11:36:54,676 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Follower): Received ElectionTimeout - switching to Candidate 11:36:54,676 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Candidate): Election: Candidate has following voting peers: [] 11:36:54,676 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Set currentTerm=3, votedFor=leader90 11:36:54,676 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Candidate): Starting new election term 3 11:36:54,676 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:36:54,677 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Candidate): Received ElectionTimeout 11:36:54,677 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Election: Leader has following peers: [follower91] 11:36:54,678 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Checking sendAppendEntries for follower follower91: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:36:54,678 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:36:54,699 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:54,699 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:54,699 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 11:36:54,699 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Setting last applied to 0 11:36:54,699 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Moving last applied index from -1 to 0 11:36:54,699 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Applying state for log index 0 data zero-1 11:36:54,699 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: applyState called: zero-1 11:36:54,699 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Checking sendAppendEntries for follower follower91: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:36:54,700 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Persisting ApplyJournalEntries with index=0 11:36:54,700 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:54,700 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:36:54,700 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:36:54,700 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 11:36:54,700 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Setting last applied to 1 11:36:54,700 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Moving last applied index from 0 to 1 11:36:54,700 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Applying state for log index 1 data one-1 11:36:54,700 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: applyState called: one-1 11:36:54,700 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Checking sendAppendEntries for follower follower91: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:36:54,701 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Persisting ApplyJournalEntries with index=1 11:36:54,701 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:36:54,796 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Term 3 in "AppendEntries [leaderId=leader90, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 11:36:54,797 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Set currentTerm=3, votedFor=null 11:36:54,797 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower91: Lagging -3 entries behind leader leader90 and reached 2 (of expected -1) 11:36:54,797 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): handleAppendEntriesReply: follower follower91 lastIndex 2 is ahead of our lastIndex 1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 11:36:54,797 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=3, lastIndex=1, lastTerm=3, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on follower91 11:36:54,797 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: lastSequenceNumber prior to capture: -1 11:36:54,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: CaptureSnapshotReply received by actor 11:36:54,799 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Persisting of snapshot done: Snapshot [lastIndex=1, lastTerm=3, lastAppliedIndex=1, lastAppliedTerm=3, unAppliedEntries size=0, state=MockSnapshotState [state=[zero-1, one-1]], electionTerm=3, electionVotedFor=leader90, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower91, isVoting=false], ServerInfo[peerId=leader90, isVoting=true]]]] 11:36:54,801 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:36:54,802 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): sendInstallSnapshot 11:36:54,802 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader90 (Leader): Snapshot 333 bytes, total chunks to send: 1 11:36:54,802 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader90 (Leader): Next chunk: total length=333, offset=0, size=333, hashCode=878051978 11:36:54,802 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): next snapshot chunk size for follower follower91: 333 11:36:54,802 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): InstallSnapshot sent to follower Vector(user, follower91), Chunk: 1/1 11:36:54,803 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: Snapshot success - sequence number: -1 11:36:54,803 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: SnapshotComplete received 11:36:54,803 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader90, lastIncludedIndex=1, lastIncludedTerm=3, datasize=333, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower91, isVoting=false], ServerInfo[peerId=leader90, isVoting=true]]]] 11:36:54,809 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower91: Lagging -1 entries behind leader leader90 and reached 2 (of expected -1) 11:36:54,809 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:36:54,809 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): Snapshot installed from leader: leader90 11:36:54,814 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Applying snapshot on follower: Snapshot [lastIndex=1, lastTerm=3, lastAppliedIndex=1, lastAppliedTerm=3, unAppliedEntries size=0, state=MockSnapshotState [state=[zero-1, one-1]], electionTerm=3, electionVotedFor=null, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower91, isVoting=false], ServerInfo[peerId=leader90, isVoting=true]]]] 11:36:54,814 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:36:54,814 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Snapshot success - sequence number: -1 11:36:54,814 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Moving last applied index from 2 to 1 11:36:54,814 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Set currentTerm=3, votedFor=null 11:36:54,814 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: Updated server config: isVoting: false, peers: [PeerInfo [id=leader90, address=pekko://test/user/leader90, votingState=VOTING]] 11:36:54,814 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: applySnapshot called 11:36:54,815 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower91, chunkIndex=1, success=true] 11:36:54,817 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower91: SnapshotComplete received 11:36:54,817 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower91, chunkIndex=1, success=true] 11:36:54,817 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader90 (Leader): Snapshot successfully installed on follower follower91 (last chunk 1) - matchIndex set to 1, nextIndex set to 2 11:36:54,817 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader90: fakeSnapshot purging log to 0 for term 3 11:36:54,854 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart ending 11:36:54,854 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower91-collector93#-1292966326] 11:36:54,865 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower91] 11:36:54,866 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader90-collector94#1535913916] 11:36:54,866 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader90] 11:36:54,867 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader90-collector95#795471389] 11:36:54,867 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader90] 11:36:54,869 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart starting [WARN] [11/04/2024 11:36:54.874] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower97]: org.opendaylight.controller.cluster.common.actor.Monitor@2cb32676 [INFO] [pekkoDeadLetter][11/04/2024 11:36:54.874] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower97] to Actor[pekko://test/user/termination-monitor] was not delivered. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:54,875 AM [test-pekko.actor.default-dispatcher-16] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower97] to Actor[pekko://test/user/termination-monitor] was not delivered. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:36:54,875 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower97 with journal batch size 1000 11:36:54,876 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Set currentTerm=1, votedFor=leader96 11:36:54,877 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader96 with journal batch size 1000 11:36:54,877 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Received ReplicatedLogEntry for recovery: index: 0, size: 141 11:36:54,877 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Updated server config: isVoting: false, peers: [PeerInfo [id=leader96, address=pekko://test/user/leader96, votingState=VOTING]] [WARN] [11/04/2024 11:36:54.877] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader96]: org.opendaylight.controller.cluster.common.actor.Monitor@7b858971 11:36:54,877 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:36:54,878 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Set currentTerm=1, votedFor=leader96 11:36:54,878 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Received ReplicatedLogEntry for recovery: index: 0, size: 141 11:36:54,878 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Updated server config: isVoting: true, peers: [PeerInfo [id=follower97, address=pekko://test/user/follower97, votingState=NON_VOTING]] 11:36:54,878 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:36:55,396 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:36:55,396 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.153:17355, Removed) 11:36:55,396 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Follower): Received ElectionTimeout - switching to Candidate 11:36:55,396 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Candidate): Election: Candidate has following voting peers: [] 11:36:55,396 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Set currentTerm=2, votedFor=leader96 11:36:55,397 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Candidate): Starting new election term 2 11:36:55,397 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:36:55,398 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Candidate): Received ElectionTimeout 11:36:55,398 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Election: Leader has following peers: [follower97] 11:36:55,398 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Checking sendAppendEntries for follower follower97: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:36:55,398 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:36:55,398 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Term 2 in "AppendEntries [leaderId=leader96, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 11:36:55,399 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Set currentTerm=2, votedFor=null 11:36:55,399 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower97: Last sync leader does not match current leader leader96, need to catch up to -1 11:36:55,399 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower97 updated: matchIndex: -1, nextIndex: 0 11:36:55,399 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Checking sendAppendEntries for follower follower97: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [11/04/2024 11:36:55.399] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower97] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3651ea8 11:36:55,434 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:55,434 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:55,434 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 11:36:55,434 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Setting last applied to 0 11:36:55,434 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Moving last applied index from -1 to 0 11:36:55,434 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Applying state for log index 0 data zero 11:36:55,435 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: applyState called: zero 11:36:55,435 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Checking sendAppendEntries for follower follower97: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:36:55,435 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): sendAppendEntries: 0 is present for follower follower97 11:36:55,435 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Sending AppendEntries to follower follower97: AppendEntries [leaderId=leader96, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:36:55,435 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Persisting ApplyJournalEntries with index=0 11:36:55,435 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:55,435 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): handleAppendEntries: AppendEntries [leaderId=leader96, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:36:55,435 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Number of entries to be appended = 1 11:36:55,435 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:36:55,435 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:55,435 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:55,435 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Append entry to log zero 11:36:55,435 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:55,435 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 11:36:55,435 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:55,435 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Setting last applied to 1 11:36:55,435 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Log size is now 1 11:36:55,435 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Moving last applied index from 0 to 1 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Commit index set to 0 11:36:55,436 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Applying state for log index 1 data one 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower97, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:55,436 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: applyState called: one 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower97: Lagging 0 entries behind leader leader96 and reached 0 (of expected -1) 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Setting last applied to 0 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Moving last applied index from -1 to 0 11:36:55,436 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Checking sendAppendEntries for follower follower97: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Applying state for log index 0 data zero 11:36:55,436 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): sendAppendEntries: 0 is present for follower follower97 11:36:55,436 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Sending AppendEntries to follower follower97: AppendEntries [leaderId=leader96, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: applyState called: zero 11:36:55,436 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower97 updated: matchIndex: 0, nextIndex: 1 11:36:55,436 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: fakeSnapshot purging log to 0 for term 2 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): handleAppendEntries: AppendEntries [leaderId=leader96, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:55,436 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Checking sendAppendEntries for follower follower97: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Number of entries to be appended = 2 11:36:55,436 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): sendAppendEntries: 1 is present for follower follower97 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Append entry to log one 11:36:55,436 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Sending AppendEntries to follower follower97: AppendEntries [leaderId=leader96, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Log size is now 2 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Commit index set to 1 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower97, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:55,436 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Persisting ApplyJournalEntries with index=1 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower97: Lagging 0 entries behind leader leader96 and reached 1 (of expected -1) 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:36:55,436 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Setting last applied to 1 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Moving last applied index from 0 to 1 11:36:55,436 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Applying state for log index 1 data one 11:36:55,437 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower97 updated: matchIndex: 1, nextIndex: 2 11:36:55,437 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: applyState called: one 11:36:55,437 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Checking sendAppendEntries for follower follower97: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:36:55,437 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:36:55,437 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Persisting ApplyJournalEntries with index=0 11:36:55,437 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:36:55,437 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 11:36:55,437 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Setting last applied to 2 11:36:55,437 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Moving last applied index from 1 to 2 11:36:55,437 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Applying state for log index 2 data two 11:36:55,437 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): handleAppendEntries: AppendEntries [leaderId=leader96, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:55,437 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Number of entries to be appended = 1 11:36:55,437 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: applyState called: two 11:36:55,437 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 11:36:55,437 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:36:55,437 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Log size is now 2 11:36:55,437 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower97, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:55,437 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Checking sendAppendEntries for follower follower97: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 11:36:55,437 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower97: Lagging 0 entries behind leader leader96 and reached 1 (of expected -1) 11:36:55,437 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): sendAppendEntries: 2 is present for follower follower97 11:36:55,437 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: fakeSnapshot purging log to 0 for term 2 11:36:55,437 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Sending AppendEntries to follower follower97: AppendEntries [leaderId=leader96, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:36:55,437 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Persisting ApplyJournalEntries with index=1 11:36:55,437 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): handleAppendEntries: AppendEntries [leaderId=leader96, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:36:55,437 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Persisting ApplyJournalEntries with index=2 11:36:55,437 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Number of entries to be appended = 1 11:36:55,437 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:36:55,438 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Append entry to log two 11:36:55,438 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:36:55,438 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: fakeSnapshot purging log to 1 for term 2 11:36:55,438 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:36:55,438 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Log size is now 2 11:36:55,438 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Commit index set to 2 11:36:55,438 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): sendAppendEntries: 2 is present for follower follower97 11:36:55,438 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower97, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:55,438 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower97: Lagging 0 entries behind leader leader96 and reached 2 (of expected -1) 11:36:55,438 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:36:55,438 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:36:55,438 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Setting last applied to 2 11:36:55,438 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Moving last applied index from 1 to 2 11:36:55,438 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Applying state for log index 2 data two 11:36:55,438 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower97 updated: matchIndex: 2, nextIndex: 3 11:36:55,438 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: applyState called: two 11:36:55,438 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Checking sendAppendEntries for follower follower97: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:36:55,438 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Persisting ApplyJournalEntries with index=2 [WARN] [11/04/2024 11:36:55.438] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower97] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@753c4b19 [WARN] [11/04/2024 11:36:55.497] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader96]: org.opendaylight.controller.cluster.common.actor.Monitor@25f4b850 11:36:55,498 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader96 with journal batch size 1000 11:36:55,500 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Set currentTerm=1, votedFor=leader96 11:36:55,501 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Received ReplicatedLogEntry for recovery: index: 0, size: 141 11:36:55,501 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Updated server config: isVoting: true, peers: [PeerInfo [id=follower97, address=pekko://test/user/follower97, votingState=NON_VOTING]] 11:36:55,501 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Set currentTerm=2, votedFor=leader96 11:36:55,501 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:36:55,936 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.153:17355, Removed) 11:36:55,936 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Follower): Received ElectionTimeout - switching to Candidate 11:36:55,936 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Candidate): Election: Candidate has following voting peers: [] 11:36:55,936 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Set currentTerm=3, votedFor=leader96 11:36:55,936 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Candidate): Starting new election term 3 11:36:55,936 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:36:55,938 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Candidate): Received ElectionTimeout 11:36:55,938 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Election: Leader has following peers: [follower97] 11:36:55,938 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Checking sendAppendEntries for follower follower97: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:36:55,938 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Term 3 in "AppendEntries [leaderId=leader96, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 11:36:55,938 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Set currentTerm=3, votedFor=null 11:36:55,938 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower97: Lagging -3 entries behind leader leader96 and reached 2 (of expected -1) 11:36:55,938 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:36:55,938 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): handleAppendEntriesReply: follower follower97 lastIndex 2 is ahead of our lastIndex -1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 11:36:55,938 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 11:36:55,938 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on follower97 11:36:55,938 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: lastSequenceNumber prior to capture: -1 11:36:55,939 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: CaptureSnapshotReply received by actor 11:36:55,939 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=3, electionVotedFor=leader96, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower97, isVoting=false], ServerInfo[peerId=leader96, isVoting=true]]]] 11:36:55,939 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:36:55,939 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): sendInstallSnapshot 11:36:55,939 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader96 (Leader): Snapshot 171 bytes, total chunks to send: 1 11:36:55,939 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader96 (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 11:36:55,939 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): next snapshot chunk size for follower follower97: 171 11:36:55,939 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): InstallSnapshot sent to follower Vector(user, follower97), Chunk: 1/1 11:36:55,939 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Snapshot success - sequence number: -1 11:36:55,939 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: SnapshotComplete received 11:36:55,939 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader96, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower97, isVoting=false], ServerInfo[peerId=leader96, isVoting=true]]]] 11:36:55,939 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower97: Lagging -3 entries behind leader leader96 and reached 2 (of expected -1) 11:36:55,939 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:36:55,939 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Snapshot installed from leader: leader96 11:36:55,939 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Applying snapshot on follower: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=3, electionVotedFor=null, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower97, isVoting=false], ServerInfo[peerId=leader96, isVoting=true]]]] 11:36:55,939 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:36:55,940 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Snapshot success - sequence number: -1 11:36:55,940 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Moving last applied index from 2 to -1 11:36:55,940 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Set currentTerm=3, votedFor=null 11:36:55,940 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Updated server config: isVoting: false, peers: [PeerInfo [id=leader96, address=pekko://test/user/leader96, votingState=VOTING]] 11:36:55,940 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: applySnapshot called 11:36:55,940 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower97, chunkIndex=1, success=true] 11:36:55,940 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower97, chunkIndex=1, success=true] 11:36:55,940 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Snapshot successfully installed on follower follower97 (last chunk 1) - matchIndex set to -1, nextIndex set to 0 11:36:55,940 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: SnapshotComplete received 11:36:55,950 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:55,950 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:55,950 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 11:36:55,950 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Setting last applied to 0 11:36:55,950 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Moving last applied index from -1 to 0 11:36:55,950 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Applying state for log index 0 data zero-1 11:36:55,950 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: applyState called: zero-1 11:36:55,950 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Checking sendAppendEntries for follower follower97: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:36:55,950 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): sendAppendEntries: 0 is present for follower follower97 11:36:55,950 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Sending AppendEntries to follower follower97: AppendEntries [leaderId=leader96, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): handleAppendEntries: AppendEntries [leaderId=leader96, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Number of entries to be appended = 1 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Append entry to log zero-1 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Log size is now 1 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Commit index set to 0 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower97, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower97: Lagging 0 entries behind leader leader96 and reached 0 (of expected -1) 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97 (Follower): Setting last applied to 0 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Moving last applied index from -1 to 0 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Applying state for log index 0 data zero-1 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: applyState called: zero-1 11:36:55,951 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower97: Persisting ApplyJournalEntries with index=0 11:36:55,951 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: Persisting ApplyJournalEntries with index=0 11:36:55,951 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower97 updated: matchIndex: 0, nextIndex: 1 11:36:55,951 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96 (Leader): Checking sendAppendEntries for follower follower97: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:36:55,951 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader96: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:56,0 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart ending 11:36:56,0 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower97-collector99#1126106273] 11:36:56,11 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower97] 11:36:56,12 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader96-collector100#555602631] 11:36:56,12 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader96] 11:36:56,12 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader96-collector101#-952714506] 11:36:56,12 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader96] 11:36:56,14 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart starting 11:36:56,17 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower103 with journal batch size 1000 [WARN] [11/04/2024 11:36:56.017] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower103]: org.opendaylight.controller.cluster.common.actor.Monitor@6ac3a618 [WARN] [11/04/2024 11:36:56.018] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader102]: org.opendaylight.controller.cluster.common.actor.Monitor@3708ad49 11:36:56,19 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Set currentTerm=1, votedFor=leader102 11:36:56,19 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:36:56,19 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Updated server config: isVoting: false, peers: [PeerInfo [id=leader102, address=pekko://test/user/leader102, votingState=VOTING]] 11:36:56,19 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:36:56,19 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader102 with journal batch size 1000 11:36:56,20 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Set currentTerm=1, votedFor=leader102 11:36:56,20 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:36:56,20 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Updated server config: isVoting: true, peers: [PeerInfo [id=follower103, address=pekko://test/user/follower103, votingState=NON_VOTING]] 11:36:56,20 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:36:56,456 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:36:56,456 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.153:17355, Removed) 11:36:56,456 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Follower): Received ElectionTimeout - switching to Candidate 11:36:56,456 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Candidate): Election: Candidate has following voting peers: [] 11:36:56,456 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Set currentTerm=2, votedFor=leader102 11:36:56,456 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Candidate): Starting new election term 2 11:36:56,456 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:36:56,457 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Candidate): Received ElectionTimeout 11:36:56,457 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Election: Leader has following peers: [follower103] 11:36:56,458 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Checking sendAppendEntries for follower follower103: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:36:56,458 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:36:56,458 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Term 2 in "AppendEntries [leaderId=leader102, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 11:36:56,458 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Set currentTerm=2, votedFor=null 11:36:56,458 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower103: Last sync leader does not match current leader leader102, need to catch up to -1 11:36:56,458 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower103 updated: matchIndex: -1, nextIndex: 0 11:36:56,459 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Checking sendAppendEntries for follower follower103: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [11/04/2024 11:36:56.459] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower103] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@693922e3 11:36:56,474 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:56,474 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:56,475 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 11:36:56,475 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Setting last applied to 0 11:36:56,475 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Moving last applied index from -1 to 0 11:36:56,475 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Applying state for log index 0 data zero 11:36:56,475 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: applyState called: zero 11:36:56,475 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Checking sendAppendEntries for follower follower103: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:36:56,475 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): sendAppendEntries: 0 is present for follower follower103 11:36:56,475 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Sending AppendEntries to follower follower103: AppendEntries [leaderId=leader102, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:36:56,475 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Persisting ApplyJournalEntries with index=0 11:36:56,475 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:56,475 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): handleAppendEntries: AppendEntries [leaderId=leader102, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:36:56,475 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Number of entries to be appended = 1 11:36:56,475 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:56,475 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:36:56,475 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:56,475 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Append entry to log zero 11:36:56,475 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:56,475 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 11:36:56,476 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:56,476 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Setting last applied to 1 11:36:56,476 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Moving last applied index from 0 to 1 11:36:56,476 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Log size is now 1 11:36:56,476 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Applying state for log index 1 data one 11:36:56,476 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Commit index set to 0 11:36:56,476 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: applyState called: one 11:36:56,476 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower103, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:56,476 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Checking sendAppendEntries for follower follower103: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:36:56,476 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower103: Lagging 0 entries behind leader leader102 and reached 0 (of expected -1) 11:36:56,476 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:36:56,476 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Setting last applied to 0 11:36:56,476 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): sendAppendEntries: 0 is present for follower follower103 11:36:56,476 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Moving last applied index from -1 to 0 11:36:56,476 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Applying state for log index 0 data zero 11:36:56,476 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Sending AppendEntries to follower follower103: AppendEntries [leaderId=leader102, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:56,476 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: applyState called: zero 11:36:56,476 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Persisting ApplyJournalEntries with index=1 11:36:56,476 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Persisting ApplyJournalEntries with index=0 11:36:56,476 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower103 updated: matchIndex: 0, nextIndex: 1 11:36:56,476 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: fakeSnapshot purging log to 0 for term 2 11:36:56,477 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Checking sendAppendEntries for follower follower103: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:36:56,477 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): sendAppendEntries: 1 is present for follower follower103 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): handleAppendEntries: AppendEntries [leaderId=leader102, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:56,477 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Sending AppendEntries to follower follower103: AppendEntries [leaderId=leader102, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Number of entries to be appended = 2 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 11:36:56,477 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Append entry to log one 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Log size is now 2 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Commit index set to 1 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower103, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower103: Lagging 0 entries behind leader leader102 and reached 1 (of expected -1) 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Setting last applied to 1 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Moving last applied index from 0 to 1 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Applying state for log index 1 data one 11:36:56,477 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower103 updated: matchIndex: 1, nextIndex: 2 11:36:56,477 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: applyState called: one 11:36:56,477 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Checking sendAppendEntries for follower follower103: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:36:56,478 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): handleAppendEntries: AppendEntries [leaderId=leader102, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:56,478 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Number of entries to be appended = 1 11:36:56,478 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 11:36:56,478 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:36:56,478 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Log size is now 2 11:36:56,478 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower103, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:56,478 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower103: Lagging 0 entries behind leader leader102 and reached 1 (of expected -1) 11:36:56,478 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: fakeSnapshot purging log to 0 for term 2 11:36:56,478 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Persisting ApplyJournalEntries with index=1 [WARN] [11/04/2024 11:36:56.478] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower103] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1544bc7e [WARN] [11/04/2024 11:36:56.528] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader102]: org.opendaylight.controller.cluster.common.actor.Monitor@4fe7b703 11:36:56,529 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader102 with journal batch size 1000 11:36:56,531 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Set currentTerm=1, votedFor=leader102 11:36:56,531 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:36:56,532 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Updated server config: isVoting: true, peers: [PeerInfo [id=follower103, address=pekko://test/user/follower103, votingState=NON_VOTING]] 11:36:56,532 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Set currentTerm=2, votedFor=leader102 11:36:56,532 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:36:56,986 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.153:17355, Removed) 11:36:56,986 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Follower): Received ElectionTimeout - switching to Candidate 11:36:56,986 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Candidate): Election: Candidate has following voting peers: [] 11:36:56,986 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Set currentTerm=3, votedFor=leader102 11:36:56,986 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Candidate): Starting new election term 3 11:36:56,987 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:36:56,988 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Candidate): Received ElectionTimeout 11:36:56,988 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Election: Leader has following peers: [follower103] 11:36:56,988 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Checking sendAppendEntries for follower follower103: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:36:56,988 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:36:57,36 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:57,36 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:57,36 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 11:36:57,36 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Setting last applied to 0 11:36:57,36 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Moving last applied index from -1 to 0 11:36:57,36 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Applying state for log index 0 data zero-1 11:36:57,37 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: applyState called: zero-1 11:36:57,37 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Checking sendAppendEntries for follower follower103: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:36:57,37 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Persisting ApplyJournalEntries with index=0 11:36:57,37 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:57,37 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:36:57,37 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:36:57,37 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 11:36:57,37 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Setting last applied to 1 11:36:57,37 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Moving last applied index from 0 to 1 11:36:57,37 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Applying state for log index 1 data one-1 11:36:57,37 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: applyState called: one-1 11:36:57,37 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Checking sendAppendEntries for follower follower103: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:36:57,38 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Persisting ApplyJournalEntries with index=1 11:36:57,38 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:36:57,38 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:36:57,38 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:36:57,38 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 11:36:57,38 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Setting last applied to 2 11:36:57,38 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Moving last applied index from 1 to 2 11:36:57,38 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Applying state for log index 2 data two-1 11:36:57,38 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: applyState called: two-1 11:36:57,38 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Checking sendAppendEntries for follower follower103: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:36:57,38 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Persisting ApplyJournalEntries with index=2 11:36:57,39 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:36:57,106 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Term 3 in "AppendEntries [leaderId=leader102, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 11:36:57,106 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Set currentTerm=3, votedFor=null 11:36:57,106 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower103: Lagging -2 entries behind leader leader102 and reached 1 (of expected -1) 11:36:57,107 AM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): handleAppendEntriesReply: follower follower103 last log term 2 for index 1 conflicts with the leader's 3 - set the follower's next index to 0 11:36:57,107 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Checking sendAppendEntries for follower follower103: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:36:57,107 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): sendAppendEntries: 0 is present for follower follower103 11:36:57,107 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Sending AppendEntries to follower follower103: AppendEntries [leaderId=leader102, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 11:36:57,107 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): handleAppendEntries: AppendEntries [leaderId=leader102, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 11:36:57,107 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Number of entries to be appended = 3 11:36:57,107 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: 2 11:36:57,108 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:36:57,108 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Removing entries from log starting at 0, commitIndex: 1, lastApplied: 1 11:36:57,108 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Could not remove entries - sending reply to force snapshot 11:36:57,108 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower103: Lagging 1 entries behind leader leader102 and reached 1 (of expected -1) 11:36:57,108 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower103, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 11:36:57,108 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=3, lastIndex=2, lastTerm=3, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on follower103 11:36:57,108 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: lastSequenceNumber prior to capture: -1 11:36:57,108 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: CaptureSnapshotReply received by actor 11:36:57,108 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Persisting of snapshot done: Snapshot [lastIndex=2, lastTerm=3, lastAppliedIndex=2, lastAppliedTerm=3, unAppliedEntries size=0, state=MockSnapshotState [state=[zero-1, one-1, two-1]], electionTerm=3, electionVotedFor=leader102, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower103, isVoting=false], ServerInfo[peerId=leader102, isVoting=true]]]] 11:36:57,109 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:36:57,109 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): sendInstallSnapshot 11:36:57,109 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader102 (Leader): Snapshot 351 bytes, total chunks to send: 1 11:36:57,109 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader102 (Leader): Next chunk: total length=351, offset=0, size=351, hashCode=236499276 11:36:57,109 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): next snapshot chunk size for follower follower103: 351 11:36:57,109 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): InstallSnapshot sent to follower Vector(user, follower103), Chunk: 1/1 11:36:57,109 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: Snapshot success - sequence number: -1 11:36:57,109 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: SnapshotComplete received 11:36:57,109 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader102, lastIncludedIndex=2, lastIncludedTerm=3, datasize=351, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower103, isVoting=false], ServerInfo[peerId=leader102, isVoting=true]]]] 11:36:57,109 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower103: Lagging 1 entries behind leader leader102 and reached 1 (of expected -1) 11:36:57,109 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:36:57,109 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): Snapshot installed from leader: leader102 11:36:57,110 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Applying snapshot on follower: Snapshot [lastIndex=2, lastTerm=3, lastAppliedIndex=2, lastAppliedTerm=3, unAppliedEntries size=0, state=MockSnapshotState [state=[zero-1, one-1, two-1]], electionTerm=3, electionVotedFor=null, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower103, isVoting=false], ServerInfo[peerId=leader102, isVoting=true]]]] 11:36:57,110 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:36:57,110 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Snapshot success - sequence number: -1 11:36:57,110 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Moving last applied index from 1 to 2 11:36:57,110 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Set currentTerm=3, votedFor=null 11:36:57,110 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: Updated server config: isVoting: false, peers: [PeerInfo [id=leader102, address=pekko://test/user/leader102, votingState=VOTING]] 11:36:57,110 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: applySnapshot called 11:36:57,110 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower103, chunkIndex=1, success=true] 11:36:57,111 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower103: SnapshotComplete received 11:36:57,111 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower103, chunkIndex=1, success=true] 11:36:57,111 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader102 (Leader): Snapshot successfully installed on follower follower103 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 11:36:57,111 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader102: fakeSnapshot purging log to 1 for term 3 11:36:57,137 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart ending 11:36:57,137 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower103-collector105#-558608902] 11:36:57,148 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower103] 11:36:57,149 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader102-collector106#944266289] 11:36:57,149 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader102] 11:36:57,149 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader102-collector107#481848345] 11:36:57,149 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader102] 11:36:57,150 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart starting [WARN] [11/04/2024 11:36:57.152] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower109]: org.opendaylight.controller.cluster.common.actor.Monitor@5dcf9289 11:36:57,152 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower109 with journal batch size 1000 11:36:57,154 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Set currentTerm=1, votedFor=leader108 11:36:57,155 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Received ReplicatedLogEntry for recovery: index: 0, size: 143 [WARN] [11/04/2024 11:36:57.155] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader108]: org.opendaylight.controller.cluster.common.actor.Monitor@733f7d00 11:36:57,155 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Updated server config: isVoting: false, peers: [PeerInfo [id=leader108, address=pekko://test/user/leader108, votingState=VOTING]] 11:36:57,155 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:36:57,155 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader108 with journal batch size 1000 11:36:57,156 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Set currentTerm=1, votedFor=leader108 11:36:57,156 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:36:57,157 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Updated server config: isVoting: true, peers: [PeerInfo [id=follower109, address=pekko://test/user/follower109, votingState=NON_VOTING]] 11:36:57,157 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:36:57,606 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:36:57,606 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.153:17355, Removed) 11:36:57,606 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Follower): Received ElectionTimeout - switching to Candidate 11:36:57,606 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Candidate): Election: Candidate has following voting peers: [] 11:36:57,606 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Set currentTerm=2, votedFor=leader108 11:36:57,606 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Candidate): Starting new election term 2 11:36:57,607 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:36:57,607 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Candidate): Received ElectionTimeout 11:36:57,608 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Election: Leader has following peers: [follower109] 11:36:57,608 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:36:57,608 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:36:57,608 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Term 2 in "AppendEntries [leaderId=leader108, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 11:36:57,608 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Set currentTerm=2, votedFor=null 11:36:57,608 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower109: Last sync leader does not match current leader leader108, need to catch up to -1 11:36:57,608 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: -1, nextIndex: 0 11:36:57,609 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [11/04/2024 11:36:57.610] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower109] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@444ad1ad 11:36:57,611 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:57,612 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:57,612 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 11:36:57,612 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Setting last applied to 0 11:36:57,612 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Moving last applied index from -1 to 0 11:36:57,612 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Applying state for log index 0 data zero 11:36:57,612 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: applyState called: zero 11:36:57,612 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:36:57,612 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 0 is present for follower follower109 11:36:57,612 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Sending AppendEntries to follower follower109: AppendEntries [leaderId=leader108, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:36:57,612 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persisting ApplyJournalEntries with index=0 11:36:57,612 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:57,612 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries: AppendEntries [leaderId=leader108, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:36:57,612 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 1 11:36:57,613 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:57,613 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:36:57,613 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:57,613 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log zero 11:36:57,613 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:57,613 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:36:57,613 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 11:36:57,613 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 1 11:36:57,613 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Setting last applied to 1 11:36:57,613 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 0 11:36:57,613 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Moving last applied index from 0 to 1 11:36:57,613 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Applying state for log index 1 data one 11:36:57,613 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower109, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:57,613 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader108 and reached 0 (of expected -1) 11:36:57,613 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:36:57,613 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: applyState called: one 11:36:57,613 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 0 11:36:57,613 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from -1 to 0 11:36:57,613 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 0 data zero 11:36:57,613 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:36:57,613 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 0 is present for follower follower109 11:36:57,613 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: zero 11:36:57,613 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Sending AppendEntries to follower follower109: AppendEntries [leaderId=leader108, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:57,613 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=0 11:36:57,613 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 0, nextIndex: 1 11:36:57,613 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries: AppendEntries [leaderId=leader108, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:57,613 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: fakeSnapshot purging log to 0 for term 2 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 2 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log one 11:36:57,614 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:57,614 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 1 is present for follower follower109 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 2 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 1 11:36:57,614 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Sending AppendEntries to follower follower109: AppendEntries [leaderId=leader108, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower109, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader108 and reached 1 (of expected -1) 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 1 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from 0 to 1 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 1 data one 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: one 11:36:57,614 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persisting ApplyJournalEntries with index=1 11:36:57,614 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:36:57,614 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 1, nextIndex: 2 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries: AppendEntries [leaderId=leader108, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:36:57,614 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 1 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 2 11:36:57,614 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:36:57,614 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower109, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader108 and reached 1 (of expected -1) 11:36:57,614 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: fakeSnapshot purging log to 0 for term 2 11:36:57,614 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 11:36:57,614 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Setting last applied to 2 11:36:57,614 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Moving last applied index from 1 to 2 11:36:57,614 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Applying state for log index 2 data two 11:36:57,615 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=1 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: applyState called: two 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 2 is present for follower follower109 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Sending AppendEntries to follower follower109: AppendEntries [leaderId=leader108, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] [WARN] [11/04/2024 11:36:57.615] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower109] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@32f94df6 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries: AppendEntries [leaderId=leader108, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:36:57,615 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: fakeSnapshot purging log to 1 for term 2 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 1 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log two 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 2 11:36:57,615 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 2 is present for follower follower109 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 2 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower109, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader108 and reached 2 (of expected -1) 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 2 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from 1 to 2 11:36:57,615 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persisting ApplyJournalEntries with index=2 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 2 data two 11:36:57,615 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: two 11:36:57,615 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=2 11:36:57,616 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 2, nextIndex: 3 11:36:57,616 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:36:57,726 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader108 and reached 2 (of expected -1) 11:36:57,726 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: fakeSnapshot purging log to 1 for term 2 [WARN] [11/04/2024 11:36:57.767] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower110]: org.opendaylight.controller.cluster.common.actor.Monitor@77138c71 11:36:57,767 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower110 with journal batch size 1000 11:36:57,770 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Received ReplicatedLogEntry for recovery: index: 0, size: 174 11:36:57,770 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Updated server config: isVoting: true, peers: [PeerInfo [id=follower109, address=pekko://test/user/follower109, votingState=NON_VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING], PeerInfo [id=leader108, address=pekko://test/user/leader108, votingState=VOTING]] 11:36:57,770 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [11/04/2024 11:36:57.771] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader108]: org.opendaylight.controller.cluster.common.actor.Monitor@161f25ca 11:36:57,772 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader108 with journal batch size 1000 11:36:57,773 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Set currentTerm=2, votedFor=leader108 11:36:57,773 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Received ReplicatedLogEntry for recovery: index: 0, size: 174 11:36:57,773 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Updated server config: isVoting: true, peers: [PeerInfo [id=follower109, address=pekko://test/user/follower109, votingState=NON_VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING], PeerInfo [id=follower110, address=pekko://test/user/follower110, votingState=VOTING]] 11:36:57,773 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:36:58,226 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.153:17355, Removed) 11:36:58,226 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Follower): Received ElectionTimeout - switching to Candidate 11:36:58,226 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Candidate): Election: Candidate has following voting peers: [follower110] 11:36:58,226 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Set currentTerm=3, votedFor=leader108 11:36:58,226 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Candidate): Starting new election term 3 11:36:58,227 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Candidate): Sending RequestVote [term=3, candidateId=leader108, lastLogIndex=-1, lastLogTerm=-1] to peer follower110 11:36:58,227 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:36:58,227 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 11:36:58,227 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Cluster state: [] 11:36:58,227 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=leader108, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 11:36:58,227 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Term 3 in "RequestVote [term=3, candidateId=leader108, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 11:36:58,227 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Set currentTerm=3, votedFor=null 11:36:58,228 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): In requestVote: RequestVote [term=3, candidateId=leader108, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 3, votedFor: null, lastIndex: -1, lastTerm: -1 11:36:58,228 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Set currentTerm=3, votedFor=leader108 11:36:58,228 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 11:36:58,228 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 11:36:58,228 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 11:36:58,228 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Election: Leader has following peers: [follower109, downPeer, follower110] 11:36:58,229 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:36:58,229 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower110: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:36:58,229 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:36:58,229 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower110: Last sync leader does not match current leader leader108, need to catch up to -1 11:36:58,229 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower110 updated: matchIndex: -1, nextIndex: 0 11:36:58,229 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:36:58,229 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:58,229 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:58,230 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 11:36:58,230 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [11/04/2024 11:36:58.230] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower110] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@16dd8fe4 11:36:58,230 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:36:58,230 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 0 is present for follower follower110 11:36:58,230 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Sending AppendEntries to follower follower110: AppendEntries [leaderId=leader108, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 11:36:58,230 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:58,230 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries: AppendEntries [leaderId=leader108, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 11:36:58,230 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Number of entries to be appended = 1 11:36:58,230 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:36:58,230 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Append entry to log zero-1 11:36:58,230 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:36:58,230 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:58,230 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:36:58,230 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:36:58,230 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 11:36:58,230 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Log size is now 1 11:36:58,230 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower110, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:58,230 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:36:58,230 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower110: Lagging 0 entries behind leader leader108 and reached -1 (of expected -1) 11:36:58,231 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:36:58,231 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 0 is present for follower follower110 [WARN] [11/04/2024 11:36:58.231] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower110] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@569c8f47 11:36:58,231 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower110 updated: matchIndex: 0, nextIndex: 1 11:36:58,231 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:36:58,231 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Setting last applied to 0 11:36:58,231 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Moving last applied index from -1 to 0 11:36:58,231 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Applying state for log index 0 data zero-1 11:36:58,231 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: applyState called: zero-1 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 1 is present for follower follower110 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Sending AppendEntries to follower follower110: AppendEntries [leaderId=leader108, prevLogIndex=0, prevLogTerm=3, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=one-1]]] 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persisting ApplyJournalEntries with index=0 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:36:58,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries: AppendEntries [leaderId=leader108, prevLogIndex=0, prevLogTerm=3, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=one-1]]] 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:36:58,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Number of entries to be appended = 1 11:36:58,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 11:36:58,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Append entry to log one-1 11:36:58,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:36:58,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:36:58,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Log size is now 2 11:36:58,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Commit index set to 0 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 1 is present for follower follower110 11:36:58,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower110, logLastIndex=1, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:36:58,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower110: Lagging 0 entries behind leader leader108 and reached 0 (of expected -1) 11:36:58,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 11:36:58,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Setting last applied to 0 11:36:58,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Moving last applied index from -1 to 0 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower110 updated: matchIndex: 1, nextIndex: 2 11:36:58,232 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Applying state for log index 0 data zero-1 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Setting last applied to 1 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Moving last applied index from 0 to 1 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Applying state for log index 1 data one-1 11:36:58,232 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: applyState called: one-1 11:36:58,232 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: applyState called: zero-1 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 2 is present for follower follower110 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Sending AppendEntries to follower follower110: AppendEntries [leaderId=leader108, prevLogIndex=1, prevLogTerm=3, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Persisting ApplyJournalEntries with index=0 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persisting ApplyJournalEntries with index=1 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries: AppendEntries [leaderId=leader108, prevLogIndex=1, prevLogTerm=3, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Number of entries to be appended = 1 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persist data SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Append entry to log two-1 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Replicate message: identifier: MockIdentifier{value=three-1}, logIndex: 3, isSendImmediate: true 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Log size is now 3 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Commit index set to 1 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower110, logLastIndex=2, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower110: Lagging 0 entries behind leader leader108 and reached 1 (of expected -1) 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 2 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Setting last applied to 1 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Moving last applied index from 0 to 1 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: -1 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Applying state for log index 1 data one-1 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 2 is present for follower follower110 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: applyState called: one-1 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower110 updated: matchIndex: 2, nextIndex: 3 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Setting last applied to 2 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Moving last applied index from 1 to 2 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Applying state for log index 2 data two-1 11:36:58,233 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Persisting ApplyJournalEntries with index=1 11:36:58,233 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: applyState called: two-1 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: -1 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 3 is present for follower follower110 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Sending AppendEntries to follower follower110: AppendEntries [leaderId=leader108, prevLogIndex=2, prevLogTerm=3, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=3, payload=three-1]]] 11:36:58,234 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries: AppendEntries [leaderId=leader108, prevLogIndex=2, prevLogTerm=3, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=3, payload=three-1]]] 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Number of entries to be appended = 1 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Append entry to log three-1 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 11:36:58,234 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persisting ApplyJournalEntries with index=2 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Log size is now 4 11:36:58,234 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persist data SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Commit index set to 2 11:36:58,234 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower110, logLastIndex=3, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower110: Lagging 0 entries behind leader leader108 and reached 2 (of expected -1) 11:36:58,234 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Replicate message: identifier: MockIdentifier{value=four-1}, logIndex: 4, isSendImmediate: true 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 3 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Setting last applied to 2 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Moving last applied index from 1 to 2 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Applying state for log index 2 data two-1 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: applyState called: two-1 11:36:58,234 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:36:58,234 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Persisting ApplyJournalEntries with index=2 11:36:58,234 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:36:58,234 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 3 is present for follower follower110 11:36:58,235 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower110 updated: matchIndex: 3, nextIndex: 4 11:36:58,235 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 11:36:58,235 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Setting last applied to 3 11:36:58,235 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Moving last applied index from 2 to 3 11:36:58,235 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Applying state for log index 3 data three-1 11:36:58,235 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: applyState called: three-1 11:36:58,235 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:36:58,235 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 4 is present for follower follower110 11:36:58,235 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Sending AppendEntries to follower follower110: AppendEntries [leaderId=leader108, prevLogIndex=3, prevLogTerm=3, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 11:36:58,235 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 11:36:58,235 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persisting ApplyJournalEntries with index=3 11:36:58,235 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries: AppendEntries [leaderId=leader108, prevLogIndex=3, prevLogTerm=3, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 11:36:58,235 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Number of entries to be appended = 1 11:36:58,235 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 11:36:58,235 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Append entry to log four-1 11:36:58,235 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 11:36:58,235 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 11:36:58,235 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Log size is now 5 11:36:58,235 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Commit index set to 3 11:36:58,235 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower110, logLastIndex=4, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:58,235 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower110: Lagging 0 entries behind leader leader108 and reached 3 (of expected -1) 11:36:58,236 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 4 11:36:58,236 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Setting last applied to 3 11:36:58,236 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Moving last applied index from 2 to 3 11:36:58,236 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Applying state for log index 3 data three-1 11:36:58,236 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower110 updated: matchIndex: 4, nextIndex: 5 11:36:58,236 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: applyState called: three-1 11:36:58,236 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 11:36:58,236 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Setting last applied to 4 11:36:58,236 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Moving last applied index from 3 to 4 11:36:58,236 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Applying state for log index 4 data four-1 11:36:58,236 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: applyState called: four-1 11:36:58,236 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:36:58,236 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persisting ApplyJournalEntries with index=4 11:36:58,236 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Persisting ApplyJournalEntries with index=3 11:36:58,236 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Commit index set to 4 11:36:58,236 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower110: Lagging 0 entries behind leader leader108 and reached 4 (of expected -1) 11:36:58,236 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 4 11:36:58,236 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Setting last applied to 4 11:36:58,236 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Moving last applied index from 3 to 4 11:36:58,236 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Applying state for log index 4 data four-1 11:36:58,236 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: applyState called: four-1 11:36:58,236 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Persisting ApplyJournalEntries with index=4 11:36:58,346 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Term 3 in "AppendEntries [leaderId=leader108, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 11:36:58,346 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Set currentTerm=3, votedFor=null 11:36:58,346 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower109: Lagging -3 entries behind leader leader108 and reached 2 (of expected -1) 11:36:58,347 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): handleAppendEntriesReply: follower follower109 last log term 2 for index 2 conflicts with the leader's 3 - set the follower's next index to 1 11:36:58,347 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower110: Lagging 0 entries behind leader leader108 and reached 4 (of expected -1) 11:36:58,347 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:36:58,347 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 1 is present for follower follower109 11:36:58,347 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Sending AppendEntries to follower follower109: AppendEntries [leaderId=leader108, prevLogIndex=0, prevLogTerm=3, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 11:36:58,348 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries: AppendEntries [leaderId=leader108, prevLogIndex=0, prevLogTerm=3, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 11:36:58,348 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): The prevLogIndex 0 was found in the log but the term 2 is not equal to the append entries prevLogTerm 3 - lastIndex: 2, snapshotIndex: 1, snapshotTerm: 2 11:36:58,348 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=3, success=false, followerId=follower109, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:36:58,348 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower109, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 11:36:58,348 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): follower follower109 last log term 2 conflicts with the leader's 3 - dec next index to 0 11:36:58,348 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 0, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:36:58,348 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendAppendEntries: 0 is present for follower follower109 11:36:58,348 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Sending AppendEntries to follower follower109: AppendEntries [leaderId=leader108, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 11:36:58,348 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower109: Lagging 2 entries behind leader leader108 and reached 2 (of expected -1) 11:36:58,348 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries: AppendEntries [leaderId=leader108, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 11:36:58,348 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 5 11:36:58,349 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: -1 11:36:58,349 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] is present: existingEntryTerm: 2 11:36:58,349 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:36:58,349 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Removing entries from log starting at 1, commitIndex: 2, lastApplied: 2 11:36:58,349 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Could not remove entries - sending reply to force snapshot 11:36:58,349 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower109: Lagging 2 entries behind leader leader108 and reached 2 (of expected -1) 11:36:58,349 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower109, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 11:36:58,349 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=4, lastAppliedTerm=3, lastIndex=4, lastTerm=3, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on follower109 11:36:58,350 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: lastSequenceNumber prior to capture: -1 11:36:58,350 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: CaptureSnapshotReply received by actor 11:36:58,350 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Persisting of snapshot done: Snapshot [lastIndex=4, lastTerm=3, lastAppliedIndex=4, lastAppliedTerm=3, unAppliedEntries size=0, state=MockSnapshotState [state=[zero-1, one-1, two-1, three-1, four-1]], electionTerm=3, electionVotedFor=leader108, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower109, isVoting=false], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=follower110, isVoting=true], ServerInfo[peerId=leader108, isVoting=true]]]] 11:36:58,350 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:36:58,350 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): sendInstallSnapshot 11:36:58,350 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader108 (Leader): Snapshot 390 bytes, total chunks to send: 1 11:36:58,350 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader108 (Leader): Next chunk: total length=390, offset=0, size=390, hashCode=-929342248 11:36:58,350 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): next snapshot chunk size for follower follower109: 390 11:36:58,350 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): InstallSnapshot sent to follower Vector(user, follower109), Chunk: 1/1 11:36:58,351 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: Snapshot success - sequence number: -1 11:36:58,351 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108: SnapshotComplete received 11:36:58,351 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader108, lastIncludedIndex=4, lastIncludedTerm=3, datasize=390, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower109, isVoting=false], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=follower110, isVoting=true], ServerInfo[peerId=leader108, isVoting=true]]]] 11:36:58,351 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower109: Lagging 2 entries behind leader leader108 and reached 2 (of expected -1) 11:36:58,351 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:36:58,351 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Snapshot installed from leader: leader108 11:36:58,352 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying snapshot on follower: Snapshot [lastIndex=4, lastTerm=3, lastAppliedIndex=4, lastAppliedTerm=3, unAppliedEntries size=0, state=MockSnapshotState [state=[zero-1, one-1, two-1, three-1, four-1]], electionTerm=3, electionVotedFor=null, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower109, isVoting=false], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=follower110, isVoting=true], ServerInfo[peerId=leader108, isVoting=true]]]] 11:36:58,352 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:36:58,352 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Snapshot success - sequence number: -1 11:36:58,352 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from 2 to 4 11:36:58,352 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Set currentTerm=3, votedFor=null 11:36:58,352 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Updated server config: isVoting: false, peers: [PeerInfo [id=downPeer, address=null, votingState=NON_VOTING], PeerInfo [id=leader108, address=pekko://test/user/leader108, votingState=VOTING], PeerInfo [id=follower110, address=null, votingState=VOTING]] 11:36:58,352 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applySnapshot called 11:36:58,352 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower109, chunkIndex=1, success=true] 11:36:58,352 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower109, chunkIndex=1, success=true] 11:36:58,352 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader108 (Leader): Snapshot successfully installed on follower follower109 (last chunk 1) - matchIndex set to 4, nextIndex set to 5 11:36:58,352 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: SnapshotComplete received 11:36:58,381 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart ending 11:36:58,381 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower109-collector111#1394927499] 11:36:58,392 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower109] 11:36:58,393 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader108-collector112#-1499546018] 11:36:58,393 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader108] 11:36:58,394 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower110-collector113#-1902653051] 11:36:58,394 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower110] 11:36:58,394 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader108-collector114#158893118] 11:36:58,395 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader108] [INFO] [11/04/2024 11:36:58.396] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 11:36:58,396 AM [test-pekko.actor.default-dispatcher-16] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [11/04/2024 11:36:58.397] [test-pekko.actor.default-dispatcher-16] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.153:17355) [INFO] [11/04/2024 11:36:58.397] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.153:17355] - Exiting completed [INFO] [11/04/2024 11:36:58.398] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.153:17355] - Shutting down... [INFO] [11/04/2024 11:36:58.398] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.153:17355] - Successfully shut down 11:36:58,398 AM [test-pekko.actor.default-dispatcher-17] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.153:17355] - Exiting completed 11:36:58,398 AM [test-pekko.actor.default-dispatcher-17] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.153:17355] - Shutting down... 11:36:58,398 AM [test-pekko.actor.default-dispatcher-17] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.153:17355] - Successfully shut down 11:36:58,400 AM [test-pekko.actor.default-dispatcher-16] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [11/04/2024 11:36:58.400] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.153:17355/system/remoting-terminator] Shutting down remote daemon. 11:36:58,400 AM [test-pekko.actor.default-dispatcher-16] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [11/04/2024 11:36:58.400] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.153:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [11/04/2024 11:36:58.403] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.153:17355/system/remoting-terminator] Remoting shut down.