[DEBUG] [03/25/2024 07:43:02.420] [main] [EventStream(akka://test)] logger log1-TestEventListener started 07:43:02,421 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/25/2024 07:43:02.421] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/25/2024 07:43:02.421] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/25/2024 07:43:02.462] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.89:25520] with UID [-2908902743115100709] 07:43:02,463 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.89:25520] with UID [-2908902743115100709] 07:43:02,466 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - Starting up, Akka version [2.6.21] ... 07:43:02,469 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - Registered cluster JMX MBean [akka:type=Cluster] 07:43:02,469 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - Started up successfully 07:43:02,469 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 07:43:02,469 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [03/25/2024 07:43:02.463] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/25/2024 07:43:02.466] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/25/2024 07:43:02.466] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - Started up successfully [INFO] [03/25/2024 07:43:02.468] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/25/2024 07:43:02.468] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 07:43:02,502 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerLeaderStateChanges [WARN] [03/25/2024 07:43:02.507] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower520]: org.opendaylight.controller.cluster.common.actor.Monitor@76599d5d [INFO] [akkaDeadLetter][03/25/2024 07:43:02.507] [test-akka.actor.default-dispatcher-12] [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'. 07:43:02,508 AM [test-akka.actor.default-dispatcher-12] [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'. 07:43:02,509 AM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower520 with journal batch size 1000 [WARN] [03/25/2024 07:43:02.511] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader519]: org.opendaylight.controller.cluster.common.actor.Monitor@19989b74 [INFO] [akkaDeadLetter][03/25/2024 07:43:02.511] [test-akka.actor.default-dispatcher-6] [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'. 07:43:02,512 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Set currentTerm=1, votedFor=leader519 07:43:02,512 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Received ReplicatedLogEntry for recovery: index: 0, size: 143 07:43:02,512 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Updated server config: isVoting: false, peers: [PeerInfo [id=leader519, address=akka://test/user/leader519, votingState=VOTING]] 07:43:02,512 AM [test-akka.actor.default-dispatcher-10] [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 07:43:02,514 AM [test-akka.actor.default-dispatcher-6] [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'. 07:43:02,516 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader519 with journal batch size 1000 07:43:02,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Set currentTerm=1, votedFor=leader519 07:43:02,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Received ReplicatedLogEntry for recovery: index: 0, size: 143 07:43:02,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Updated server config: isVoting: true, peers: [PeerInfo [id=follower520, address=akka://test/user/follower520, votingState=NON_VOTING]] 07:43:02,517 AM [test-akka.actor.default-dispatcher-16] [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 07:43:02,959 AM [test-akka.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:43:02,959 AM [test-akka.actor.default-dispatcher-5] [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.89:25520, Removed) 07:43:02,959 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Follower): Received ElectionTimeout - switching to Candidate 07:43:02,960 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate): Election: Candidate has following voting peers: [] 07:43:02,960 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Set currentTerm=2, votedFor=leader519 07:43:02,960 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate): Starting new election term 2 07:43:02,960 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:43:02,962 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate): Received ElectionTimeout 07:43:02,962 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Election: Leader has following peers: [follower520] 07:43:02,962 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 07:43:02,962 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 07:43:02,962 AM [test-akka.actor.default-dispatcher-15] [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 07:43:02,962 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Set currentTerm=2, votedFor=null 07:43:02,962 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower520: Last sync leader does not match current leader leader519, need to catch up to -1 07:43:02,963 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower520 updated: matchIndex: -1, nextIndex: 0 07:43:02,963 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/25/2024 07:43:02.964] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower520] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@48ee2d64 [INFO] [akkaDeadLetter][03/25/2024 07:43:02.964] [test-akka.actor.default-dispatcher-16] [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'. 07:43:02,964 AM [test-akka.actor.default-dispatcher-16] [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'. 07:43:02,965 AM [test-akka.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:43:03,320 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower520: Lagging 0 entries behind leader leader519 and reached -1 (of expected -1) [WARN] [03/25/2024 07:43:03.320] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower520] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@50af8a8 07:43:03,320 AM [test-akka.actor.default-dispatcher-16] [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'. [INFO] [akkaDeadLetter][03/25/2024 07:43:03.320] [test-akka.actor.default-dispatcher-12] [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'. 07:43:03,367 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/roleChangeNotifier522#598252169] 07:43:03,379 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower520-collector523#-1704651753] 07:43:03,379 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower520] 07:43:03,380 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader519-collector524#644840444] 07:43:03,380 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader519] 07:43:03,381 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart starting [WARN] [03/25/2024 07:43:03.383] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower526]: org.opendaylight.controller.cluster.common.actor.Monitor@382bdcc7 [INFO] [akkaDeadLetter][03/25/2024 07:43:03.383] [test-akka.actor.default-dispatcher-16] [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'. 07:43:03,383 AM [test-akka.actor.default-dispatcher-16] [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'. 07:43:03,384 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower526 with journal batch size 1000 07:43:03,386 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader525 with journal batch size 1000 [WARN] [03/25/2024 07:43:03.386] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader525]: org.opendaylight.controller.cluster.common.actor.Monitor@689ba99 [INFO] [akkaDeadLetter][03/25/2024 07:43:03.387] [test-akka.actor.default-dispatcher-16] [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'. 07:43:03,387 AM [test-akka.actor.default-dispatcher-16] [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'. 07:43:03,387 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Set currentTerm=1, votedFor=leader525 07:43:03,387 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Received ReplicatedLogEntry for recovery: index: 0, size: 143 07:43:03,387 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Updated server config: isVoting: false, peers: [PeerInfo [id=leader525, address=akka://test/user/leader525, votingState=VOTING]] 07:43:03,387 AM [test-akka.actor.default-dispatcher-12] [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 07:43:03,389 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Set currentTerm=1, votedFor=leader525 07:43:03,389 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Received ReplicatedLogEntry for recovery: index: 0, size: 143 07:43:03,390 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Updated server config: isVoting: true, peers: [PeerInfo [id=follower526, address=akka://test/user/follower526, votingState=NON_VOTING]] 07:43:03,390 AM [test-akka.actor.default-dispatcher-12] [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 07:43:03,819 AM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:43:03,820 AM [test-akka.actor.default-dispatcher-6] [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.89:25520, Removed) 07:43:03,820 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Follower): Received ElectionTimeout - switching to Candidate 07:43:03,820 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Election: Candidate has following voting peers: [] 07:43:03,820 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Set currentTerm=2, votedFor=leader525 07:43:03,820 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Starting new election term 2 07:43:03,820 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:43:03,822 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Received ElectionTimeout 07:43:03,822 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Election: Leader has following peers: [follower526] 07:43:03,822 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 07:43:03,822 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 07:43:03,822 AM [test-akka.actor.default-dispatcher-6] [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 07:43:03,822 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Set currentTerm=2, votedFor=null 07:43:03,822 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower526: Last sync leader does not match current leader leader525, need to catch up to -1 07:43:03,823 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower526 updated: matchIndex: -1, nextIndex: 0 07:43:03,823 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 07:43:03,824 AM [test-akka.actor.default-dispatcher-5] [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'. [WARN] [03/25/2024 07:43:03.824] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower526] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7d751d1b [INFO] [akkaDeadLetter][03/25/2024 07:43:03.824] [test-akka.actor.default-dispatcher-5] [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'. 07:43:03,839 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:03,839 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:03,839 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 07:43:03,839 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Setting last applied to 0 07:43:03,839 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from -1 to 0 07:43:03,839 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Applying state for log index 0 data zero 07:43:03,840 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: applyState called: zero 07:43:03,840 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 07:43:03,840 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 0 is present for follower follower526 07:43:03,840 AM [test-akka.actor.default-dispatcher-15] [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]]] 07:43:03,840 AM [test-akka.actor.default-dispatcher-6] [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]]] 07:43:03,840 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persisting ApplyJournalEntries with index=0 07:43:03,840 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Number of entries to be appended = 1 07:43:03,840 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:43:03,840 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Append entry to log zero 07:43:03,840 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:03,840 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:03,840 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:03,840 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Log size is now 1 07:43:03,840 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Commit index set to 0 07:43:03,840 AM [test-akka.actor.default-dispatcher-6] [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] 07:43:03,840 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower526: Lagging 0 entries behind leader leader525 and reached 0 (of expected -1) 07:43:03,840 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 07:43:03,840 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Setting last applied to 0 07:43:03,840 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:03,840 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Moving last applied index from -1 to 0 07:43:03,840 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Applying state for log index 0 data zero 07:43:03,840 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:03,840 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: applyState called: zero 07:43:03,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 07:43:03,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Setting last applied to 1 07:43:03,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from 0 to 1 07:43:03,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Applying state for log index 1 data one 07:43:03,841 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Persisting ApplyJournalEntries with index=0 07:43:03,841 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: applyState called: one [WARN] [03/25/2024 07:43:03.841] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower526] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@34e5e82d 07:43:03,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 07:43:03,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 0 is present for follower follower526 07:43:03,841 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/25/2024 07:43:03.841] [test-akka.actor.default-dispatcher-15] [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'. 07:43:03,841 AM [test-akka.actor.default-dispatcher-5] [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]]] 07:43:03,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower526 updated: matchIndex: 0, nextIndex: 1 07:43:03,841 AM [test-akka.actor.default-dispatcher-16] [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]]] 07:43:03,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: fakeSnapshot purging log to 0 for term 2 07:43:03,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Number of entries to be appended = 2 07:43:03,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 07:43:03,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:43:03,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 1 is present for follower follower526 07:43:03,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:43:03,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Append entry to log one 07:43:03,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:03,841 AM [test-akka.actor.default-dispatcher-5] [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]]] 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Log size is now 2 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Commit index set to 1 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [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] 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower526: Lagging 0 entries behind leader leader525 and reached 1 (of expected -1) 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Setting last applied to 1 07:43:03,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persisting ApplyJournalEntries with index=1 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Moving last applied index from 0 to 1 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Applying state for log index 1 data one 07:43:03,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: applyState called: one 07:43:03,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower526 updated: matchIndex: 1, nextIndex: 2 07:43:03,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [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]]] 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Number of entries to be appended = 1 07:43:03,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 07:43:03,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Log size is now 2 07:43:03,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [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] 07:43:03,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Setting last applied to 2 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower526: Lagging 0 entries behind leader leader525 and reached 1 (of expected -1) 07:43:03,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from 1 to 2 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: fakeSnapshot purging log to 0 for term 2 07:43:03,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Applying state for log index 2 data two 07:43:03,842 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: applyState called: two 07:43:03,842 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Persisting ApplyJournalEntries with index=1 07:43:03,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 07:43:03,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 2 is present for follower follower526 07:43:03,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Sending AppendEntries to follower follower526: AppendEntries [leaderId=leader525, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries: AppendEntries [leaderId=leader525, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Number of entries to be appended = 1 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:43:03,843 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: fakeSnapshot purging log to 1 for term 2 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Append entry to log two 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 07:43:03,843 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 2 is present for follower follower526 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Log size is now 2 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Commit index set to 2 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [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] 07:43:03,843 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persisting ApplyJournalEntries with index=2 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower526: Lagging 0 entries behind leader leader525 and reached 2 (of expected -1) 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Setting last applied to 2 07:43:03,843 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Moving last applied index from 1 to 2 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Applying state for log index 2 data two 07:43:03,843 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower526 updated: matchIndex: 2, nextIndex: 3 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: applyState called: two 07:43:03,843 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 07:43:03,843 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Persisting ApplyJournalEntries with index=2 07:43:03,903 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader525 with journal batch size 1000 [WARN] [03/25/2024 07:43:03.903] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader525]: org.opendaylight.controller.cluster.common.actor.Monitor@34b8e424 [INFO] [akkaDeadLetter][03/25/2024 07:43:03.904] [test-akka.actor.default-dispatcher-16] [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'. 07:43:03,904 AM [test-akka.actor.default-dispatcher-16] [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'. 07:43:03,906 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Set currentTerm=1, votedFor=leader525 07:43:03,907 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Received ReplicatedLogEntry for recovery: index: 0, size: 143 07:43:03,907 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Updated server config: isVoting: true, peers: [PeerInfo [id=follower526, address=akka://test/user/follower526, votingState=NON_VOTING]] 07:43:03,907 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Set currentTerm=2, votedFor=leader525 07:43:03,907 AM [test-akka.actor.default-dispatcher-16] [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 07:43:04,370 AM [test-akka.actor.default-dispatcher-6] [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.89:25520, Removed) 07:43:04,370 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Follower): Received ElectionTimeout - switching to Candidate 07:43:04,370 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Election: Candidate has following voting peers: [] 07:43:04,370 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Set currentTerm=3, votedFor=leader525 07:43:04,370 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Starting new election term 3 07:43:04,370 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 07:43:04,372 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Received ElectionTimeout 07:43:04,372 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Election: Leader has following peers: [follower526] 07:43:04,372 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 07:43:04,372 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 07:43:04,411 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:04,411 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:04,411 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 07:43:04,411 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Setting last applied to 0 07:43:04,411 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from -1 to 0 07:43:04,411 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Applying state for log index 0 data zero-1 07:43:04,411 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: applyState called: zero-1 07:43:04,411 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 07:43:04,411 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persisting ApplyJournalEntries with index=0 07:43:04,411 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:04,412 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 07:43:04,412 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 07:43:04,412 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 07:43:04,412 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Setting last applied to 1 07:43:04,412 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from 0 to 1 07:43:04,412 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Applying state for log index 1 data one-1 07:43:04,412 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: applyState called: one-1 07:43:04,412 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 07:43:04,412 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persisting ApplyJournalEntries with index=1 07:43:04,412 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 07:43:04,490 AM [test-akka.actor.default-dispatcher-15] [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 07:43:04,490 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Set currentTerm=3, votedFor=null 07:43:04,490 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower526: Lagging -3 entries behind leader leader525 and reached 2 (of expected -1) 07:43:04,490 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleAppendEntriesReply: follower follower526 lastIndex 2 is ahead of our lastIndex 1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 07:43:04,490 AM [test-akka.actor.default-dispatcher-16] [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 07:43:04,490 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: lastSequenceNumber prior to capture: -1 07:43:04,491 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: CaptureSnapshotReply received by actor 07:43:04,491 AM [test-akka.actor.default-dispatcher-16] [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]]]] 07:43:04,491 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 07:43:04,491 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendInstallSnapshot 07:43:04,491 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader525 (Leader): Snapshot 333 bytes, total chunks to send: 1 07:43:04,491 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader525 (Leader): Next chunk: total length=333, offset=0, size=333, hashCode=878051978 07:43:04,491 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): next snapshot chunk size for follower follower526: 333 07:43:04,491 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): InstallSnapshot sent to follower Vector(user, follower526), Chunk: 1/1 07:43:04,491 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Snapshot success - sequence number: -1 07:43:04,491 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: SnapshotComplete received 07:43:04,491 AM [test-akka.actor.default-dispatcher-5] [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]]]] 07:43:04,491 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower526: Lagging -1 entries behind leader leader525 and reached 2 (of expected -1) 07:43:04,491 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:43:04,492 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Snapshot installed from leader: leader525 07:43:04,493 AM [test-akka.actor.default-dispatcher-5] [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]]]] 07:43:04,493 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 07:43:04,493 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Snapshot success - sequence number: -1 07:43:04,493 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Moving last applied index from 2 to 1 07:43:04,493 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Set currentTerm=3, votedFor=null 07:43:04,493 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Updated server config: isVoting: false, peers: [PeerInfo [id=leader525, address=akka://test/user/leader525, votingState=VOTING]] 07:43:04,493 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: applySnapshot called 07:43:04,493 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower526, chunkIndex=1, success=true] 07:43:04,493 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: SnapshotComplete received 07:43:04,493 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower526, chunkIndex=1, success=true] 07:43:04,494 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 07:43:04,494 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: fakeSnapshot purging log to 0 for term 3 07:43:04,512 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart ending 07:43:04,512 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower526-collector528#-365959388] 07:43:04,523 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower526] 07:43:04,523 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader525-collector529#1390013367] 07:43:04,523 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader525] 07:43:04,524 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader525-collector530#-1306897576] 07:43:04,524 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader525] 07:43:04,525 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart starting [WARN] [03/25/2024 07:43:04.527] [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@6fb81a9 [INFO] [akkaDeadLetter][03/25/2024 07:43:04.528] [test-akka.actor.default-dispatcher-16] [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'. 07:43:04,528 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower532 with journal batch size 1000 07:43:04,528 AM [test-akka.actor.default-dispatcher-16] [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'. [WARN] [03/25/2024 07:43:04.533] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader531]: org.opendaylight.controller.cluster.common.actor.Monitor@79520662 07:43:04,534 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader531 with journal batch size 1000 07:43:04,535 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Set currentTerm=1, votedFor=leader531 07:43:04,535 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Received ReplicatedLogEntry for recovery: index: 0, size: 143 07:43:04,535 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Updated server config: isVoting: false, peers: [PeerInfo [id=leader531, address=akka://test/user/leader531, votingState=VOTING]] 07:43:04,535 AM [test-akka.actor.default-dispatcher-10] [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 07:43:04,536 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Set currentTerm=1, votedFor=leader531 07:43:04,536 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Received ReplicatedLogEntry for recovery: index: 0, size: 143 07:43:04,536 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]] 07:43:04,537 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 07:43:04,989 AM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:43:04,989 AM [test-akka.actor.default-dispatcher-6] [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.89:25520, Removed) 07:43:04,989 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Follower): Received ElectionTimeout - switching to Candidate 07:43:04,990 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Election: Candidate has following voting peers: [] 07:43:04,990 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Set currentTerm=2, votedFor=leader531 07:43:04,990 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Starting new election term 2 07:43:04,990 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:43:04,991 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Received ElectionTimeout 07:43:04,991 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Election: Leader has following peers: [follower532] 07:43:04,991 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 07:43:04,991 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 07:43:04,992 AM [test-akka.actor.default-dispatcher-6] [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 07:43:04,992 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Set currentTerm=2, votedFor=null 07:43:04,992 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower532: Last sync leader does not match current leader leader531, need to catch up to -1 07:43:04,992 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: -1, nextIndex: 0 07:43:04,992 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/25/2024 07:43:04.993] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower532] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1be64ef1 07:43:05,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:05,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:05,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 07:43:05,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Setting last applied to 0 07:43:05,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Moving last applied index from -1 to 0 07:43:05,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Applying state for log index 0 data zero 07:43:05,34 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: applyState called: zero 07:43:05,34 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 07:43:05,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 0 is present for follower follower532 07:43:05,34 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=2, payload=zero]]] 07:43:05,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persisting ApplyJournalEntries with index=0 07:43:05,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:05,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:05,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:05,34 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=2, payload=zero]]] 07:43:05,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 07:43:05,34 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Number of entries to be appended = 1 07:43:05,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Setting last applied to 1 07:43:05,34 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:43:05,34 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Moving last applied index from 0 to 1 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Applying state for log index 1 data one 07:43:05,35 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Append entry to log zero 07:43:05,35 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:05,35 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: applyState called: one 07:43:05,35 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Log size is now 1 07:43:05,35 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Commit index set to 0 07:43:05,35 AM [test-akka.actor.default-dispatcher-17] [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] 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 0 is present for follower follower532 07:43:05,35 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader531 and reached 0 (of expected -1) 07:43:05,35 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 07:43:05,35 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=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]]] 07:43:05,35 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Setting last applied to 0 07:43:05,35 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from -1 to 0 07:43:05,35 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Applying state for log index 0 data zero 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persisting ApplyJournalEntries with index=1 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: 0, nextIndex: 1 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: fakeSnapshot purging log to 0 for term 2 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 1 is present for follower follower532 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [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]]] 07:43:05,35 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applyState called: zero 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Setting last applied to 2 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Moving last applied index from 1 to 2 07:43:05,35 AM [test-akka.actor.default-dispatcher-17] [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]]] 07:43:05,35 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Applying state for log index 2 data two 07:43:05,35 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Number of entries to be appended = 2 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Append entry to log one 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:05,36 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: applyState called: two 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Log size is now 2 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Commit index set to 1 07:43:05,36 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [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] 07:43:05,36 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 1 is present for follower follower532 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader531 and reached 1 (of expected -1) 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Setting last applied to 1 07:43:05,36 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Sending AppendEntries to follower follower532: AppendEntries [leaderId=leader531, 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]]] 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from 0 to 1 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Applying state for log index 1 data one 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applyState called: one 07:43:05,36 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persisting ApplyJournalEntries with index=2 07:43:05,36 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: 1, nextIndex: 2 07:43:05,36 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: fakeSnapshot purging log to 1 for term 2 07:43:05,36 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [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]]] 07:43:05,36 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 2 is present for follower follower532 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Number of entries to be appended = 1 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 07:43:05,36 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Sending AppendEntries to follower follower532: AppendEntries [leaderId=leader531, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Log size is now 2 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [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] 07:43:05,36 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader531 and reached 1 (of expected -1) 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: fakeSnapshot purging log to 0 for term 2 07:43:05,36 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 2 is present for follower follower532 07:43:05,36 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Persisting ApplyJournalEntries with index=0 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries: AppendEntries [leaderId=leader531, 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]]] 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Number of entries to be appended = 2 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Append entry to log two 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Log size is now 2 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Commit index set to 2 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [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] 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader531 and reached 2 (of expected -1) 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Setting last applied to 2 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from 1 to 2 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Applying state for log index 2 data two 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applyState called: two 07:43:05,37 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: 2, nextIndex: 3 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Persisting ApplyJournalEntries with index=1 07:43:05,37 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries: AppendEntries [leaderId=leader531, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Number of entries to be appended = 1 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Log size is now 2 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [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] 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader531 and reached 2 (of expected -1) 07:43:05,37 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: fakeSnapshot purging log to 1 for term 2 07:43:05,38 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Persisting ApplyJournalEntries with index=2 [WARN] [03/25/2024 07:43:05.038] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower532] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7b0de59e 07:43:05,101 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader531 with journal batch size 1000 [WARN] [03/25/2024 07:43:05.101] [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@3fea846a 07:43:05,103 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Set currentTerm=1, votedFor=leader531 07:43:05,104 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Received ReplicatedLogEntry for recovery: index: 0, size: 143 07:43:05,104 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Updated server config: isVoting: true, peers: [PeerInfo [id=follower532, address=akka://test/user/follower532, votingState=NON_VOTING]] 07:43:05,104 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Set currentTerm=2, votedFor=leader531 07:43:05,104 AM [test-akka.actor.default-dispatcher-18] [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 07:43:05,609 AM [test-akka.actor.default-dispatcher-6] [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.89:25520, Removed) 07:43:05,609 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Follower): Received ElectionTimeout - switching to Candidate 07:43:05,609 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Election: Candidate has following voting peers: [] 07:43:05,610 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Set currentTerm=3, votedFor=leader531 07:43:05,610 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Starting new election term 3 07:43:05,610 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 07:43:05,611 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Received ElectionTimeout 07:43:05,611 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Election: Leader has following peers: [follower532] 07:43:05,612 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 07:43:05,612 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 07:43:05,612 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 07:43:05,612 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Set currentTerm=3, votedFor=null 07:43:05,612 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower532: Lagging -3 entries behind leader leader531 and reached 2 (of expected -1) 07:43:05,612 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply: follower follower532 lastIndex 2 is ahead of our lastIndex -1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 07:43:05,612 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 07:43:05,612 AM [test-akka.actor.default-dispatcher-17] [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 07:43:05,612 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: lastSequenceNumber prior to capture: -1 07:43:05,613 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: CaptureSnapshotReply received by actor 07:43:05,613 AM [test-akka.actor.default-dispatcher-17] [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]]]] 07:43:05,613 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 07:43:05,613 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendInstallSnapshot 07:43:05,613 AM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader531 (Leader): Snapshot 171 bytes, total chunks to send: 1 07:43:05,613 AM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader531 (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 07:43:05,613 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): next snapshot chunk size for follower follower532: 171 07:43:05,613 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): InstallSnapshot sent to follower Vector(user, follower532), Chunk: 1/1 07:43:05,613 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Snapshot success - sequence number: -1 07:43:05,613 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: SnapshotComplete received 07:43:05,613 AM [test-akka.actor.default-dispatcher-18] [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]]]] 07:43:05,614 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower532: Lagging -3 entries behind leader leader531 and reached 2 (of expected -1) 07:43:05,614 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:43:05,614 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Snapshot installed from leader: leader531 07:43:05,614 AM [test-akka.actor.default-dispatcher-18] [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]]]] 07:43:05,614 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 07:43:05,614 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Snapshot success - sequence number: -1 07:43:05,614 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from 2 to -1 07:43:05,614 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Set currentTerm=3, votedFor=null 07:43:05,615 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Updated server config: isVoting: false, peers: [PeerInfo [id=leader531, address=akka://test/user/leader531, votingState=VOTING]] 07:43:05,615 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applySnapshot called 07:43:05,615 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower532, chunkIndex=1, success=true] 07:43:05,615 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: SnapshotComplete received 07:43:05,615 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower532, chunkIndex=1, success=true] 07:43:05,615 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Snapshot successfully installed on follower follower532 (last chunk 1) - matchIndex set to -1, nextIndex set to 0 07:43:05,659 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:05,659 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:05,659 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 07:43:05,659 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Setting last applied to 0 07:43:05,659 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Moving last applied index from -1 to 0 07:43:05,659 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Applying state for log index 0 data zero-1 07:43:05,659 AM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: applyState called: zero-1 07:43:05,659 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 07:43:05,659 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 0 is present for follower follower532 07:43:05,660 AM [test-akka.actor.default-dispatcher-10] [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]]] 07:43:05,660 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persisting ApplyJournalEntries with index=0 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [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]]] 07:43:05,660 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Number of entries to be appended = 1 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Append entry to log zero-1 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Log size is now 1 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Commit index set to 0 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [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] 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader531 and reached 0 (of expected -1) 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Setting last applied to 0 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from -1 to 0 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Applying state for log index 0 data zero-1 07:43:05,660 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: 0, nextIndex: 1 07:43:05,660 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applyState called: zero-1 07:43:05,660 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Persisting ApplyJournalEntries with index=0 07:43:05,710 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart ending 07:43:05,710 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower532-collector534#397221581] 07:43:05,722 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower532] 07:43:05,722 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader531-collector535#1047306518] 07:43:05,722 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader531] 07:43:05,722 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader531-collector536#-5308223] 07:43:05,722 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader531] 07:43:05,724 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart starting [WARN] [03/25/2024 07:43:05.726] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower538]: org.opendaylight.controller.cluster.common.actor.Monitor@72982739 07:43:05,726 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower538 with journal batch size 1000 07:43:05,729 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Set currentTerm=1, votedFor=leader537 07:43:05,729 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Received ReplicatedLogEntry for recovery: index: 0, size: 143 07:43:05,729 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Updated server config: isVoting: false, peers: [PeerInfo [id=leader537, address=akka://test/user/leader537, votingState=VOTING]] 07:43:05,729 AM [test-akka.actor.default-dispatcher-6] [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/25/2024 07:43:05.832] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader537]: org.opendaylight.controller.cluster.common.actor.Monitor@608371bf 07:43:05,833 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader537 with journal batch size 1000 07:43:05,840 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Set currentTerm=1, votedFor=leader537 07:43:05,840 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Received ReplicatedLogEntry for recovery: index: 0, size: 143 07:43:05,840 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Updated server config: isVoting: true, peers: [PeerInfo [id=follower538, address=akka://test/user/follower538, votingState=NON_VOTING]] 07:43:05,840 AM [test-akka.actor.default-dispatcher-10] [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 07:43:06,289 AM [test-akka.actor.default-dispatcher-18] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:43:06,290 AM [test-akka.actor.default-dispatcher-18] [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.89:25520, Removed) 07:43:06,290 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Follower): Received ElectionTimeout - switching to Candidate 07:43:06,290 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate): Election: Candidate has following voting peers: [] 07:43:06,290 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Set currentTerm=2, votedFor=leader537 07:43:06,290 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate): Starting new election term 2 07:43:06,290 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:43:06,291 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate): Received ElectionTimeout 07:43:06,292 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Election: Leader has following peers: [follower538] 07:43:06,292 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 07:43:06,292 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 07:43:06,292 AM [test-akka.actor.default-dispatcher-18] [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 07:43:06,292 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Set currentTerm=2, votedFor=null 07:43:06,292 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower538: Last sync leader does not match current leader leader537, need to catch up to -1 07:43:06,292 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower538 updated: matchIndex: -1, nextIndex: 0 07:43:06,293 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/25/2024 07:43:06.293] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower538] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@67cf22a5 07:43:06,337 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:06,337 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:06,337 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 07:43:06,337 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Setting last applied to 0 07:43:06,337 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Moving last applied index from -1 to 0 07:43:06,337 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Applying state for log index 0 data zero 07:43:06,337 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: applyState called: zero 07:43:06,337 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 07:43:06,337 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): sendAppendEntries: 0 is present for follower follower538 07:43:06,337 AM [test-akka.actor.default-dispatcher-6] [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]]] 07:43:06,337 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persisting ApplyJournalEntries with index=0 07:43:06,338 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [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]]] 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Number of entries to be appended = 1 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Append entry to log zero 07:43:06,338 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:06,338 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:06,338 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Log size is now 1 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Commit index set to 0 07:43:06,338 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Setting last applied to 1 07:43:06,338 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Moving last applied index from 0 to 1 07:43:06,338 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Applying state for log index 1 data one 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [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] 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower538: Lagging 0 entries behind leader leader537 and reached 0 (of expected -1) 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Setting last applied to 0 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Moving last applied index from -1 to 0 07:43:06,338 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: applyState called: one 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Applying state for log index 0 data zero 07:43:06,338 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 07:43:06,338 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): sendAppendEntries: 0 is present for follower follower538 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: applyState called: zero 07:43:06,338 AM [test-akka.actor.default-dispatcher-6] [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]]] 07:43:06,338 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower538 updated: matchIndex: 0, nextIndex: 1 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Persisting ApplyJournalEntries with index=0 07:43:06,338 AM [test-akka.actor.default-dispatcher-18] [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]]] 07:43:06,339 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: fakeSnapshot purging log to 0 for term 2 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Number of entries to be appended = 2 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Append entry to log one 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Log size is now 2 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Commit index set to 1 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [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] 07:43:06,339 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower538: Lagging 0 entries behind leader leader537 and reached 1 (of expected -1) 07:43:06,339 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): sendAppendEntries: 1 is present for follower follower538 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Setting last applied to 1 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Moving last applied index from 0 to 1 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Applying state for log index 1 data one 07:43:06,339 AM [test-akka.actor.default-dispatcher-6] [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]]] 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: applyState called: one 07:43:06,339 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persisting ApplyJournalEntries with index=1 07:43:06,339 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [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]]] 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Number of entries to be appended = 1 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Log size is now 2 07:43:06,339 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower538 updated: matchIndex: 1, nextIndex: 2 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [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] 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower538: Lagging 0 entries behind leader leader537 and reached 1 (of expected -1) 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: fakeSnapshot purging log to 0 for term 2 07:43:06,339 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 07:43:06,339 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Persisting ApplyJournalEntries with index=1 [WARN] [03/25/2024 07:43:06.340] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower538] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7bf50d10 [WARN] [03/25/2024 07:43:06.404] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader537]: org.opendaylight.controller.cluster.common.actor.Monitor@4d562295 07:43:06,405 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader537 with journal batch size 1000 07:43:06,407 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Set currentTerm=1, votedFor=leader537 07:43:06,407 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Received ReplicatedLogEntry for recovery: index: 0, size: 143 07:43:06,407 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Updated server config: isVoting: true, peers: [PeerInfo [id=follower538, address=akka://test/user/follower538, votingState=NON_VOTING]] 07:43:06,407 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Set currentTerm=2, votedFor=leader537 07:43:06,407 AM [test-akka.actor.default-dispatcher-5] [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 07:43:06,870 AM [test-akka.actor.default-dispatcher-17] [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.89:25520, Removed) 07:43:06,870 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Follower): Received ElectionTimeout - switching to Candidate 07:43:06,870 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate): Election: Candidate has following voting peers: [] 07:43:06,870 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Set currentTerm=3, votedFor=leader537 07:43:06,870 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate): Starting new election term 3 07:43:06,870 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 07:43:06,871 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate): Received ElectionTimeout 07:43:06,872 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Election: Leader has following peers: [follower538] 07:43:06,872 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 07:43:06,872 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 07:43:06,907 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:06,907 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:06,907 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 07:43:06,907 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Setting last applied to 0 07:43:06,907 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Moving last applied index from -1 to 0 07:43:06,907 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Applying state for log index 0 data zero-1 07:43:06,907 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: applyState called: zero-1 07:43:06,907 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persisting ApplyJournalEntries with index=0 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Setting last applied to 1 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Moving last applied index from 0 to 1 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Applying state for log index 1 data one-1 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: applyState called: one-1 07:43:06,908 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 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persisting ApplyJournalEntries with index=1 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Setting last applied to 2 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Moving last applied index from 1 to 2 07:43:06,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Applying state for log index 2 data two-1 07:43:06,909 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: applyState called: two-1 07:43:06,909 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 07:43:06,909 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Persisting ApplyJournalEntries with index=2 07:43:06,909 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 07:43:06,990 AM [test-akka.actor.default-dispatcher-16] [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 07:43:06,990 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Set currentTerm=3, votedFor=null 07:43:06,990 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower538: Lagging -2 entries behind leader leader537 and reached 1 (of expected -1) 07:43:06,990 AM [test-akka.actor.default-dispatcher-5] [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 07:43:06,991 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Checking sendAppendEntries for follower follower538: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 07:43:06,991 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): sendAppendEntries: 0 is present for follower follower538 07:43:06,991 AM [test-akka.actor.default-dispatcher-5] [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]]] 07:43:06,991 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]]] 07:43:06,991 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Number of entries to be appended = 3 07:43:06,991 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 07:43:06,991 AM [test-akka.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:43:06,991 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Removing entries from log starting at 0, commitIndex: 1, lastApplied: 1 07:43:06,991 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Could not remove entries - sending reply to force snapshot 07:43:06,991 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower538: Lagging 1 entries behind leader leader537 and reached 1 (of expected -1) 07:43:06,991 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 07:43:06,992 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 07:43:06,992 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: lastSequenceNumber prior to capture: -1 07:43:06,993 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: CaptureSnapshotReply received by actor 07:43:06,993 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]]]] 07:43:06,993 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 07:43:06,993 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): sendInstallSnapshot 07:43:06,993 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader537 (Leader): Snapshot 351 bytes, total chunks to send: 1 07:43:06,993 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader537 (Leader): Next chunk: total length=351, offset=0, size=351, hashCode=236499276 07:43:06,993 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): next snapshot chunk size for follower follower538: 351 07:43:06,993 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): InstallSnapshot sent to follower Vector(user, follower538), Chunk: 1/1 07:43:06,993 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: Snapshot success - sequence number: -1 07:43:06,993 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: SnapshotComplete received 07:43:06,993 AM [test-akka.actor.default-dispatcher-17] [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]]]] 07:43:06,993 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower538: Lagging 1 entries behind leader leader537 and reached 1 (of expected -1) 07:43:06,993 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:43:06,993 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): Snapshot installed from leader: leader537 07:43:06,994 AM [test-akka.actor.default-dispatcher-17] [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]]]] 07:43:06,994 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 07:43:06,994 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Snapshot success - sequence number: -1 07:43:06,994 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Moving last applied index from 1 to 2 07:43:06,994 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: Set currentTerm=3, votedFor=null 07:43:06,994 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]] 07:43:06,994 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: applySnapshot called 07:43:06,995 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower538, chunkIndex=1, success=true] 07:43:06,995 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower538: SnapshotComplete received 07:43:06,995 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower538, chunkIndex=1, success=true] 07:43:06,995 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader537 (Leader): Snapshot successfully installed on follower follower538 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 07:43:06,995 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader537: fakeSnapshot purging log to 1 for term 3 07:43:07,14 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart ending 07:43:07,15 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower538-collector540#-1773233723] 07:43:07,26 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower538] 07:43:07,26 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader537-collector541#-905037339] 07:43:07,26 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader537] 07:43:07,27 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader537-collector542#-703189182] 07:43:07,27 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader537] 07:43:07,28 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart starting [WARN] [03/25/2024 07:43:07.036] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower544]: org.opendaylight.controller.cluster.common.actor.Monitor@6c7ae4 07:43:07,37 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower544 with journal batch size 1000 07:43:07,39 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Set currentTerm=1, votedFor=leader543 07:43:07,39 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Received ReplicatedLogEntry for recovery: index: 0, size: 143 07:43:07,39 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Updated server config: isVoting: false, peers: [PeerInfo [id=leader543, address=akka://test/user/leader543, votingState=VOTING]] 07:43:07,39 AM [test-akka.actor.default-dispatcher-5] [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/25/2024 07:43:07.138] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader543]: org.opendaylight.controller.cluster.common.actor.Monitor@77368d1b 07:43:07,139 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader543 with journal batch size 1000 07:43:07,141 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Set currentTerm=1, votedFor=leader543 07:43:07,141 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Received ReplicatedLogEntry for recovery: index: 0, size: 143 07:43:07,141 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Updated server config: isVoting: true, peers: [PeerInfo [id=follower544, address=akka://test/user/follower544, votingState=NON_VOTING]] 07:43:07,141 AM [test-akka.actor.default-dispatcher-18] [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 07:43:07,610 AM [test-akka.actor.default-dispatcher-18] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:43:07,610 AM [test-akka.actor.default-dispatcher-18] [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.89:25520, Removed) 07:43:07,610 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Follower): Received ElectionTimeout - switching to Candidate 07:43:07,610 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate): Election: Candidate has following voting peers: [] 07:43:07,610 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Set currentTerm=2, votedFor=leader543 07:43:07,610 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate): Starting new election term 2 07:43:07,610 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:43:07,612 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate): Received ElectionTimeout 07:43:07,612 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Election: Leader has following peers: [follower544] 07:43:07,612 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 07:43:07,612 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 07:43:07,612 AM [test-akka.actor.default-dispatcher-16] [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 07:43:07,612 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Set currentTerm=2, votedFor=null 07:43:07,612 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower544: Last sync leader does not match current leader leader543, need to catch up to -1 07:43:07,612 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower544 updated: matchIndex: -1, nextIndex: 0 07:43:07,613 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 [WARN] [03/25/2024 07:43:07.613] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower544] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4af3da29 07:43:07,641 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:07,641 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:07,641 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 07:43:07,641 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 0 07:43:07,641 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from -1 to 0 07:43:07,641 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 0 data zero 07:43:07,642 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: zero 07:43:07,642 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 07:43:07,642 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 0 is present for follower follower544 07:43:07,642 AM [test-akka.actor.default-dispatcher-18] [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]]] 07:43:07,642 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=0 07:43:07,642 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:07,642 AM [test-akka.actor.default-dispatcher-16] [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]]] 07:43:07,642 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Number of entries to be appended = 1 07:43:07,642 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:43:07,642 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:07,642 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Append entry to log zero 07:43:07,642 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:07,642 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:07,642 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 07:43:07,642 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 07:43:07,642 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 1 07:43:07,642 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Log size is now 1 07:43:07,642 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from 0 to 1 07:43:07,642 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Commit index set to 0 07:43:07,642 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 1 data one 07:43:07,642 AM [test-akka.actor.default-dispatcher-16] [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] 07:43:07,642 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower544: Lagging 0 entries behind leader leader543 and reached 0 (of expected -1) 07:43:07,642 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: one 07:43:07,642 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Setting last applied to 0 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Moving last applied index from -1 to 0 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Applying state for log index 0 data zero 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 0 is present for follower follower544 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [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]]] 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: applyState called: zero 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower544 updated: matchIndex: 0, nextIndex: 1 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: fakeSnapshot purging log to 0 for term 2 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 1 is present for follower follower544 07:43:07,643 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]]] 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Number of entries to be appended = 2 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [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]]] 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=1 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Append entry to log one 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Log size is now 2 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Commit index set to 1 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 07:43:07,643 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] 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower544: Lagging 0 entries behind leader leader543 and reached 1 (of expected -1) 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 2 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Setting last applied to 1 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from 1 to 2 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Moving last applied index from 0 to 1 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 2 data two 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Applying state for log index 1 data one 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: two 07:43:07,643 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: applyState called: one 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 07:43:07,643 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 1 is present for follower follower544 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Persisting ApplyJournalEntries with index=0 07:43:07,644 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Sending AppendEntries to follower follower544: AppendEntries [leaderId=leader543, 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]]] 07:43:07,644 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]]] 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Number of entries to be appended = 1 07:43:07,644 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower544 updated: matchIndex: 1, nextIndex: 2 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:43:07,644 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: fakeSnapshot purging log to 1 for term 2 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Log size is now 2 07:43:07,644 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] 07:43:07,644 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower544: Lagging 0 entries behind leader leader543 and reached 1 (of expected -1) 07:43:07,644 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 2 is present for follower follower544 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: fakeSnapshot purging log to 0 for term 2 07:43:07,644 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Sending AppendEntries to follower follower544: AppendEntries [leaderId=leader543, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Persisting ApplyJournalEntries with index=1 07:43:07,644 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=2 07:43:07,644 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): handleAppendEntries: AppendEntries [leaderId=leader543, 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]]] 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Number of entries to be appended = 2 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Append entry to log two 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 07:43:07,644 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 2 is present for follower follower544 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Log size is now 2 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Commit index set to 2 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [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] 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower544: Lagging 0 entries behind leader leader543 and reached 2 (of expected -1) 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Setting last applied to 2 07:43:07,644 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower544 updated: matchIndex: 2, nextIndex: 3 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Moving last applied index from 1 to 2 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Applying state for log index 2 data two 07:43:07,644 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: applyState called: two 07:43:07,645 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): handleAppendEntries: AppendEntries [leaderId=leader543, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 07:43:07,645 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Number of entries to be appended = 1 07:43:07,645 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 07:43:07,645 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 07:43:07,645 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Log size is now 2 07:43:07,645 AM [test-akka.actor.default-dispatcher-16] [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] 07:43:07,645 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower544: Lagging 0 entries behind leader leader543 and reached 2 (of expected -1) 07:43:07,645 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: fakeSnapshot purging log to 1 for term 2 07:43:07,645 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Persisting ApplyJournalEntries with index=2 [WARN] [03/25/2024 07:43:07.645] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower544] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6f2d68d2 07:43:07,645 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 07:43:07,850 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower544: Lagging 0 entries behind leader leader543 and reached 2 (of expected -1) [WARN] [03/25/2024 07:43:07.911] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower545]: org.opendaylight.controller.cluster.common.actor.Monitor@4f212257 07:43:07,911 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower545 with journal batch size 1000 07:43:07,913 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Received ReplicatedLogEntry for recovery: index: 0, size: 174 07:43:07,913 AM [test-akka.actor.default-dispatcher-5] [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]] 07:43:07,913 AM [test-akka.actor.default-dispatcher-5] [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/25/2024 07:43:08.013] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader543]: org.opendaylight.controller.cluster.common.actor.Monitor@6d508269 07:43:08,14 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader543 with journal batch size 1000 07:43:08,17 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Set currentTerm=2, votedFor=leader543 07:43:08,17 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Received ReplicatedLogEntry for recovery: index: 0, size: 174 07:43:08,17 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]] 07:43:08,17 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 07:43:08,499 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.89:25520, Removed) 07:43:08,499 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Follower): Received ElectionTimeout - switching to Candidate 07:43:08,499 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate): Election: Candidate has following voting peers: [follower545] 07:43:08,499 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Set currentTerm=3, votedFor=leader543 07:43:08,499 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate): Starting new election term 3 07:43:08,500 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 07:43:08,500 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 07:43:08,500 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 07:43:08,500 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Cluster state: [] 07:43:08,500 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=leader543, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 07:43:08,500 AM [test-akka.actor.default-dispatcher-5] [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 07:43:08,500 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Set currentTerm=3, votedFor=null 07:43:08,500 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): In requestVote: RequestVote [term=3, candidateId=leader543, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 3, votedFor: null, lastIndex: -1, lastTerm: -1 07:43:08,500 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Set currentTerm=3, votedFor=leader543 07:43:08,500 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 07:43:08,501 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 07:43:08,501 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 07:43:08,501 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Election: Leader has following peers: [follower545, downPeer, follower544] 07:43:08,501 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 07:43:08,501 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 07:43:08,501 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 07:43:08,501 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower545: Last sync leader does not match current leader leader543, need to catch up to -1 07:43:08,502 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower545 updated: matchIndex: -1, nextIndex: 0 07:43:08,502 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/25/2024 07:43:08.502] [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@611bf249 07:43:08,515 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:08,515 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:08,515 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 07:43:08,515 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 07:43:08,515 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 0 is present for follower follower545 07:43:08,515 AM [test-akka.actor.default-dispatcher-16] [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]]] 07:43:08,515 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 07:43:08,515 AM [test-akka.actor.default-dispatcher-6] [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]]] 07:43:08,515 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:08,515 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Number of entries to be appended = 1 07:43:08,515 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:43:08,515 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Append entry to log zero-1 07:43:08,515 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:08,515 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 07:43:08,515 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 07:43:08,515 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 07:43:08,515 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Log size is now 1 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 07:43:08,516 AM [test-akka.actor.default-dispatcher-6] [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] 07:43:08,516 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower545: Lagging 0 entries behind leader leader543 and reached -1 (of expected -1) 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 0 is present for follower follower545 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower545 updated: matchIndex: 0, nextIndex: 1 [WARN] [03/25/2024 07:43:08.516] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower545] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4562ca69 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 0 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from -1 to 0 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 0 data zero-1 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: zero-1 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 1 is present for follower follower545 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [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]]] 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 07:43:08,516 AM [test-akka.actor.default-dispatcher-6] [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]]] 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=0 07:43:08,516 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Number of entries to be appended = 1 07:43:08,516 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 07:43:08,516 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Append entry to log one-1 07:43:08,516 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 07:43:08,516 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 07:43:08,516 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Log size is now 2 07:43:08,516 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Commit index set to 0 07:43:08,516 AM [test-akka.actor.default-dispatcher-6] [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] 07:43:08,516 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 07:43:08,516 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower545: Lagging 0 entries behind leader leader543 and reached 0 (of expected -1) 07:43:08,516 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Setting last applied to 0 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Moving last applied index from -1 to 0 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Applying state for log index 0 data zero-1 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 1 is present for follower follower545 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: applyState called: zero-1 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Persisting ApplyJournalEntries with index=0 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower545 updated: matchIndex: 1, nextIndex: 2 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 1 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from 0 to 1 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 1 data one-1 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: one-1 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 2 is present for follower follower545 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [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]]] 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [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]]] 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Number of entries to be appended = 1 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=1 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Append entry to log two-1 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Log size is now 3 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Commit index set to 1 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=three-1}, logIndex: 3, isSendImmediate: true 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [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] 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower545: Lagging 0 entries behind leader leader543 and reached 1 (of expected -1) 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 2 07:43:08,517 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: -1 07:43:08,517 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Setting last applied to 1 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 2 is present for follower follower545 07:43:08,518 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Moving last applied index from 0 to 1 07:43:08,518 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Applying state for log index 1 data one-1 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 07:43:08,518 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: applyState called: one-1 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower545 updated: matchIndex: 2, nextIndex: 3 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 2 07:43:08,518 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Persisting ApplyJournalEntries with index=1 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from 1 to 2 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 2 data two-1 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: two-1 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: -1 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 3 is present for follower follower545 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [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]]] 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=2 07:43:08,518 AM [test-akka.actor.default-dispatcher-15] [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]]] 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persist data SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 07:43:08,518 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Number of entries to be appended = 1 07:43:08,518 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Replicate message: identifier: MockIdentifier{value=four-1}, logIndex: 4, isSendImmediate: true 07:43:08,518 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Append entry to log three-1 07:43:08,518 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 07:43:08,518 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: -1 07:43:08,518 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Log size is now 4 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 3 is present for follower follower545 07:43:08,518 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Commit index set to 2 07:43:08,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [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] 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower545: Lagging 0 entries behind leader leader543 and reached 2 (of expected -1) 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 3 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Setting last applied to 2 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Moving last applied index from 1 to 2 07:43:08,519 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower545 updated: matchIndex: 3, nextIndex: 4 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Applying state for log index 2 data two-1 07:43:08,519 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 07:43:08,519 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 3 07:43:08,519 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from 2 to 3 07:43:08,519 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 3 data three-1 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: applyState called: two-1 07:43:08,519 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: three-1 07:43:08,519 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 07:43:08,519 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 4 is present for follower follower545 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Persisting ApplyJournalEntries with index=2 07:43:08,519 AM [test-akka.actor.default-dispatcher-6] [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]]] 07:43:08,519 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [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]]] 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Number of entries to be appended = 1 07:43:08,519 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=3 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Append entry to log four-1 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Log size is now 5 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Commit index set to 3 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [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] 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower545: Lagging 0 entries behind leader leader543 and reached 3 (of expected -1) 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 4 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Setting last applied to 3 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Moving last applied index from 2 to 3 07:43:08,519 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower545 updated: matchIndex: 4, nextIndex: 5 07:43:08,519 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Applying state for log index 3 data three-1 07:43:08,520 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 07:43:08,520 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Setting last applied to 4 07:43:08,520 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Moving last applied index from 3 to 4 07:43:08,520 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Applying state for log index 4 data four-1 07:43:08,520 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: applyState called: three-1 07:43:08,520 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: applyState called: four-1 07:43:08,520 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Persisting ApplyJournalEntries with index=3 07:43:08,520 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower545: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 07:43:08,520 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Commit index set to 4 07:43:08,520 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Persisting ApplyJournalEntries with index=4 07:43:08,520 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower545: Lagging 0 entries behind leader leader543 and reached 4 (of expected -1) 07:43:08,520 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 4 07:43:08,520 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545 (Follower): Setting last applied to 4 07:43:08,520 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Moving last applied index from 3 to 4 07:43:08,520 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Applying state for log index 4 data four-1 07:43:08,520 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: applyState called: four-1 07:43:08,520 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower545: Persisting ApplyJournalEntries with index=4 07:43:08,620 AM [test-akka.actor.default-dispatcher-18] [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 07:43:08,620 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Set currentTerm=3, votedFor=null 07:43:08,620 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower544: Lagging -3 entries behind leader leader543 and reached 2 (of expected -1) 07:43:08,620 AM [test-akka.actor.default-dispatcher-5] [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 07:43:08,621 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 07:43:08,621 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 1 is present for follower follower544 07:43:08,621 AM [test-akka.actor.default-dispatcher-5] [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]]] 07:43:08,621 AM [test-akka.actor.default-dispatcher-5] [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]]] 07:43:08,621 AM [test-akka.actor.default-dispatcher-5] [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 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [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] 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower544: Lagging 2 entries behind leader leader543 and reached 2 (of expected -1) 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [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 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): follower follower544 last log term 2 conflicts with the leader's 3 - dec next index to 0 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Checking sendAppendEntries for follower follower544: active: true, followerNextIndex: 0, leaderLastIndex: 4, leaderSnapShotIndex: -1 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendAppendEntries: 0 is present for follower follower544 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [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]]] 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [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]]] 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Number of entries to be appended = 5 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: -1 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] is present: existingEntryTerm: 2 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Removing entries from log starting at 1, commitIndex: 2, lastApplied: 2 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Could not remove entries - sending reply to force snapshot 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower544: Lagging 2 entries behind leader leader543 and reached 2 (of expected -1) 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [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 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [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 07:43:08,622 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: lastSequenceNumber prior to capture: -1 07:43:08,623 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: CaptureSnapshotReply received by actor 07:43:08,623 AM [test-akka.actor.default-dispatcher-5] [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]]]] 07:43:08,623 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 07:43:08,623 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): sendInstallSnapshot 07:43:08,623 AM [test-akka.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader543 (Leader): Snapshot 390 bytes, total chunks to send: 1 07:43:08,623 AM [test-akka.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader543 (Leader): Next chunk: total length=390, offset=0, size=390, hashCode=-929342248 07:43:08,623 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): next snapshot chunk size for follower follower544: 390 07:43:08,623 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): InstallSnapshot sent to follower Vector(user, follower544), Chunk: 1/1 07:43:08,623 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: Snapshot success - sequence number: -1 07:43:08,623 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543: SnapshotComplete received 07:43:08,624 AM [test-akka.actor.default-dispatcher-5] [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]]]] 07:43:08,624 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower544: Lagging 2 entries behind leader leader543 and reached 2 (of expected -1) 07:43:08,624 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:43:08,624 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): Snapshot installed from leader: leader543 07:43:08,624 AM [test-akka.actor.default-dispatcher-5] [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]]]] 07:43:08,624 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 07:43:08,624 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Snapshot success - sequence number: -1 07:43:08,624 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Moving last applied index from 2 to 4 07:43:08,625 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: Set currentTerm=3, votedFor=null 07:43:08,625 AM [test-akka.actor.default-dispatcher-5] [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]] 07:43:08,625 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: applySnapshot called 07:43:08,625 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower544, chunkIndex=1, success=true] 07:43:08,625 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower544: SnapshotComplete received 07:43:08,625 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower544, chunkIndex=1, success=true] 07:43:08,625 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader543 (Leader): Snapshot successfully installed on follower follower544 (last chunk 1) - matchIndex set to 4, nextIndex set to 5 07:43:08,666 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart ending 07:43:08,666 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower544-collector546#-570577343] 07:43:08,677 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower544] 07:43:08,677 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader543-collector547#785798526] 07:43:08,678 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader543] 07:43:08,678 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower545-collector548#-1141363565] 07:43:08,678 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower545] 07:43:08,678 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader543-collector549#-126821246] 07:43:08,678 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader543] [INFO] [03/25/2024 07:43:08.679] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 07:43:08,680 AM [test-akka.actor.default-dispatcher-15] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/25/2024 07:43:08.680] [test-akka.actor.default-dispatcher-18] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.89:25520) [INFO] [03/25/2024 07:43:08.681] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - Exiting completed [INFO] [03/25/2024 07:43:08.681] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - Shutting down... 07:43:08,681 AM [test-akka.actor.default-dispatcher-18] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - Exiting completed 07:43:08,681 AM [test-akka.actor.default-dispatcher-18] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - Shutting down... [INFO] [03/25/2024 07:43:08.681] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.89:25520] - Successfully shut down 07:43:08,682 AM [test-akka.actor.default-dispatcher-18] [INFO] Cluster - Cluster Node [akka://test@10.30.171.89:25520] - Successfully shut down [INFO] [03/25/2024 07:43:08.683] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.89:25520/system/remoting-terminator] Shutting down remote daemon. 07:43:08,684 AM [test-akka.actor.default-dispatcher-17] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 07:43:08,684 AM [test-akka.actor.default-dispatcher-17] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/25/2024 07:43:08.684] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.89:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/25/2024 07:43:08.687] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.89:25520/system/remoting-terminator] Remoting shut down. 07:43:08,687 AM [test-akka.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [03/25/2024 07:43:08.688] [test-akka.actor.internal-dispatcher-11] [EventStream] shutting down: StandardOutLogger