[DEBUG] [03/15/2024 10:19:36.720] [main] [EventStream(akka://test)] logger log1-TestEventListener started 10:19:36,721 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/15/2024 10:19:36.721] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/15/2024 10:19:36.721] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/15/2024 10:19:36.765] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.50:25520] with UID [7780946446864366137] 10:19:36,765 AM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.50:25520] with UID [7780946446864366137] [INFO] [03/15/2024 10:19:36.765] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Starting up, Akka version [2.6.21] ... 10:19:36,766 AM [test-akka.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/15/2024 10:19:36.768] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/15/2024 10:19:36.768] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Started up successfully 10:19:36,768 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Registered cluster JMX MBean [akka:type=Cluster] 10:19:36,768 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Started up successfully [INFO] [03/15/2024 10:19:36.774] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/15/2024 10:19:36.774] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 10:19:36,775 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 10:19:36,775 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 10:19:36,776 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerLeaderStateChanges [WARN] [03/15/2024 10:19:36.781] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower520]: org.opendaylight.controller.cluster.common.actor.Monitor@859f0d1 [INFO] [akkaDeadLetter][03/15/2024 10:19:36.782] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower520] to Actor[akka://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:36,782 AM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower520] to Actor[akka://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:36,783 AM [test-akka.actor.default-dispatcher-4] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower520 with journal batch size 1000 10:19:36,786 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Set currentTerm=1, votedFor=leader519 10:19:36,786 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Received ReplicatedLogEntry for recovery: index: 0, size: 143 10:19:36,786 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Updated server config: isVoting: false, peers: [PeerInfo [id=leader519, address=akka://test/user/leader519, votingState=VOTING]] 10:19:36,786 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [03/15/2024 10:19:36.881] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader519]: org.opendaylight.controller.cluster.common.actor.Monitor@293a593c [INFO] [akkaDeadLetter][03/15/2024 10:19:36.881] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader519] to Actor[akka://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:36,882 AM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader519] to Actor[akka://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:36,882 AM [test-akka.actor.default-dispatcher-4] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader519 with journal batch size 1000 10:19:36,885 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Set currentTerm=1, votedFor=leader519 10:19:36,885 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Received ReplicatedLogEntry for recovery: index: 0, size: 143 10:19:36,885 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Updated server config: isVoting: true, peers: [PeerInfo [id=follower520, address=akka://test/user/follower520, votingState=NON_VOTING]] 10:19:36,885 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:37,391 AM [test-akka.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:37,391 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.50:25520, Removed) 10:19:37,391 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Follower): Received ElectionTimeout - switching to Candidate 10:19:37,391 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate): Election: Candidate has following voting peers: [] 10:19:37,391 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Set currentTerm=2, votedFor=leader519 10:19:37,391 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate): Starting new election term 2 10:19:37,391 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:19:37,392 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate): Received ElectionTimeout 10:19:37,393 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Election: Leader has following peers: [follower520] 10:19:37,393 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:37,393 AM [test-akka.actor.default-dispatcher-4] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:19:37,393 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Term 2 in "AppendEntries [leaderId=leader519, 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 10:19:37,393 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Set currentTerm=2, votedFor=null 10:19:37,393 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower520: Last sync leader does not match current leader leader519, need to catch up to -1 10:19:37,393 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower520 updated: matchIndex: -1, nextIndex: 0 10:19:37,393 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:37,395 AM [test-akka.actor.default-dispatcher-14] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower520] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [WARN] [03/15/2024 10:19:37.395] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower520] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4f62f805 [INFO] [akkaDeadLetter][03/15/2024 10:19:37.395] [test-akka.actor.default-dispatcher-14] [akka://test/user/follower520] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower520] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:37,435 AM [test-akka.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:37,750 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower520: Lagging 0 entries behind leader leader519 and reached -1 (of expected -1) [WARN] [03/15/2024 10:19:37.751] [test-akka.actor.default-dispatcher-14] [akka://test/user/follower520] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@60aeccc7 [INFO] [akkaDeadLetter][03/15/2024 10:19:37.751] [test-akka.actor.default-dispatcher-4] [akka://test/user/follower520] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower520] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:37,751 AM [test-akka.actor.default-dispatcher-4] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower520] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:37,789 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/roleChangeNotifier522#477812786] 10:19:37,801 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower520-collector523#-419330266] 10:19:37,801 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower520] 10:19:37,801 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader519-collector524#1681253306] 10:19:37,802 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader519] 10:19:37,803 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart starting [WARN] [03/15/2024 10:19:37.805] [test-akka.actor.default-dispatcher-14] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower526]: org.opendaylight.controller.cluster.common.actor.Monitor@53c226e0 [INFO] [akkaDeadLetter][03/15/2024 10:19:37.805] [test-akka.actor.default-dispatcher-14] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower526] to Actor[akka://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:37,805 AM [test-akka.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower526] to Actor[akka://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:37,805 AM [test-akka.actor.default-dispatcher-4] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower526 with journal batch size 1000 10:19:37,808 AM [test-akka.actor.default-dispatcher-4] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader525 with journal batch size 1000 [WARN] [03/15/2024 10:19:37.808] [test-akka.actor.default-dispatcher-4] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader525]: org.opendaylight.controller.cluster.common.actor.Monitor@253d3970 [INFO] [akkaDeadLetter][03/15/2024 10:19:37.808] [test-akka.actor.default-dispatcher-4] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader525] to Actor[akka://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:37,808 AM [test-akka.actor.default-dispatcher-4] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader525] to Actor[akka://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:37,808 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Set currentTerm=1, votedFor=leader525 10:19:37,809 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Received ReplicatedLogEntry for recovery: index: 0, size: 143 10:19:37,809 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Updated server config: isVoting: false, peers: [PeerInfo [id=leader525, address=akka://test/user/leader525, votingState=VOTING]] 10:19:37,809 AM [test-akka.actor.default-dispatcher-4] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:37,810 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Set currentTerm=1, votedFor=leader525 10:19:37,810 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Received ReplicatedLogEntry for recovery: index: 0, size: 143 10:19:37,810 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Updated server config: isVoting: true, peers: [PeerInfo [id=follower526, address=akka://test/user/follower526, votingState=NON_VOTING]] 10:19:37,810 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:38,320 AM [test-akka.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:38,320 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.50:25520, Removed) 10:19:38,320 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Follower): Received ElectionTimeout - switching to Candidate 10:19:38,321 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Election: Candidate has following voting peers: [] 10:19:38,321 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Set currentTerm=2, votedFor=leader525 10:19:38,321 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Starting new election term 2 10:19:38,321 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:19:38,322 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Received ElectionTimeout 10:19:38,322 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Election: Leader has following peers: [follower526] 10:19:38,322 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:38,322 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:19:38,323 AM [test-akka.actor.default-dispatcher-4] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Term 2 in "AppendEntries [leaderId=leader525, 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 10:19:38,323 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Set currentTerm=2, votedFor=null 10:19:38,323 AM [test-akka.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - follower526: Last sync leader does not match current leader leader525, need to catch up to -1 10:19:38,323 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower526 updated: matchIndex: -1, nextIndex: 0 10:19:38,323 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:38.325] [test-akka.actor.default-dispatcher-4] [akka://test/user/follower526] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@37c8e3a4 [INFO] [akkaDeadLetter][03/15/2024 10:19:38.325] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower526] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower526] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:38,325 AM [test-akka.actor.default-dispatcher-11] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower526] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:38,362 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:38,362 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:38,362 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 10:19:38,362 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Setting last applied to 0 10:19:38,362 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from -1 to 0 10:19:38,362 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Applying state for log index 0 data zero 10:19:38,362 AM [test-akka.actor.default-dispatcher-4] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: applyState called: zero 10:19:38,362 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:38,362 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 0 is present for follower follower526 10:19:38,362 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Sending AppendEntries to follower follower526: AppendEntries [leaderId=leader525, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 10:19:38,362 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persisting ApplyJournalEntries with index=0 10:19:38,362 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 10:19:38,363 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries: AppendEntries [leaderId=leader525, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Setting last applied to 1 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from 0 to 1 10:19:38,363 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Number of entries to be appended = 1 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Applying state for log index 1 data one 10:19:38,363 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:19:38,363 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Append entry to log zero 10:19:38,363 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: applyState called: one 10:19:38,363 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:38,363 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Log size is now 1 10:19:38,363 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Commit index set to 0 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:38,363 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower526, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 0 is present for follower follower526 10:19:38,363 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower526: Lagging 0 entries behind leader leader525 and reached 0 (of expected -1) 10:19:38,363 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Sending AppendEntries to follower follower526: AppendEntries [leaderId=leader525, 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]]] 10:19:38,363 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Setting last applied to 0 10:19:38,363 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Moving last applied index from -1 to 0 10:19:38,363 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Applying state for log index 0 data zero 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persisting ApplyJournalEntries with index=1 10:19:38,363 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: applyState called: zero 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower526 updated: matchIndex: 0, nextIndex: 1 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: fakeSnapshot purging log to 0 for term 2 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 1 is present for follower follower526 10:19:38,363 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Sending AppendEntries to follower follower526: AppendEntries [leaderId=leader525, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries: AppendEntries [leaderId=leader525, 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]]] 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Number of entries to be appended = 2 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 10:19:38,364 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Append entry to log one 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:38,364 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 10:19:38,364 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Log size is now 2 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Commit index set to 1 10:19:38,364 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower526, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:38,364 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Setting last applied to 2 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower526: Lagging 0 entries behind leader leader525 and reached 1 (of expected -1) 10:19:38,364 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from 1 to 2 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:19:38,364 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Applying state for log index 2 data two 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Setting last applied to 1 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Moving last applied index from 0 to 1 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Applying state for log index 1 data one 10:19:38,364 AM [test-akka.actor.default-dispatcher-4] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: applyState called: two 10:19:38,364 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: applyState called: one 10:19:38,364 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 10:19:38,364 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 1 is present for follower follower526 10:19:38,364 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Sending AppendEntries to follower follower526: AppendEntries [leaderId=leader525, prevLogIndex=0, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one], SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 10:19:38,365 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Persisting ApplyJournalEntries with index=0 10:19:38,365 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower526 updated: matchIndex: 1, nextIndex: 2 10:19:38,365 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: fakeSnapshot purging log to 1 for term 2 10:19:38,365 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 10:19:38,365 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 2 is present for follower follower526 10:19:38,365 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries: AppendEntries [leaderId=leader525, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 10:19:38,365 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Sending AppendEntries to follower follower526: AppendEntries [leaderId=leader525, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 10:19:38,365 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Number of entries to be appended = 1 10:19:38,365 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 10:19:38,365 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:19:38,365 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Log size is now 2 10:19:38,365 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persisting ApplyJournalEntries with index=2 10:19:38,365 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower526, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:38,365 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 10:19:38,365 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower526: Lagging 0 entries behind leader leader525 and reached 1 (of expected -1) 10:19:38,365 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: fakeSnapshot purging log to 0 for term 2 10:19:38,365 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 2 is present for follower follower526 10:19:38,365 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Persisting ApplyJournalEntries with index=1 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries: AppendEntries [leaderId=leader525, prevLogIndex=0, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one], SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Number of entries to be appended = 2 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Append entry to log two 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Log size is now 2 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Commit index set to 2 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower526, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower526: Lagging 0 entries behind leader leader525 and reached 2 (of expected -1) 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Setting last applied to 2 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Moving last applied index from 1 to 2 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Applying state for log index 2 data two 10:19:38,366 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower526 updated: matchIndex: 2, nextIndex: 3 10:19:38,366 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 10:19:38,366 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: applyState called: two 10:19:38,367 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries: AppendEntries [leaderId=leader525, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 10:19:38,367 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Number of entries to be appended = 1 10:19:38,367 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 10:19:38,367 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 10:19:38,367 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Log size is now 2 10:19:38,367 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower526, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:38,367 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower526: Lagging 0 entries behind leader leader525 and reached 2 (of expected -1) 10:19:38,367 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: fakeSnapshot purging log to 1 for term 2 10:19:38,367 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Persisting ApplyJournalEntries with index=2 [WARN] [03/15/2024 10:19:38.367] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower526] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1ad5e6ed 10:19:38,367 AM [test-akka.actor.default-dispatcher-15] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower526] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [akkaDeadLetter][03/15/2024 10:19:38.367] [test-akka.actor.default-dispatcher-14] [akka://test/user/follower526] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower526] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [WARN] [03/15/2024 10:19:38.426] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader525]: org.opendaylight.controller.cluster.common.actor.Monitor@541e7d2f [INFO] [akkaDeadLetter][03/15/2024 10:19:38.426] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader525] to Actor[akka://test/user/termination-monitor] was not delivered. [9] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:38,426 AM [test-akka.actor.default-dispatcher-18] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader525] to Actor[akka://test/user/termination-monitor] was not delivered. [9] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:38,426 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader525 with journal batch size 1000 10:19:38,429 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Set currentTerm=1, votedFor=leader525 10:19:38,430 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Received ReplicatedLogEntry for recovery: index: 0, size: 143 10:19:38,430 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Updated server config: isVoting: true, peers: [PeerInfo [id=follower526, address=akka://test/user/follower526, votingState=NON_VOTING]] 10:19:38,430 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Set currentTerm=2, votedFor=leader525 10:19:38,430 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:38,881 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.50:25520, Removed) 10:19:38,881 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Follower): Received ElectionTimeout - switching to Candidate 10:19:38,881 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Election: Candidate has following voting peers: [] 10:19:38,881 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Set currentTerm=3, votedFor=leader525 10:19:38,881 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Starting new election term 3 10:19:38,881 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 10:19:38,882 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Received ElectionTimeout 10:19:38,883 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Election: Leader has following peers: [follower526] 10:19:38,883 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:38,883 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 10:19:38,884 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:38,884 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:38,884 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 10:19:38,884 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Setting last applied to 0 10:19:38,884 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from -1 to 0 10:19:38,884 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Applying state for log index 0 data zero-1 10:19:38,884 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: applyState called: zero-1 10:19:38,884 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:38,884 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persisting ApplyJournalEntries with index=0 10:19:38,884 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:38,884 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 10:19:38,884 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 10:19:38,885 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 10:19:38,885 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Setting last applied to 1 10:19:38,885 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from 0 to 1 10:19:38,885 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Applying state for log index 1 data one-1 10:19:38,885 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: applyState called: one-1 10:19:38,885 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:38,885 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persisting ApplyJournalEntries with index=1 10:19:38,885 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 10:19:39,0 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Term 3 in "AppendEntries [leaderId=leader525, 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 10:19:39,1 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Set currentTerm=3, votedFor=null 10:19:39,1 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower526: Lagging -3 entries behind leader leader525 and reached 2 (of expected -1) 10:19:39,1 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleAppendEntriesReply: follower follower526 lastIndex 2 is ahead of our lastIndex 1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 10:19:39,1 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: 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 follower526 10:19:39,1 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: lastSequenceNumber prior to capture: -1 10:19:39,1 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: CaptureSnapshotReply received by actor 10:19:39,2 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: 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=leader525, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower526, isVoting=false], ServerInfo[peerId=leader525, isVoting=true]]]] 10:19:39,2 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:19:39,2 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendInstallSnapshot 10:19:39,2 AM [test-akka.actor.default-dispatcher-18] [DEBUG] LeaderInstallSnapshotState - leader525 (Leader): Snapshot 333 bytes, total chunks to send: 1 10:19:39,2 AM [test-akka.actor.default-dispatcher-18] [DEBUG] LeaderInstallSnapshotState - leader525 (Leader): Next chunk: total length=333, offset=0, size=333, hashCode=878051978 10:19:39,2 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): next snapshot chunk size for follower follower526: 333 10:19:39,2 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): InstallSnapshot sent to follower Vector(user, follower526), Chunk: 1/1 10:19:39,2 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Snapshot success - sequence number: -1 10:19:39,2 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: SnapshotComplete received 10:19:39,2 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader525, lastIncludedIndex=1, lastIncludedTerm=3, datasize=333, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower526, isVoting=false], ServerInfo[peerId=leader525, isVoting=true]]]] 10:19:39,2 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower526: Lagging -1 entries behind leader leader525 and reached 2 (of expected -1) 10:19:39,2 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:19:39,2 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Snapshot installed from leader: leader525 10:19:39,4 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: 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=follower526, isVoting=false], ServerInfo[peerId=leader525, isVoting=true]]]] 10:19:39,4 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 10:19:39,4 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Snapshot success - sequence number: -1 10:19:39,4 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Moving last applied index from 2 to 1 10:19:39,4 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Set currentTerm=3, votedFor=null 10:19:39,4 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Updated server config: isVoting: false, peers: [PeerInfo [id=leader525, address=akka://test/user/leader525, votingState=VOTING]] 10:19:39,4 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: applySnapshot called 10:19:39,4 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower526, chunkIndex=1, success=true] 10:19:39,4 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: SnapshotComplete received 10:19:39,4 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower526, chunkIndex=1, success=true] 10:19:39,5 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Snapshot successfully installed on follower follower526 (last chunk 1) - matchIndex set to 1, nextIndex set to 2 10:19:39,5 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: fakeSnapshot purging log to 0 for term 3 10:19:39,36 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart ending 10:19:39,36 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower526-collector528#-565855091] 10:19:39,47 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower526] 10:19:39,47 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader525-collector529#-554053093] 10:19:39,47 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader525] 10:19:39,48 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader525-collector530#756218735] 10:19:39,48 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader525] 10:19:39,49 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart starting [WARN] [03/15/2024 10:19:39.051] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower532]: org.opendaylight.controller.cluster.common.actor.Monitor@5a032f4e [INFO] [akkaDeadLetter][03/15/2024 10:19:39.052] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower532] to Actor[akka://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[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:39,52 AM [test-akka.actor.default-dispatcher-17] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower532] to Actor[akka://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[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:39,52 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower532 with journal batch size 1000 [WARN] [03/15/2024 10:19:39.055] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader531]: org.opendaylight.controller.cluster.common.actor.Monitor@7ede8a3e 10:19:39,55 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Set currentTerm=1, votedFor=leader531 10:19:39,55 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Received ReplicatedLogEntry for recovery: index: 0, size: 143 10:19:39,55 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Updated server config: isVoting: false, peers: [PeerInfo [id=leader531, address=akka://test/user/leader531, votingState=VOTING]] 10:19:39,55 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader531 with journal batch size 1000 10:19:39,55 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:39,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Set currentTerm=1, votedFor=leader531 10:19:39,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Received ReplicatedLogEntry for recovery: index: 0, size: 143 10:19:39,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Updated server config: isVoting: true, peers: [PeerInfo [id=follower532, address=akka://test/user/follower532, votingState=NON_VOTING]] 10:19:39,57 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:39,480 AM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:39,480 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.50:25520, Removed) 10:19:39,480 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Follower): Received ElectionTimeout - switching to Candidate 10:19:39,480 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Election: Candidate has following voting peers: [] 10:19:39,480 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Set currentTerm=2, votedFor=leader531 10:19:39,481 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Starting new election term 2 10:19:39,481 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:19:39,482 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Received ElectionTimeout 10:19:39,482 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Election: Leader has following peers: [follower532] 10:19:39,483 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:39,483 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:19:39,483 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Term 2 in "AppendEntries [leaderId=leader531, 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 10:19:39,483 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Set currentTerm=2, votedFor=null 10:19:39,483 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower532: Last sync leader does not match current leader leader531, need to catch up to -1 10:19:39,483 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: -1, nextIndex: 0 10:19:39,483 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:39.484] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower532] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4c43e08a 10:19:39,511 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:39,511 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:39,511 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 10:19:39,511 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Setting last applied to 0 10:19:39,511 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Moving last applied index from -1 to 0 10:19:39,511 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Applying state for log index 0 data zero 10:19:39,511 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: applyState called: zero 10:19:39,512 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:39,512 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 0 is present for follower follower532 10:19:39,512 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Sending AppendEntries to follower follower532: AppendEntries [leaderId=leader531, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 10:19:39,512 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persisting ApplyJournalEntries with index=0 10:19:39,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries: AppendEntries [leaderId=leader531, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 10:19:39,512 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:39,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Number of entries to be appended = 1 10:19:39,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:19:39,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Append entry to log zero 10:19:39,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:39,512 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:39,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:39,512 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:39,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Log size is now 1 10:19:39,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Commit index set to 0 10:19:39,512 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 10:19:39,512 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Setting last applied to 1 10:19:39,512 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Moving last applied index from 0 to 1 10:19:39,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower532, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:39,512 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Applying state for log index 1 data one 10:19:39,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader531 and reached 0 (of expected -1) 10:19:39,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:19:39,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Setting last applied to 0 10:19:39,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from -1 to 0 10:19:39,512 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: applyState called: one 10:19:39,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Applying state for log index 0 data zero 10:19:39,512 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:39,512 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 0 is present for follower follower532 10:19:39,512 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Sending AppendEntries to follower follower532: AppendEntries [leaderId=leader531, 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]]] 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applyState called: zero 10:19:39,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: 0, nextIndex: 1 10:19:39,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: fakeSnapshot purging log to 0 for term 2 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries: AppendEntries [leaderId=leader531, 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]]] 10:19:39,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Number of entries to be appended = 2 10:19:39,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 1 is present for follower follower532 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 10:19:39,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Sending AppendEntries to follower follower532: AppendEntries [leaderId=leader531, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Append entry to log one 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Log size is now 2 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Commit index set to 1 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower532, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:39,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persisting ApplyJournalEntries with index=1 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader531 and reached 1 (of expected -1) 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Setting last applied to 1 10:19:39,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from 0 to 1 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Applying state for log index 1 data one 10:19:39,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: 1, nextIndex: 2 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applyState called: one 10:19:39,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 10:19:39,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Persisting ApplyJournalEntries with index=0 10:19:39,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 10:19:39,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 10:19:39,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Setting last applied to 2 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries: AppendEntries [leaderId=leader531, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 10:19:39,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Moving last applied index from 1 to 2 10:19:39,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Applying state for log index 2 data two 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Number of entries to be appended = 1 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:19:39,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Log size is now 2 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower532, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:39,514 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: applyState called: two 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader531 and reached 1 (of expected -1) 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: fakeSnapshot purging log to 0 for term 2 10:19:39,514 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 10:19:39,514 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 2 is present for follower follower532 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Persisting ApplyJournalEntries with index=1 10:19:39,514 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Sending AppendEntries to follower follower532: AppendEntries [leaderId=leader531, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries: AppendEntries [leaderId=leader531, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Number of entries to be appended = 1 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Append entry to log two 10:19:39,514 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: fakeSnapshot purging log to 1 for term 2 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Log size is now 2 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Commit index set to 2 10:19:39,514 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 2 is present for follower follower532 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower532, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader531 and reached 2 (of expected -1) 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Setting last applied to 2 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from 1 to 2 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Applying state for log index 2 data two 10:19:39,514 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persisting ApplyJournalEntries with index=2 10:19:39,514 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applyState called: two 10:19:39,514 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 10:19:39,514 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Persisting ApplyJournalEntries with index=2 10:19:39,514 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: 2, nextIndex: 3 10:19:39,515 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 [WARN] [03/15/2024 10:19:39.515] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower532] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6955444f [WARN] [03/15/2024 10:19:39.575] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader531]: org.opendaylight.controller.cluster.common.actor.Monitor@2a6f7f74 10:19:39,575 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader531 with journal batch size 1000 10:19:39,578 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Set currentTerm=1, votedFor=leader531 10:19:39,578 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Received ReplicatedLogEntry for recovery: index: 0, size: 143 10:19:39,578 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Updated server config: isVoting: true, peers: [PeerInfo [id=follower532, address=akka://test/user/follower532, votingState=NON_VOTING]] 10:19:39,578 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Set currentTerm=2, votedFor=leader531 10:19:39,578 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:40,30 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.50:25520, Removed) 10:19:40,30 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Follower): Received ElectionTimeout - switching to Candidate 10:19:40,31 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Election: Candidate has following voting peers: [] 10:19:40,31 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Set currentTerm=3, votedFor=leader531 10:19:40,31 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Starting new election term 3 10:19:40,31 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 10:19:40,32 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Received ElectionTimeout 10:19:40,32 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Election: Leader has following peers: [follower532] 10:19:40,33 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:40,33 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 10:19:40,33 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Term 3 in "AppendEntries [leaderId=leader531, 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 10:19:40,33 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Set currentTerm=3, votedFor=null 10:19:40,33 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower532: Lagging -3 entries behind leader leader531 and reached 2 (of expected -1) 10:19:40,33 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply: follower follower532 lastIndex 2 is ahead of our lastIndex -1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 10:19:40,33 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:19:40,33 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: 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 follower532 10:19:40,33 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: lastSequenceNumber prior to capture: -1 10:19:40,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: CaptureSnapshotReply received by actor 10:19:40,34 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=3, electionVotedFor=leader531, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower532, isVoting=false], ServerInfo[peerId=leader531, isVoting=true]]]] 10:19:40,34 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:19:40,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendInstallSnapshot 10:19:40,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader531 (Leader): Snapshot 171 bytes, total chunks to send: 1 10:19:40,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader531 (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 10:19:40,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): next snapshot chunk size for follower follower532: 171 10:19:40,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): InstallSnapshot sent to follower Vector(user, follower532), Chunk: 1/1 10:19:40,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Snapshot success - sequence number: -1 10:19:40,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: SnapshotComplete received 10:19:40,35 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader531, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower532, isVoting=false], ServerInfo[peerId=leader531, isVoting=true]]]] 10:19:40,35 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower532: Lagging -3 entries behind leader leader531 and reached 2 (of expected -1) 10:19:40,35 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:19:40,35 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Snapshot installed from leader: leader531 10:19:40,35 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: 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=follower532, isVoting=false], ServerInfo[peerId=leader531, isVoting=true]]]] 10:19:40,35 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 10:19:40,35 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Snapshot success - sequence number: -1 10:19:40,35 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from 2 to -1 10:19:40,35 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Set currentTerm=3, votedFor=null 10:19:40,35 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Updated server config: isVoting: false, peers: [PeerInfo [id=leader531, address=akka://test/user/leader531, votingState=VOTING]] 10:19:40,35 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applySnapshot called 10:19:40,36 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower532, chunkIndex=1, success=true] 10:19:40,36 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: SnapshotComplete received 10:19:40,36 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower532, chunkIndex=1, success=true] 10:19:40,36 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Snapshot successfully installed on follower follower532 (last chunk 1) - matchIndex set to -1, nextIndex set to 0 10:19:40,84 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:40,84 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:40,84 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 10:19:40,84 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Setting last applied to 0 10:19:40,84 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Moving last applied index from -1 to 0 10:19:40,84 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Applying state for log index 0 data zero-1 10:19:40,84 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: applyState called: zero-1 10:19:40,84 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:40,84 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 0 is present for follower follower532 10:19:40,84 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Sending AppendEntries to follower follower532: AppendEntries [leaderId=leader531, 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]]] 10:19:40,84 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persisting ApplyJournalEntries with index=0 10:19:40,84 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries: AppendEntries [leaderId=leader531, 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]]] 10:19:40,84 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:40,84 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Number of entries to be appended = 1 10:19:40,84 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:19:40,84 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Append entry to log zero-1 10:19:40,84 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:40,85 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:40,85 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Log size is now 1 10:19:40,85 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Commit index set to 0 10:19:40,85 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower532, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:40,85 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader531 and reached 0 (of expected -1) 10:19:40,85 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:19:40,85 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Setting last applied to 0 10:19:40,85 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from -1 to 0 10:19:40,85 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Applying state for log index 0 data zero-1 10:19:40,85 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: 0, nextIndex: 1 10:19:40,85 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applyState called: zero-1 10:19:40,85 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:40,85 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Persisting ApplyJournalEntries with index=0 10:19:40,135 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart ending 10:19:40,135 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower532-collector534#-2053674481] 10:19:40,146 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower532] 10:19:40,147 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader531-collector535#538667901] 10:19:40,147 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader531] 10:19:40,147 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader531-collector536#1450693941] 10:19:40,147 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader531] 10:19:40,148 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart starting [WARN] [03/15/2024 10:19:40.151] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower538]: org.opendaylight.controller.cluster.common.actor.Monitor@5abfe61a 10:19:40,152 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower538 with journal batch size 1000 10:19:40,155 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Set currentTerm=1, votedFor=leader537 10:19:40,155 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Received ReplicatedLogEntry for recovery: index: 0, size: 143 10:19:40,155 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Updated server config: isVoting: false, peers: [PeerInfo [id=leader537, address=akka://test/user/leader537, votingState=VOTING]] 10:19:40,155 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [03/15/2024 10:19:40.156] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader537]: org.opendaylight.controller.cluster.common.actor.Monitor@5e49d52a 10:19:40,157 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader537 with journal batch size 1000 10:19:40,158 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Set currentTerm=1, votedFor=leader537 10:19:40,159 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Received ReplicatedLogEntry for recovery: index: 0, size: 143 10:19:40,159 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Updated server config: isVoting: true, peers: [PeerInfo [id=follower538, address=akka://test/user/follower538, votingState=NON_VOTING]] 10:19:40,159 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:40,620 AM [test-akka.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:40,620 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.50:25520, Removed) 10:19:40,620 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Follower): Received ElectionTimeout - switching to Candidate 10:19:40,620 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate): Election: Candidate has following voting peers: [] 10:19:40,620 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Set currentTerm=2, votedFor=leader537 10:19:40,621 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate): Starting new election term 2 10:19:40,621 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:19:40,622 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate): Received ElectionTimeout 10:19:40,622 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Election: Leader has following peers: [follower538] 10:19:40,622 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:40,622 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:19:40,622 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Term 2 in "AppendEntries [leaderId=leader537, 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 10:19:40,623 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Set currentTerm=2, votedFor=null 10:19:40,623 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower538: Last sync leader does not match current leader leader537, need to catch up to -1 10:19:40,623 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower538 updated: matchIndex: -1, nextIndex: 0 10:19:40,623 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:40.624] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower538] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@48827b7b 10:19:40,663 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:40,663 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:40,663 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 10:19:40,663 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Setting last applied to 0 10:19:40,663 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Moving last applied index from -1 to 0 10:19:40,663 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Applying state for log index 0 data zero 10:19:40,663 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: applyState called: zero 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): sendAppendEntries: 0 is present for follower follower538 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Sending AppendEntries to follower follower538: AppendEntries [leaderId=leader537, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persisting ApplyJournalEntries with index=0 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): handleAppendEntries: AppendEntries [leaderId=leader537, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Number of entries to be appended = 1 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Append entry to log zero 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Log size is now 1 10:19:40,664 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Commit index set to 0 10:19:40,664 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower538, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower538: Lagging 0 entries behind leader leader537 and reached 0 (of expected -1) 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:19:40,664 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Setting last applied to 0 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Moving last applied index from -1 to 0 10:19:40,664 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Setting last applied to 1 10:19:40,664 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Applying state for log index 0 data zero 10:19:40,664 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Moving last applied index from 0 to 1 10:19:40,664 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Applying state for log index 1 data one 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: applyState called: zero 10:19:40,665 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: applyState called: one 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Persisting ApplyJournalEntries with index=0 10:19:40,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:40,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): sendAppendEntries: 0 is present for follower follower538 10:19:40,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Sending AppendEntries to follower follower538: AppendEntries [leaderId=leader537, 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]]] [WARN] [03/15/2024 10:19:40.665] [test-akka.actor.default-dispatcher-14] [akka://test/user/follower538] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6fe8d9d9 10:19:40,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower538 updated: matchIndex: 0, nextIndex: 1 10:19:40,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: fakeSnapshot purging log to 0 for term 2 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): handleAppendEntries: AppendEntries [leaderId=leader537, 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]]] 10:19:40,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Number of entries to be appended = 2 10:19:40,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): sendAppendEntries: 1 is present for follower follower538 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 10:19:40,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Sending AppendEntries to follower follower538: AppendEntries [leaderId=leader537, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Append entry to log one 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Log size is now 2 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Commit index set to 1 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower538, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:40,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persisting ApplyJournalEntries with index=1 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower538: Lagging 0 entries behind leader leader537 and reached 1 (of expected -1) 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Setting last applied to 1 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Moving last applied index from 0 to 1 10:19:40,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:40,665 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Applying state for log index 1 data one 10:19:40,666 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower538 updated: matchIndex: 1, nextIndex: 2 10:19:40,666 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: applyState called: one 10:19:40,666 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): handleAppendEntries: AppendEntries [leaderId=leader537, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 10:19:40,666 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Number of entries to be appended = 1 10:19:40,666 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 10:19:40,666 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:19:40,666 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Log size is now 2 10:19:40,666 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower538, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:40,666 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower538: Lagging 0 entries behind leader leader537 and reached 1 (of expected -1) 10:19:40,666 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: fakeSnapshot purging log to 0 for term 2 10:19:40,666 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Persisting ApplyJournalEntries with index=1 10:19:40,672 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 [WARN] [03/15/2024 10:19:40.729] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader537]: org.opendaylight.controller.cluster.common.actor.Monitor@78e7d281 10:19:40,730 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader537 with journal batch size 1000 10:19:40,733 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Set currentTerm=1, votedFor=leader537 10:19:40,733 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Received ReplicatedLogEntry for recovery: index: 0, size: 143 10:19:40,733 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Updated server config: isVoting: true, peers: [PeerInfo [id=follower538, address=akka://test/user/follower538, votingState=NON_VOTING]] 10:19:40,733 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Set currentTerm=2, votedFor=leader537 10:19:40,733 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:41,241 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.50:25520, Removed) 10:19:41,241 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Follower): Received ElectionTimeout - switching to Candidate 10:19:41,241 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate): Election: Candidate has following voting peers: [] 10:19:41,241 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Set currentTerm=3, votedFor=leader537 10:19:41,241 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate): Starting new election term 3 10:19:41,241 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 10:19:41,242 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate): Received ElectionTimeout 10:19:41,243 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Election: Leader has following peers: [follower538] 10:19:41,243 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:41,243 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Setting last applied to 0 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Moving last applied index from -1 to 0 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Applying state for log index 0 data zero-1 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: applyState called: zero-1 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persisting ApplyJournalEntries with index=0 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Setting last applied to 1 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Moving last applied index from 0 to 1 10:19:41,288 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Applying state for log index 1 data one-1 10:19:41,289 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: applyState called: one-1 10:19:41,289 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:41,289 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persisting ApplyJournalEntries with index=1 10:19:41,289 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 10:19:41,289 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 10:19:41,289 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 10:19:41,289 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 10:19:41,289 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Setting last applied to 2 10:19:41,289 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Moving last applied index from 1 to 2 10:19:41,289 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Applying state for log index 2 data two-1 10:19:41,289 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: applyState called: two-1 10:19:41,289 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 10:19:41,290 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persisting ApplyJournalEntries with index=2 10:19:41,290 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 10:19:41,360 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Term 3 in "AppendEntries [leaderId=leader537, 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 10:19:41,360 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Set currentTerm=3, votedFor=null 10:19:41,361 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower538: Lagging -2 entries behind leader leader537 and reached 1 (of expected -1) 10:19:41,361 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): handleAppendEntriesReply: follower follower538 last log term 2 for index 1 conflicts with the leader's 3 - set the follower's next index to 0 10:19:41,361 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 10:19:41,361 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): sendAppendEntries: 0 is present for follower follower538 10:19:41,361 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Sending AppendEntries to follower follower538: AppendEntries [leaderId=leader537, 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]]] 10:19:41,362 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): handleAppendEntries: AppendEntries [leaderId=leader537, 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]]] 10:19:41,362 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Number of entries to be appended = 3 10:19:41,362 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: 2 10:19:41,362 AM [test-akka.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:41,362 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Removing entries from log starting at 0, commitIndex: 1, lastApplied: 1 10:19:41,362 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Could not remove entries - sending reply to force snapshot 10:19:41,362 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower538: Lagging 1 entries behind leader leader537 and reached 1 (of expected -1) 10:19:41,362 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower538, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 10:19:41,362 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: 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 follower538 10:19:41,362 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: lastSequenceNumber prior to capture: -1 10:19:41,363 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: CaptureSnapshotReply received by actor 10:19:41,363 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: 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=leader537, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower538, isVoting=false], ServerInfo[peerId=leader537, isVoting=true]]]] 10:19:41,363 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:19:41,363 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): sendInstallSnapshot 10:19:41,363 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader537 (Leader): Snapshot 351 bytes, total chunks to send: 1 10:19:41,363 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader537 (Leader): Next chunk: total length=351, offset=0, size=351, hashCode=236499276 10:19:41,364 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): next snapshot chunk size for follower follower538: 351 10:19:41,364 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): InstallSnapshot sent to follower Vector(user, follower538), Chunk: 1/1 10:19:41,364 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Snapshot success - sequence number: -1 10:19:41,364 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader537, lastIncludedIndex=2, lastIncludedTerm=3, datasize=351, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower538, isVoting=false], ServerInfo[peerId=leader537, isVoting=true]]]] 10:19:41,364 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: SnapshotComplete received 10:19:41,364 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower538: Lagging 1 entries behind leader leader537 and reached 1 (of expected -1) 10:19:41,364 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:19:41,364 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Snapshot installed from leader: leader537 10:19:41,365 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: 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=follower538, isVoting=false], ServerInfo[peerId=leader537, isVoting=true]]]] 10:19:41,365 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 10:19:41,365 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Snapshot success - sequence number: -1 10:19:41,365 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Moving last applied index from 1 to 2 10:19:41,365 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Set currentTerm=3, votedFor=null 10:19:41,365 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Updated server config: isVoting: false, peers: [PeerInfo [id=leader537, address=akka://test/user/leader537, votingState=VOTING]] 10:19:41,365 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: applySnapshot called 10:19:41,365 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower538, chunkIndex=1, success=true] 10:19:41,365 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: SnapshotComplete received 10:19:41,365 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower538, chunkIndex=1, success=true] 10:19:41,365 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Snapshot successfully installed on follower follower538 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 10:19:41,365 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: fakeSnapshot purging log to 1 for term 3 10:19:41,388 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart ending 10:19:41,389 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower538-collector540#-1434650972] 10:19:41,400 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower538] 10:19:41,400 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader537-collector541#-280700608] 10:19:41,400 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader537] 10:19:41,400 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader537-collector542#-1600840771] 10:19:41,401 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader537] 10:19:41,402 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart starting [WARN] [03/15/2024 10:19:41.409] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower544]: org.opendaylight.controller.cluster.common.actor.Monitor@3b92d410 10:19:41,409 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower544 with journal batch size 1000 10:19:41,411 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Set currentTerm=1, votedFor=leader543 10:19:41,411 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Received ReplicatedLogEntry for recovery: index: 0, size: 143 10:19:41,412 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Updated server config: isVoting: false, peers: [PeerInfo [id=leader543, address=akka://test/user/leader543, votingState=VOTING]] 10:19:41,412 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [03/15/2024 10:19:41.413] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader543]: org.opendaylight.controller.cluster.common.actor.Monitor@21143205 10:19:41,414 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader543 with journal batch size 1000 10:19:41,415 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Set currentTerm=1, votedFor=leader543 10:19:41,415 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Received ReplicatedLogEntry for recovery: index: 0, size: 143 10:19:41,415 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Updated server config: isVoting: true, peers: [PeerInfo [id=follower544, address=akka://test/user/follower544, votingState=NON_VOTING]] 10:19:41,415 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:41,890 AM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:41,890 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.50:25520, Removed) 10:19:41,890 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Follower): Received ElectionTimeout - switching to Candidate 10:19:41,890 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate): Election: Candidate has following voting peers: [] 10:19:41,890 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Set currentTerm=2, votedFor=leader543 10:19:41,891 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate): Starting new election term 2 10:19:41,891 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:19:41,892 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate): Received ElectionTimeout 10:19:41,892 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Election: Leader has following peers: [follower544] 10:19:41,892 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:41,892 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:19:41,892 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Term 2 in "AppendEntries [leaderId=leader543, 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 10:19:41,892 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Set currentTerm=2, votedFor=null 10:19:41,892 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower544: Last sync leader does not match current leader leader543, need to catch up to -1 10:19:41,893 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower544 updated: matchIndex: -1, nextIndex: 0 10:19:41,893 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:41.893] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower544] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@64b79542 10:19:41,919 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:41,919 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:41,919 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 10:19:41,919 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 0 10:19:41,919 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from -1 to 0 10:19:41,919 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 0 data zero 10:19:41,919 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: zero 10:19:41,919 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:41,919 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 0 is present for follower follower544 10:19:41,919 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Sending AppendEntries to follower follower544: AppendEntries [leaderId=leader543, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=0 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): handleAppendEntries: AppendEntries [leaderId=leader543, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Number of entries to be appended = 1 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Append entry to log zero 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Log size is now 1 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Commit index set to 0 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower544, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower544: Lagging 0 entries behind leader leader543 and reached 0 (of expected -1) 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 1 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from 0 to 1 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Setting last applied to 0 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 1 data one 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Moving last applied index from -1 to 0 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Applying state for log index 0 data zero 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: one 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: applyState called: zero 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 0 is present for follower follower544 10:19:41,920 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Persisting ApplyJournalEntries with index=0 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Sending AppendEntries to follower follower544: AppendEntries [leaderId=leader543, 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]]] 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower544 updated: matchIndex: 0, nextIndex: 1 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: fakeSnapshot purging log to 0 for term 2 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 10:19:41,920 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): handleAppendEntries: AppendEntries [leaderId=leader543, 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]]] 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 1 is present for follower follower544 [WARN] [03/15/2024 10:19:41.920] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower544] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@494820c7 10:19:41,920 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Number of entries to be appended = 2 10:19:41,920 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 10:19:41,920 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Sending AppendEntries to follower follower544: AppendEntries [leaderId=leader543, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 10:19:41,920 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Append entry to log one 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Log size is now 2 10:19:41,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=1 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Commit index set to 1 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower544, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:41,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower544: Lagging 0 entries behind leader leader543 and reached 1 (of expected -1) 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Setting last applied to 1 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Moving last applied index from 0 to 1 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Applying state for log index 1 data one 10:19:41,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower544 updated: matchIndex: 1, nextIndex: 2 10:19:41,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: applyState called: one 10:19:41,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 10:19:41,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 10:19:41,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): handleAppendEntries: AppendEntries [leaderId=leader543, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 10:19:41,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 2 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Number of entries to be appended = 1 10:19:41,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from 1 to 2 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 10:19:41,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 2 data two 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Log size is now 2 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower544, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower544: Lagging 0 entries behind leader leader543 and reached 1 (of expected -1) 10:19:41,921 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: two 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: fakeSnapshot purging log to 0 for term 2 10:19:41,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 10:19:41,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 2 is present for follower follower544 10:19:41,921 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Persisting ApplyJournalEntries with index=1 10:19:41,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Sending AppendEntries to follower follower544: AppendEntries [leaderId=leader543, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 10:19:41,921 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): handleAppendEntries: AppendEntries [leaderId=leader543, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 10:19:41,921 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: fakeSnapshot purging log to 1 for term 2 10:19:41,921 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Number of entries to be appended = 1 10:19:41,921 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:19:41,921 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Append entry to log two 10:19:41,921 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 10:19:41,921 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 10:19:41,921 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 2 is present for follower follower544 10:19:41,921 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Log size is now 2 10:19:41,921 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Commit index set to 2 10:19:41,921 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower544, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:41,921 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower544: Lagging 0 entries behind leader leader543 and reached 2 (of expected -1) 10:19:41,921 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:19:41,921 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=2 10:19:41,921 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Setting last applied to 2 10:19:41,922 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Moving last applied index from 1 to 2 10:19:41,922 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Applying state for log index 2 data two 10:19:41,922 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 10:19:41,922 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: applyState called: two 10:19:41,922 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower544 updated: matchIndex: 2, nextIndex: 3 10:19:41,922 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Persisting ApplyJournalEntries with index=2 10:19:41,922 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 10:19:42,130 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower544: Lagging 0 entries behind leader leader543 and reached 2 (of expected -1) 10:19:42,130 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: fakeSnapshot purging log to 1 for term 2 [WARN] [03/15/2024 10:19:42.184] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower545]: org.opendaylight.controller.cluster.common.actor.Monitor@16199ad8 10:19:42,185 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower545 with journal batch size 1000 10:19:42,186 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Received ReplicatedLogEntry for recovery: index: 0, size: 174 10:19:42,187 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Updated server config: isVoting: true, peers: [PeerInfo [id=leader543, address=akka://test/user/leader543, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING], PeerInfo [id=follower544, address=akka://test/user/follower544, votingState=NON_VOTING]] 10:19:42,187 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [03/15/2024 10:19:42.288] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader543]: org.opendaylight.controller.cluster.common.actor.Monitor@426e01b0 10:19:42,289 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader543 with journal batch size 1000 10:19:42,294 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Set currentTerm=2, votedFor=leader543 10:19:42,294 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Received ReplicatedLogEntry for recovery: index: 0, size: 174 10:19:42,294 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Updated server config: isVoting: true, peers: [PeerInfo [id=follower545, address=akka://test/user/follower545, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING], PeerInfo [id=follower544, address=akka://test/user/follower544, votingState=NON_VOTING]] 10:19:42,294 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:42,721 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.50:25520, Removed) 10:19:42,721 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Follower): Received ElectionTimeout - switching to Candidate 10:19:42,721 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate): Election: Candidate has following voting peers: [follower545] 10:19:42,721 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Set currentTerm=3, votedFor=leader543 10:19:42,721 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate): Starting new election term 3 10:19:42,721 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate): Sending RequestVote [term=3, candidateId=leader543, lastLogIndex=-1, lastLogTerm=-1] to peer follower545 10:19:42,721 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 10:19:42,721 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:19:42,721 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Cluster state: [] 10:19:42,721 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=leader543, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 10:19:42,721 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Term 3 in "RequestVote [term=3, candidateId=leader543, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 10:19:42,721 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Set currentTerm=3, votedFor=null 10:19:42,722 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): In requestVote: RequestVote [term=3, candidateId=leader543, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 3, votedFor: null, lastIndex: -1, lastTerm: -1 10:19:42,722 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Set currentTerm=3, votedFor=leader543 10:19:42,722 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 10:19:42,722 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 10:19:42,722 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 10:19:42,722 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Election: Leader has following peers: [follower545, downPeer, follower544] 10:19:42,723 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:42,723 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:42,723 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 10:19:42,723 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower545: Last sync leader does not match current leader leader543, need to catch up to -1 10:19:42,723 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower545 updated: matchIndex: -1, nextIndex: 0 [WARN] [03/15/2024 10:19:42.723] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower545] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@9242a8a 10:19:42,723 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:42,738 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:42,738 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:42,738 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 10:19:42,738 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:42,738 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 0 is present for follower follower545 10:19:42,738 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Sending AppendEntries to follower follower545: AppendEntries [leaderId=leader543, 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]]] 10:19:42,738 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:42,738 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): handleAppendEntries: AppendEntries [leaderId=leader543, 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]]] 10:19:42,738 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:42,738 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Number of entries to be appended = 1 10:19:42,738 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:19:42,738 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Append entry to log zero-1 10:19:42,738 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:42,738 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 10:19:42,738 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 10:19:42,738 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 10:19:42,738 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Log size is now 1 10:19:42,738 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 10:19:42,738 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower545, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:42,738 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower545: Lagging 0 entries behind leader leader543 and reached -1 (of expected -1) 10:19:42,738 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:42,738 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 0 is present for follower follower545 10:19:42,738 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:42.739] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower545] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7831d12a 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower545 updated: matchIndex: 0, nextIndex: 1 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 0 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from -1 to 0 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 0 data zero-1 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: zero-1 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 1 is present for follower follower545 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Sending AppendEntries to follower follower545: AppendEntries [leaderId=leader543, 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]]] 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=0 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): handleAppendEntries: AppendEntries [leaderId=leader543, 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]]] 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Number of entries to be appended = 1 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Append entry to log one-1 10:19:42,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Log size is now 2 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Commit index set to 0 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower545, logLastIndex=1, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower545: Lagging 0 entries behind leader leader543 and reached 0 (of expected -1) 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Setting last applied to 0 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Moving last applied index from -1 to 0 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Applying state for log index 0 data zero-1 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: applyState called: zero-1 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Persisting ApplyJournalEntries with index=0 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower545 updated: matchIndex: 1, nextIndex: 2 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 1 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from 0 to 1 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 1 data one-1 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: one-1 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=1 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 10:19:42,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 2 is present for follower follower545 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Sending AppendEntries to follower follower545: AppendEntries [leaderId=leader543, 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]]] 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Commit index set to 1 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower545: Lagging 0 entries behind leader leader543 and reached 1 (of expected -1) 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Setting last applied to 1 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Moving last applied index from 0 to 1 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Applying state for log index 1 data one-1 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: applyState called: one-1 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): handleAppendEntries: AppendEntries [leaderId=leader543, 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]]] 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Number of entries to be appended = 1 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Append entry to log two-1 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Log size is now 3 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower545, logLastIndex=2, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower545: Lagging 0 entries behind leader leader543 and reached 1 (of expected -1) 10:19:42,741 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Persisting ApplyJournalEntries with index=1 10:19:42,741 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 2 is present for follower follower545 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower545 updated: matchIndex: 2, nextIndex: 3 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 2 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from 1 to 2 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 2 data two-1 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: two-1 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: -1 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=2 10:19:42,742 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Commit index set to 2 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 10:19:42,742 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower545: Lagging 0 entries behind leader leader543 and reached 2 (of expected -1) 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 10:19:42,742 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:19:42,742 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Setting last applied to 2 10:19:42,742 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Moving last applied index from 1 to 2 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=three-1}, logIndex: 3, isSendImmediate: true 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: -1 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 3 is present for follower follower545 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Sending AppendEntries to follower follower545: AppendEntries [leaderId=leader543, 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]]] 10:19:42,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 10:19:42,743 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 3 is present for follower follower545 10:19:42,743 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 10:19:42,743 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 10:19:42,743 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 10:19:42,743 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=four-1}, logIndex: 4, isSendImmediate: true 10:19:42,743 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:19:42,743 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 3 is present for follower follower545 10:19:42,743 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:19:42,743 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 10:19:42,743 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Applying state for log index 2 data two-1 10:19:42,743 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: applyState called: two-1 10:19:42,743 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): handleAppendEntries: AppendEntries [leaderId=leader543, 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]]] 10:19:42,743 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Number of entries to be appended = 1 10:19:42,743 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 10:19:42,743 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Append entry to log three-1 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Log size is now 4 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower545, logLastIndex=3, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower545: Lagging 0 entries behind leader leader543 and reached 2 (of expected -1) 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Persisting ApplyJournalEntries with index=2 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower545 updated: matchIndex: 3, nextIndex: 4 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 3 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from 2 to 3 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 3 data three-1 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: three-1 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 4 is present for follower follower545 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Sending AppendEntries to follower follower545: AppendEntries [leaderId=leader543, 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]]] 10:19:42,744 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=3 10:19:42,744 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): handleAppendEntries: AppendEntries [leaderId=leader543, 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]]] 10:19:42,744 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Number of entries to be appended = 1 10:19:42,744 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 10:19:42,744 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Append entry to log four-1 10:19:42,744 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 10:19:42,744 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 10:19:42,744 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Log size is now 5 10:19:42,744 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Commit index set to 3 10:19:42,745 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower545, logLastIndex=4, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:42,745 AM [test-akka.actor.default-dispatcher-4] [DEBUG] SyncStatusTracker - follower545: Lagging 0 entries behind leader leader543 and reached 3 (of expected -1) 10:19:42,745 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 4 10:19:42,745 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Setting last applied to 3 10:19:42,745 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Moving last applied index from 2 to 3 10:19:42,745 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Applying state for log index 3 data three-1 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower545 updated: matchIndex: 4, nextIndex: 5 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 10:19:42,745 AM [test-akka.actor.default-dispatcher-4] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: applyState called: three-1 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 4 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from 3 to 4 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 4 data four-1 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: four-1 10:19:42,745 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Persisting ApplyJournalEntries with index=3 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=4 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Commit index set to 4 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower545: Lagging 0 entries behind leader leader543 and reached 4 (of expected -1) 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 4 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Setting last applied to 4 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Moving last applied index from 3 to 4 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Applying state for log index 4 data four-1 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: applyState called: four-1 10:19:42,745 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Persisting ApplyJournalEntries with index=4 10:19:42,840 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Term 3 in "AppendEntries [leaderId=leader543, 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 10:19:42,840 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Set currentTerm=3, votedFor=null 10:19:42,840 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower544: Lagging -3 entries behind leader leader543 and reached 2 (of expected -1) 10:19:42,841 AM [test-akka.actor.default-dispatcher-4] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply: follower follower544 last log term 2 for index 2 conflicts with the leader's 3 - set the follower's next index to 1 10:19:42,841 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:19:42,841 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 1 is present for follower follower544 10:19:42,841 AM [test-akka.actor.default-dispatcher-4] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Sending AppendEntries to follower follower544: AppendEntries [leaderId=leader543, 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]]] 10:19:42,841 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): handleAppendEntries: AppendEntries [leaderId=leader543, 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]]] 10:19:42,842 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (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 10:19:42,842 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=3, success=false, followerId=follower544, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:42,842 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower544: Lagging 2 entries behind leader leader543 and reached 2 (of expected -1) 10:19:42,842 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower544, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 10:19:42,842 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): follower follower544 last log term 2 conflicts with the leader's 3 - dec next index to 0 10:19:42,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 0, leaderLastIndex: 4, leaderSnapShotIndex: -1 10:19:42,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 0 is present for follower follower544 10:19:42,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Sending AppendEntries to follower follower544: AppendEntries [leaderId=leader543, 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]]] 10:19:42,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): handleAppendEntries: AppendEntries [leaderId=leader543, 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]]] 10:19:42,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Number of entries to be appended = 5 10:19:42,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: -1 10:19:42,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] is present: existingEntryTerm: 2 10:19:42,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:42,842 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Removing entries from log starting at 1, commitIndex: 2, lastApplied: 2 10:19:42,842 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Could not remove entries - sending reply to force snapshot 10:19:42,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower544: Lagging 2 entries behind leader leader543 and reached 2 (of expected -1) 10:19:42,842 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower544, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 10:19:42,843 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: 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 follower544 10:19:42,843 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: lastSequenceNumber prior to capture: -1 10:19:42,843 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: CaptureSnapshotReply received by actor 10:19:42,843 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: 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=leader543, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower545, isVoting=true], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=follower544, isVoting=false], ServerInfo[peerId=leader543, isVoting=true]]]] 10:19:42,844 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:19:42,844 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendInstallSnapshot 10:19:42,844 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader543 (Leader): Snapshot 390 bytes, total chunks to send: 1 10:19:42,844 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader543 (Leader): Next chunk: total length=390, offset=0, size=390, hashCode=-929342248 10:19:42,844 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): next snapshot chunk size for follower follower544: 390 10:19:42,844 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): InstallSnapshot sent to follower Vector(user, follower544), Chunk: 1/1 10:19:42,844 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Snapshot success - sequence number: -1 10:19:42,844 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: SnapshotComplete received 10:19:42,844 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader543, lastIncludedIndex=4, lastIncludedTerm=3, datasize=390, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower545, isVoting=true], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=follower544, isVoting=false], ServerInfo[peerId=leader543, isVoting=true]]]] 10:19:42,844 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower544: Lagging 2 entries behind leader leader543 and reached 2 (of expected -1) 10:19:42,844 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:19:42,844 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Snapshot installed from leader: leader543 10:19:42,845 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: 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=follower545, isVoting=true], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=follower544, isVoting=false], ServerInfo[peerId=leader543, isVoting=true]]]] 10:19:42,845 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 10:19:42,845 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Snapshot success - sequence number: -1 10:19:42,845 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Moving last applied index from 2 to 4 10:19:42,845 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Set currentTerm=3, votedFor=null 10:19:42,845 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Updated server config: isVoting: false, peers: [PeerInfo [id=leader543, address=akka://test/user/leader543, votingState=VOTING], PeerInfo [id=follower545, address=null, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 10:19:42,845 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: applySnapshot called 10:19:42,845 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower544, chunkIndex=1, success=true] 10:19:42,845 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: SnapshotComplete received 10:19:42,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower544, chunkIndex=1, success=true] 10:19:42,845 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Snapshot successfully installed on follower follower544 (last chunk 1) - matchIndex set to 4, nextIndex set to 5 10:19:42,889 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart ending 10:19:42,889 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower544-collector546#-300323635] 10:19:42,900 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower544] 10:19:42,900 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader543-collector547#-491985595] 10:19:42,900 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader543] 10:19:42,900 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower545-collector548#1430164819] 10:19:42,901 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower545] 10:19:42,901 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader543-collector549#1815689636] 10:19:42,901 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader543] [INFO] [03/15/2024 10:19:42.902] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 10:19:42,902 AM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/15/2024 10:19:42.903] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.50:25520) [INFO] [03/15/2024 10:19:42.904] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Exiting completed [INFO] [03/15/2024 10:19:42.904] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Shutting down... [INFO] [03/15/2024 10:19:42.904] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Successfully shut down 10:19:42,904 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Exiting completed 10:19:42,905 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Shutting down... 10:19:42,905 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Successfully shut down [INFO] [03/15/2024 10:19:42.911] [test-akka.remote.default-remote-dispatcher-6] [akka://test@10.30.171.50:25520/system/remoting-terminator] Shutting down remote daemon. 10:19:42,911 AM [test-akka.actor.default-dispatcher-4] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [03/15/2024 10:19:42.911] [test-akka.remote.default-remote-dispatcher-6] [akka://test@10.30.171.50:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 10:19:42,911 AM [test-akka.actor.default-dispatcher-4] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports.