[DEBUG] [04/21/2024 11:17:38.856] [main] [EventStream(akka://test)] logger log1-TestEventListener started 11:17:38,857 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [04/21/2024 11:17:38.857] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [04/21/2024 11:17:38.857] [main] [EventStream(akka://test)] Default Loggers started 11:17:38,873 AM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.21:25520] with UID [-393429913710797815] [INFO] [04/21/2024 11:17:38.872] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.21:25520] with UID [-393429913710797815] [INFO] [04/21/2024 11:17:38.873] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Starting up, Akka version [2.6.21] ... 11:17:38,873 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Starting up, Akka version [2.6.21] ... [INFO] [04/21/2024 11:17:38.876] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [04/21/2024 11:17:38.876] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Started up successfully 11:17:38,876 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Registered cluster JMX MBean [akka:type=Cluster] 11:17:38,876 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Started up successfully 11:17:38,885 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerLeaderStateChanges [INFO] [04/21/2024 11:17:38.878] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [04/21/2024 11:17:38.878] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 11:17:38,895 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 11:17:38,895 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [WARN] [04/21/2024 11:17:38.895] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower467]: org.opendaylight.controller.cluster.common.actor.Monitor@2cde62c7 11:17:38,899 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower467 with journal batch size 1000 11:17:38,911 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower467: Set currentTerm=1, votedFor=leader466 11:17:38,911 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower467: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:17:38,916 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower467: Updated server config: isVoting: false, peers: [PeerInfo [id=leader466, address=akka://test/user/leader466, votingState=VOTING]] 11:17:38,916 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower467: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [04/21/2024 11:17:38.994] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader466]: org.opendaylight.controller.cluster.common.actor.Monitor@23cea09b [INFO] [akkaDeadLetter][04/21/2024 11:17:38.995] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader466] 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'. 11:17:38,995 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader466 with journal batch size 1000 11:17:38,995 AM [test-akka.actor.default-dispatcher-15] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader466] 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'. 11:17:38,998 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466: Set currentTerm=1, votedFor=leader466 11:17:38,998 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:17:38,998 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466: Updated server config: isVoting: true, peers: [PeerInfo [id=follower467, address=akka://test/user/follower467, votingState=NON_VOTING]] 11:17:38,998 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader466: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:17:39,460 AM [test-akka.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:39,460 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.21:25520, Removed) 11:17:39,460 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Follower): Received ElectionTimeout - switching to Candidate 11:17:39,460 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Candidate): Election: Candidate has following voting peers: [] 11:17:39,460 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466: Set currentTerm=2, votedFor=leader466 11:17:39,461 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Candidate): Starting new election term 2 11:17:39,461 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:17:39,462 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Candidate): Received ElectionTimeout 11:17:39,463 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Leader): Election: Leader has following peers: [follower467] 11:17:39,463 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Leader): Checking sendAppendEntries for follower follower467: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:17:39,463 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:17:39,463 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower467 (Follower): Term 2 in "AppendEntries [leaderId=leader466, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 11:17:39,463 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower467: Set currentTerm=2, votedFor=null 11:17:39,463 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower467: Last sync leader does not match current leader leader466, need to catch up to -1 11:17:39,463 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower467 updated: matchIndex: -1, nextIndex: 0 11:17:39,463 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Leader): Checking sendAppendEntries for follower follower467: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [04/21/2024 11:17:39.465] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower467] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6aca1e37 [INFO] [akkaDeadLetter][04/21/2024 11:17:39.466] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower467] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower467] was unhandled. [2] 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'. 11:17:39,466 AM [test-akka.actor.default-dispatcher-11] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower467] was unhandled. [2] 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'. 11:17:39,501 AM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:39,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower467: Lagging 0 entries behind leader leader466 and reached -1 (of expected -1) [WARN] [04/21/2024 11:17:39.820] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower467] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@66cc3a86 11:17:39,820 AM [test-akka.actor.default-dispatcher-14] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower467] 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'. [INFO] [akkaDeadLetter][04/21/2024 11:17:39.820] [test-akka.actor.default-dispatcher-14] [akka://test/user/follower467] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower467] 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'. 11:17:39,853 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/roleChangeNotifier469#1207004735] 11:17:39,865 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower467-collector470#153959457] 11:17:39,865 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower467] 11:17:39,865 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader466-collector471#-8177365] 11:17:39,865 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader466] 11:17:39,867 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart starting [WARN] [04/21/2024 11:17:39.869] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower473]: org.opendaylight.controller.cluster.common.actor.Monitor@7f534d9c 11:17:39,869 AM [test-akka.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower473] to Actor[akka://test/user/termination-monitor] was not delivered. [4] 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'. [INFO] [akkaDeadLetter][04/21/2024 11:17:39.869] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower473] to Actor[akka://test/user/termination-monitor] was not delivered. [4] 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'. 11:17:39,870 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower473 with journal batch size 1000 11:17:39,872 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Set currentTerm=1, votedFor=leader472 11:17:39,872 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:17:39,872 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Updated server config: isVoting: false, peers: [PeerInfo [id=leader472, address=akka://test/user/leader472, votingState=VOTING]] 11:17:39,872 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [04/21/2024 11:17:39.971] [test-akka.actor.default-dispatcher-14] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader472]: org.opendaylight.controller.cluster.common.actor.Monitor@67dd258f [INFO] [akkaDeadLetter][04/21/2024 11:17:39.971] [test-akka.actor.default-dispatcher-14] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader472] 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'. 11:17:39,972 AM [test-akka.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader472] 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'. 11:17:39,972 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader472 with journal batch size 1000 11:17:39,975 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Set currentTerm=1, votedFor=leader472 11:17:39,975 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:17:39,975 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Updated server config: isVoting: true, peers: [PeerInfo [id=follower473, address=akka://test/user/follower473, votingState=NON_VOTING]] 11:17:39,975 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:17:40,490 AM [test-akka.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:40,490 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.21:25520, Removed) 11:17:40,490 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Follower): Received ElectionTimeout - switching to Candidate 11:17:40,490 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate): Election: Candidate has following voting peers: [] 11:17:40,490 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Set currentTerm=2, votedFor=leader472 11:17:40,490 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate): Starting new election term 2 11:17:40,490 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:17:40,492 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate): Received ElectionTimeout 11:17:40,492 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Election: Leader has following peers: [follower473] 11:17:40,492 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:17:40,492 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:17:40,492 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Term 2 in "AppendEntries [leaderId=leader472, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 11:17:40,492 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Set currentTerm=2, votedFor=null 11:17:40,492 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower473: Last sync leader does not match current leader leader472, need to catch up to -1 11:17:40,492 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower473 updated: matchIndex: -1, nextIndex: 0 11:17:40,493 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [04/21/2024 11:17:40.493] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower473] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3b064f5 11:17:40,493 AM [test-akka.actor.default-dispatcher-11] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower473] was unhandled. [6] 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][04/21/2024 11:17:40.493] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower473] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower473] was unhandled. [6] 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'. 11:17:40,530 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:40,530 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:40,530 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Setting last applied to 0 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Moving last applied index from -1 to 0 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Applying state for log index 0 data zero 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: applyState called: zero 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): sendAppendEntries: 0 is present for follower follower473 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Sending AppendEntries to follower follower473: AppendEntries [leaderId=leader472, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persisting ApplyJournalEntries with index=0 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:40,531 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): handleAppendEntries: AppendEntries [leaderId=leader472, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:17:40,531 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Number of entries to be appended = 1 11:17:40,531 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:40,531 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Append entry to log zero 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:40,531 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:40,531 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 11:17:40,531 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Log size is now 1 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Setting last applied to 1 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Moving last applied index from 0 to 1 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Applying state for log index 1 data one 11:17:40,531 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Commit index set to 0 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: applyState called: one 11:17:40,531 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower473, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:40,531 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower473: Lagging 0 entries behind leader leader472 and reached 0 (of expected -1) 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): sendAppendEntries: 0 is present for follower follower473 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Sending AppendEntries to follower follower473: AppendEntries [leaderId=leader472, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:40,531 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:17:40,531 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Setting last applied to 0 11:17:40,531 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Moving last applied index from -1 to 0 11:17:40,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persisting ApplyJournalEntries with index=1 11:17:40,531 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Applying state for log index 0 data zero 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower473 updated: matchIndex: 0, nextIndex: 1 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: fakeSnapshot purging log to 0 for term 2 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: applyState called: zero 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): sendAppendEntries: 1 is present for follower follower473 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Sending AppendEntries to follower follower473: AppendEntries [leaderId=leader472, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): handleAppendEntries: AppendEntries [leaderId=leader472, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Number of entries to be appended = 2 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Append entry to log one 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Log size is now 2 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Commit index set to 1 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Setting last applied to 2 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Moving last applied index from 1 to 2 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Applying state for log index 2 data two 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower473, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower473: Lagging 0 entries behind leader leader472 and reached 1 (of expected -1) 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Setting last applied to 1 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Moving last applied index from 0 to 1 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Applying state for log index 1 data one 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: applyState called: two 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): sendAppendEntries: 1 is present for follower follower473 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: applyState called: one 11:17:40,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Sending AppendEntries to follower follower473: AppendEntries [leaderId=leader472, 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]]] 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Persisting ApplyJournalEntries with index=0 11:17:40,532 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower473 updated: matchIndex: 1, nextIndex: 2 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): handleAppendEntries: AppendEntries [leaderId=leader472, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:40,532 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: fakeSnapshot purging log to 1 for term 2 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Number of entries to be appended = 1 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Log size is now 2 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower473, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower473: Lagging 0 entries behind leader leader472 and reached 1 (of expected -1) 11:17:40,532 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: fakeSnapshot purging log to 0 for term 2 11:17:40,532 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): sendAppendEntries: 2 is present for follower follower473 11:17:40,532 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Sending AppendEntries to follower follower473: AppendEntries [leaderId=leader472, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:17:40,532 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Persisting ApplyJournalEntries with index=1 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): handleAppendEntries: AppendEntries [leaderId=leader472, 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]]] 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Number of entries to be appended = 2 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Append entry to log two 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:17:40,533 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persisting ApplyJournalEntries with index=2 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Log size is now 2 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Commit index set to 2 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower473, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower473: Lagging 0 entries behind leader leader472 and reached 2 (of expected -1) 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:17:40,533 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Setting last applied to 2 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Moving last applied index from 1 to 2 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Applying state for log index 2 data two 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: applyState called: two 11:17:40,533 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): sendAppendEntries: 2 is present for follower follower473 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): handleAppendEntries: AppendEntries [leaderId=leader472, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:17:40,533 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower473 updated: matchIndex: 2, nextIndex: 3 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Number of entries to be appended = 1 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Log size is now 2 11:17:40,533 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower473, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower473: Lagging 0 entries behind leader leader472 and reached 2 (of expected -1) 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: fakeSnapshot purging log to 1 for term 2 11:17:40,533 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Persisting ApplyJournalEntries with index=2 [WARN] [04/21/2024 11:17:40.533] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower473] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@78b40e48 [INFO] [akkaDeadLetter][04/21/2024 11:17:40.534] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower473] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower473] 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'. 11:17:40,534 AM [test-akka.actor.default-dispatcher-12] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower473] 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'. 11:17:40,596 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader472 with journal batch size 1000 [WARN] [04/21/2024 11:17:40.596] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader472]: org.opendaylight.controller.cluster.common.actor.Monitor@2773ddba [INFO] [akkaDeadLetter][04/21/2024 11:17:40.596] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader472] to Actor[akka://test/user/termination-monitor] was not delivered. [8] 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'. 11:17:40,596 AM [test-akka.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader472] to Actor[akka://test/user/termination-monitor] was not delivered. [8] 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'. 11:17:40,599 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Set currentTerm=1, votedFor=leader472 11:17:40,599 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:17:40,599 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Updated server config: isVoting: true, peers: [PeerInfo [id=follower473, address=akka://test/user/follower473, votingState=NON_VOTING]] 11:17:40,599 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Set currentTerm=2, votedFor=leader472 11:17:40,599 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:17:41,110 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.21:25520, Removed) 11:17:41,110 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Follower): Received ElectionTimeout - switching to Candidate 11:17:41,110 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate): Election: Candidate has following voting peers: [] 11:17:41,110 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Set currentTerm=3, votedFor=leader472 11:17:41,110 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate): Starting new election term 3 11:17:41,110 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:17:41,111 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate): Received ElectionTimeout 11:17:41,112 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Election: Leader has following peers: [follower473] 11:17:41,112 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:17:41,112 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:17:41,147 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:41,147 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:41,147 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 11:17:41,147 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Setting last applied to 0 11:17:41,147 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Moving last applied index from -1 to 0 11:17:41,147 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Applying state for log index 0 data zero-1 11:17:41,147 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: applyState called: zero-1 11:17:41,148 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:17:41,148 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persisting ApplyJournalEntries with index=0 11:17:41,148 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:41,148 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:17:41,148 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:17:41,148 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 11:17:41,148 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Setting last applied to 1 11:17:41,148 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Moving last applied index from 0 to 1 11:17:41,148 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Applying state for log index 1 data one-1 11:17:41,148 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: applyState called: one-1 11:17:41,148 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:17:41,148 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persisting ApplyJournalEntries with index=1 11:17:41,148 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:17:41,229 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Term 3 in "AppendEntries [leaderId=leader472, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 11:17:41,229 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Set currentTerm=3, votedFor=null 11:17:41,230 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower473: Lagging -3 entries behind leader leader472 and reached 2 (of expected -1) 11:17:41,230 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): handleAppendEntriesReply: follower follower473 lastIndex 2 is ahead of our lastIndex 1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 11:17:41,230 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: 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 follower473 11:17:41,230 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: lastSequenceNumber prior to capture: -1 11:17:41,232 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: CaptureSnapshotReply received by actor 11:17:41,234 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: 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=leader472, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower473, isVoting=false], ServerInfo[peerId=leader472, isVoting=true]]]] 11:17:41,235 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:17:41,235 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): sendInstallSnapshot 11:17:41,235 AM [test-akka.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader472 (Leader): Snapshot 333 bytes, total chunks to send: 1 11:17:41,235 AM [test-akka.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader472 (Leader): Next chunk: total length=333, offset=0, size=333, hashCode=878051978 11:17:41,235 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): next snapshot chunk size for follower follower473: 333 11:17:41,235 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): InstallSnapshot sent to follower Vector(user, follower473), Chunk: 1/1 11:17:41,235 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Snapshot success - sequence number: -1 11:17:41,235 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: SnapshotComplete received 11:17:41,235 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader472, lastIncludedIndex=1, lastIncludedTerm=3, datasize=333, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower473, isVoting=false], ServerInfo[peerId=leader472, isVoting=true]]]] 11:17:41,235 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower473: Lagging -1 entries behind leader leader472 and reached 2 (of expected -1) 11:17:41,235 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:17:41,235 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Snapshot installed from leader: leader472 11:17:41,236 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: 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=follower473, isVoting=false], ServerInfo[peerId=leader472, isVoting=true]]]] 11:17:41,236 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:17:41,236 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Snapshot success - sequence number: -1 11:17:41,236 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Moving last applied index from 2 to 1 11:17:41,236 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Set currentTerm=3, votedFor=null 11:17:41,236 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Updated server config: isVoting: false, peers: [PeerInfo [id=leader472, address=akka://test/user/leader472, votingState=VOTING]] 11:17:41,236 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: applySnapshot called 11:17:41,237 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower473, chunkIndex=1, success=true] 11:17:41,237 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: SnapshotComplete received 11:17:41,237 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower473, chunkIndex=1, success=true] 11:17:41,237 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Snapshot successfully installed on follower follower473 (last chunk 1) - matchIndex set to 1, nextIndex set to 2 11:17:41,237 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: fakeSnapshot purging log to 0 for term 3 11:17:41,248 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart ending 11:17:41,248 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower473-collector475#1011262704] 11:17:41,259 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower473] 11:17:41,259 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader472-collector476#-1819829534] 11:17:41,259 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader472] 11:17:41,260 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader472-collector477#-1069955055] 11:17:41,261 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader472] 11:17:41,262 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart starting [WARN] [04/21/2024 11:17:41.265] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower479]: org.opendaylight.controller.cluster.common.actor.Monitor@12f1a094 11:17:41,265 AM [test-akka.actor.default-dispatcher-13] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower479] 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'. [INFO] [akkaDeadLetter][04/21/2024 11:17:41.265] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower479] 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'. 11:17:41,266 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower479 with journal batch size 1000 11:17:41,267 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Set currentTerm=1, votedFor=leader478 11:17:41,267 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:17:41,268 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Updated server config: isVoting: false, peers: [PeerInfo [id=leader478, address=akka://test/user/leader478, votingState=VOTING]] 11:17:41,268 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [04/21/2024 11:17:41.367] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader478]: org.opendaylight.controller.cluster.common.actor.Monitor@773d92c5 11:17:41,368 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader478 with journal batch size 1000 [INFO] [akkaDeadLetter][04/21/2024 11:17:41.368] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader478] 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'. 11:17:41,368 AM [test-akka.actor.default-dispatcher-13] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader478] 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'. 11:17:41,375 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Set currentTerm=1, votedFor=leader478 11:17:41,375 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:17:41,375 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Updated server config: isVoting: true, peers: [PeerInfo [id=follower479, address=akka://test/user/follower479, votingState=NON_VOTING]] 11:17:41,375 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:17:41,830 AM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:41,830 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.21:25520, Removed) 11:17:41,830 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Follower): Received ElectionTimeout - switching to Candidate 11:17:41,830 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate): Election: Candidate has following voting peers: [] 11:17:41,830 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Set currentTerm=2, votedFor=leader478 11:17:41,830 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate): Starting new election term 2 11:17:41,830 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:17:41,831 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate): Received ElectionTimeout 11:17:41,831 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Election: Leader has following peers: [follower479] 11:17:41,832 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:17:41,832 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:17:41,832 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Term 2 in "AppendEntries [leaderId=leader478, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 11:17:41,832 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Set currentTerm=2, votedFor=null 11:17:41,832 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower479: Last sync leader does not match current leader leader478, need to catch up to -1 11:17:41,832 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower479 updated: matchIndex: -1, nextIndex: 0 11:17:41,832 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [04/21/2024 11:17:41.833] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower479] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@b00e5bf 11:17:41,870 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:41,870 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:41,870 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 11:17:41,870 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Setting last applied to 0 11:17:41,870 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Moving last applied index from -1 to 0 11:17:41,870 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Applying state for log index 0 data zero 11:17:41,870 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: applyState called: zero 11:17:41,870 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:17:41,870 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendAppendEntries: 0 is present for follower follower479 11:17:41,870 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Sending AppendEntries to follower follower479: AppendEntries [leaderId=leader478, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:17:41,870 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persisting ApplyJournalEntries with index=0 11:17:41,870 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:41,870 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): handleAppendEntries: AppendEntries [leaderId=leader478, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Number of entries to be appended = 1 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Append entry to log zero 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Setting last applied to 1 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Moving last applied index from 0 to 1 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Applying state for log index 1 data one 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Log size is now 1 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Commit index set to 0 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: applyState called: one 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower479, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendAppendEntries: 0 is present for follower follower479 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower479: Lagging 0 entries behind leader leader478 and reached 0 (of expected -1) 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Sending AppendEntries to follower follower479: AppendEntries [leaderId=leader478, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Setting last applied to 0 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Moving last applied index from -1 to 0 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Applying state for log index 0 data zero 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persisting ApplyJournalEntries with index=1 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower479 updated: matchIndex: 0, nextIndex: 1 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: fakeSnapshot purging log to 0 for term 2 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: applyState called: zero 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendAppendEntries: 1 is present for follower follower479 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Sending AppendEntries to follower follower479: AppendEntries [leaderId=leader478, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): handleAppendEntries: AppendEntries [leaderId=leader478, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Number of entries to be appended = 2 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Append entry to log one 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Setting last applied to 2 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Log size is now 2 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Moving last applied index from 1 to 2 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Commit index set to 1 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Applying state for log index 2 data two 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower479, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower479: Lagging 0 entries behind leader leader478 and reached 1 (of expected -1) 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Setting last applied to 1 11:17:41,871 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Moving last applied index from 0 to 1 11:17:41,871 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: applyState called: two 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Applying state for log index 1 data one 11:17:41,872 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 11:17:41,872 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendAppendEntries: 1 is present for follower follower479 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: applyState called: one 11:17:41,872 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Sending AppendEntries to follower follower479: AppendEntries [leaderId=leader478, 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]]] 11:17:41,872 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower479 updated: matchIndex: 1, nextIndex: 2 11:17:41,872 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: fakeSnapshot purging log to 1 for term 2 11:17:41,872 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:17:41,872 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendAppendEntries: 2 is present for follower follower479 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Persisting ApplyJournalEntries with index=0 11:17:41,872 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Sending AppendEntries to follower follower479: AppendEntries [leaderId=leader478, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): handleAppendEntries: AppendEntries [leaderId=leader478, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:41,872 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persisting ApplyJournalEntries with index=2 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Number of entries to be appended = 1 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 11:17:41,872 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Log size is now 2 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower479, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower479: Lagging 0 entries behind leader leader478 and reached 1 (of expected -1) 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: fakeSnapshot purging log to 0 for term 2 11:17:41,872 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendAppendEntries: 2 is present for follower follower479 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Persisting ApplyJournalEntries with index=1 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): handleAppendEntries: AppendEntries [leaderId=leader478, 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]]] 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Number of entries to be appended = 2 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Append entry to log two 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Log size is now 2 11:17:41,872 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Commit index set to 2 11:17:41,873 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower479, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:41,873 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower479: Lagging 0 entries behind leader leader478 and reached 2 (of expected -1) 11:17:41,873 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:17:41,873 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Setting last applied to 2 11:17:41,873 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Moving last applied index from 1 to 2 11:17:41,873 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower479 updated: matchIndex: 2, nextIndex: 3 11:17:41,873 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Applying state for log index 2 data two 11:17:41,873 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:17:41,873 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: applyState called: two 11:17:41,873 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): handleAppendEntries: AppendEntries [leaderId=leader478, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:17:41,873 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Number of entries to be appended = 1 11:17:41,873 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 11:17:41,873 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 11:17:41,873 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Log size is now 2 11:17:41,873 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower479, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:41,873 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower479: Lagging 0 entries behind leader leader478 and reached 2 (of expected -1) 11:17:41,873 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: fakeSnapshot purging log to 1 for term 2 11:17:41,873 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Persisting ApplyJournalEntries with index=2 [WARN] [04/21/2024 11:17:41.873] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower479] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@53934507 [WARN] [04/21/2024 11:17:41.934] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader478]: org.opendaylight.controller.cluster.common.actor.Monitor@4f76851f 11:17:41,934 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader478 with journal batch size 1000 11:17:41,939 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Set currentTerm=1, votedFor=leader478 11:17:41,939 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:17:41,939 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Updated server config: isVoting: true, peers: [PeerInfo [id=follower479, address=akka://test/user/follower479, votingState=NON_VOTING]] 11:17:41,939 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Set currentTerm=2, votedFor=leader478 11:17:41,939 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:17:42,430 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.21:25520, Removed) 11:17:42,430 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Follower): Received ElectionTimeout - switching to Candidate 11:17:42,430 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate): Election: Candidate has following voting peers: [] 11:17:42,430 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Set currentTerm=3, votedFor=leader478 11:17:42,430 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate): Starting new election term 3 11:17:42,430 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:17:42,431 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate): Received ElectionTimeout 11:17:42,431 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Election: Leader has following peers: [follower479] 11:17:42,432 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:17:42,432 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:17:42,432 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Term 3 in "AppendEntries [leaderId=leader478, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 11:17:42,432 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Set currentTerm=3, votedFor=null 11:17:42,432 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower479: Lagging -3 entries behind leader leader478 and reached 2 (of expected -1) 11:17:42,432 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): handleAppendEntriesReply: follower follower479 lastIndex 2 is ahead of our lastIndex -1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 11:17:42,432 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 11:17:42,432 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: 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 follower479 11:17:42,432 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: lastSequenceNumber prior to capture: -1 11:17:42,433 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: CaptureSnapshotReply received by actor 11:17:42,433 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=3, electionVotedFor=leader478, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower479, isVoting=false], ServerInfo[peerId=leader478, isVoting=true]]]] 11:17:42,433 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:17:42,433 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendInstallSnapshot 11:17:42,433 AM [test-akka.actor.default-dispatcher-13] [DEBUG] LeaderInstallSnapshotState - leader478 (Leader): Snapshot 171 bytes, total chunks to send: 1 11:17:42,433 AM [test-akka.actor.default-dispatcher-13] [DEBUG] LeaderInstallSnapshotState - leader478 (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 11:17:42,433 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): next snapshot chunk size for follower follower479: 171 11:17:42,433 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): InstallSnapshot sent to follower Vector(user, follower479), Chunk: 1/1 11:17:42,433 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Snapshot success - sequence number: -1 11:17:42,433 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: SnapshotComplete received 11:17:42,434 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader478, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower479, isVoting=false], ServerInfo[peerId=leader478, isVoting=true]]]] 11:17:42,434 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower479: Lagging -3 entries behind leader leader478 and reached 2 (of expected -1) 11:17:42,434 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:17:42,434 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Snapshot installed from leader: leader478 11:17:42,435 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: 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=follower479, isVoting=false], ServerInfo[peerId=leader478, isVoting=true]]]] 11:17:42,435 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:17:42,435 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Snapshot success - sequence number: -1 11:17:42,435 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Moving last applied index from 2 to -1 11:17:42,435 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Set currentTerm=3, votedFor=null 11:17:42,435 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Updated server config: isVoting: false, peers: [PeerInfo [id=leader478, address=akka://test/user/leader478, votingState=VOTING]] 11:17:42,435 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: applySnapshot called 11:17:42,435 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower479, chunkIndex=1, success=true] 11:17:42,435 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: SnapshotComplete received 11:17:42,435 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower479, chunkIndex=1, success=true] 11:17:42,435 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Snapshot successfully installed on follower follower479 (last chunk 1) - matchIndex set to -1, nextIndex set to 0 11:17:42,443 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:42,443 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:42,444 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 11:17:42,444 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Setting last applied to 0 11:17:42,444 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Moving last applied index from -1 to 0 11:17:42,444 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Applying state for log index 0 data zero-1 11:17:42,444 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: applyState called: zero-1 11:17:42,444 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:17:42,444 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendAppendEntries: 0 is present for follower follower479 11:17:42,444 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Sending AppendEntries to follower follower479: AppendEntries [leaderId=leader478, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): handleAppendEntries: AppendEntries [leaderId=leader478, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Number of entries to be appended = 1 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:17:42,444 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persisting ApplyJournalEntries with index=0 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Append entry to log zero-1 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:42,444 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Log size is now 1 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Commit index set to 0 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower479, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower479: Lagging 0 entries behind leader leader478 and reached 0 (of expected -1) 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Setting last applied to 0 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Moving last applied index from -1 to 0 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Applying state for log index 0 data zero-1 11:17:42,444 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower479 updated: matchIndex: 0, nextIndex: 1 11:17:42,444 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: applyState called: zero-1 11:17:42,444 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Persisting ApplyJournalEntries with index=0 11:17:42,494 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart ending 11:17:42,494 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower479-collector481#1912318063] 11:17:42,505 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower479] 11:17:42,505 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader478-collector482#562067801] 11:17:42,506 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader478] 11:17:42,506 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader478-collector483#-846857048] 11:17:42,506 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader478] 11:17:42,507 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart starting [WARN] [04/21/2024 11:17:42.509] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower485]: org.opendaylight.controller.cluster.common.actor.Monitor@54adace0 11:17:42,510 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower485 with journal batch size 1000 11:17:42,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Set currentTerm=1, votedFor=leader484 11:17:42,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:17:42,514 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Updated server config: isVoting: false, peers: [PeerInfo [id=leader484, address=akka://test/user/leader484, votingState=VOTING]] 11:17:42,514 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [04/21/2024 11:17:42.611] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader484]: org.opendaylight.controller.cluster.common.actor.Monitor@171b2a5d 11:17:42,612 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader484 with journal batch size 1000 11:17:42,614 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Set currentTerm=1, votedFor=leader484 11:17:42,614 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:17:42,614 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Updated server config: isVoting: true, peers: [PeerInfo [id=follower485, address=akka://test/user/follower485, votingState=NON_VOTING]] 11:17:42,614 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:17:43,130 AM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:43,130 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.21:25520, Removed) 11:17:43,130 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Follower): Received ElectionTimeout - switching to Candidate 11:17:43,130 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate): Election: Candidate has following voting peers: [] 11:17:43,130 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Set currentTerm=2, votedFor=leader484 11:17:43,130 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate): Starting new election term 2 11:17:43,130 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:17:43,132 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate): Received ElectionTimeout 11:17:43,132 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Election: Leader has following peers: [follower485] 11:17:43,132 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:17:43,132 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:17:43,132 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Term 2 in "AppendEntries [leaderId=leader484, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 11:17:43,132 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Set currentTerm=2, votedFor=null 11:17:43,132 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower485: Last sync leader does not match current leader leader484, need to catch up to -1 11:17:43,132 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower485 updated: matchIndex: -1, nextIndex: 0 11:17:43,133 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [04/21/2024 11:17:43.133] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower485] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@401646d0 11:17:43,165 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:43,165 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:43,165 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 11:17:43,165 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Setting last applied to 0 11:17:43,165 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Moving last applied index from -1 to 0 11:17:43,165 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Applying state for log index 0 data zero 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: applyState called: zero 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): sendAppendEntries: 0 is present for follower follower485 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Sending AppendEntries to follower follower485: AppendEntries [leaderId=leader484, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persisting ApplyJournalEntries with index=0 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:43,166 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): handleAppendEntries: AppendEntries [leaderId=leader484, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:43,166 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Number of entries to be appended = 1 11:17:43,166 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 11:17:43,166 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Append entry to log zero 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Setting last applied to 1 11:17:43,166 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Moving last applied index from 0 to 1 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Applying state for log index 1 data one 11:17:43,166 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:43,166 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Log size is now 1 11:17:43,166 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Commit index set to 0 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: applyState called: one 11:17:43,166 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower485, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): sendAppendEntries: 0 is present for follower follower485 11:17:43,166 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower485: Lagging 0 entries behind leader leader484 and reached 0 (of expected -1) 11:17:43,166 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Sending AppendEntries to follower follower485: AppendEntries [leaderId=leader484, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:43,166 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Setting last applied to 0 11:17:43,166 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Moving last applied index from -1 to 0 11:17:43,166 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Applying state for log index 0 data zero 11:17:43,166 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persisting ApplyJournalEntries with index=1 11:17:43,167 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower485 updated: matchIndex: 0, nextIndex: 1 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: applyState called: zero 11:17:43,167 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: fakeSnapshot purging log to 0 for term 2 11:17:43,167 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:17:43,167 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): sendAppendEntries: 1 is present for follower follower485 11:17:43,167 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Sending AppendEntries to follower follower485: AppendEntries [leaderId=leader484, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): handleAppendEntries: AppendEntries [leaderId=leader484, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Number of entries to be appended = 2 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 11:17:43,167 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Append entry to log one 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Log size is now 2 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Commit index set to 1 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower485, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower485: Lagging 0 entries behind leader leader484 and reached 1 (of expected -1) 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Setting last applied to 1 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Moving last applied index from 0 to 1 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Applying state for log index 1 data one 11:17:43,167 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower485 updated: matchIndex: 1, nextIndex: 2 11:17:43,167 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: applyState called: one 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Persisting ApplyJournalEntries with index=0 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): handleAppendEntries: AppendEntries [leaderId=leader484, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Number of entries to be appended = 1 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Log size is now 2 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower485, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower485: Lagging 0 entries behind leader leader484 and reached 1 (of expected -1) 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: fakeSnapshot purging log to 0 for term 2 11:17:43,167 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Persisting ApplyJournalEntries with index=1 [WARN] [04/21/2024 11:17:43.168] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower485] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5dfcf007 [WARN] [04/21/2024 11:17:43.230] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader484]: org.opendaylight.controller.cluster.common.actor.Monitor@299ee2c3 11:17:43,231 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader484 with journal batch size 1000 11:17:43,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Set currentTerm=1, votedFor=leader484 11:17:43,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:17:43,234 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Updated server config: isVoting: true, peers: [PeerInfo [id=follower485, address=akka://test/user/follower485, votingState=NON_VOTING]] 11:17:43,234 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Set currentTerm=2, votedFor=leader484 11:17:43,234 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:17:43,710 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.21:25520, Removed) 11:17:43,710 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Follower): Received ElectionTimeout - switching to Candidate 11:17:43,710 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate): Election: Candidate has following voting peers: [] 11:17:43,710 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Set currentTerm=3, votedFor=leader484 11:17:43,710 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate): Starting new election term 3 11:17:43,710 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:17:43,712 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate): Received ElectionTimeout 11:17:43,713 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Election: Leader has following peers: [follower485] 11:17:43,713 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:17:43,713 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Setting last applied to 0 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Moving last applied index from -1 to 0 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Applying state for log index 0 data zero-1 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: applyState called: zero-1 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persisting ApplyJournalEntries with index=0 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Setting last applied to 1 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Moving last applied index from 0 to 1 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Applying state for log index 1 data one-1 11:17:43,738 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: applyState called: one-1 11:17:43,739 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:17:43,739 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persisting ApplyJournalEntries with index=1 11:17:43,739 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:17:43,739 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:17:43,739 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:17:43,739 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 11:17:43,739 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Setting last applied to 2 11:17:43,739 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Moving last applied index from 1 to 2 11:17:43,739 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Applying state for log index 2 data two-1 11:17:43,739 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: applyState called: two-1 11:17:43,739 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:17:43,739 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persisting ApplyJournalEntries with index=2 11:17:43,739 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:17:43,830 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Term 3 in "AppendEntries [leaderId=leader484, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 11:17:43,830 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Set currentTerm=3, votedFor=null 11:17:43,830 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower485: Lagging -2 entries behind leader leader484 and reached 1 (of expected -1) 11:17:43,830 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): handleAppendEntriesReply: follower follower485 last log term 2 for index 1 conflicts with the leader's 3 - set the follower's next index to 0 11:17:43,830 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:17:43,830 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): sendAppendEntries: 0 is present for follower follower485 11:17:43,830 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Sending AppendEntries to follower follower485: AppendEntries [leaderId=leader484, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 11:17:43,831 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): handleAppendEntries: AppendEntries [leaderId=leader484, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 11:17:43,831 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Number of entries to be appended = 3 11:17:43,831 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: 2 11:17:43,831 AM [test-akka.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:43,831 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Removing entries from log starting at 0, commitIndex: 1, lastApplied: 1 11:17:43,831 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Could not remove entries - sending reply to force snapshot 11:17:43,831 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower485: Lagging 1 entries behind leader leader484 and reached 1 (of expected -1) 11:17:43,831 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower485, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 11:17:43,831 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: 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 follower485 11:17:43,831 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: lastSequenceNumber prior to capture: -1 11:17:43,832 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: CaptureSnapshotReply received by actor 11:17:43,832 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: 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=leader484, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower485, isVoting=false], ServerInfo[peerId=leader484, isVoting=true]]]] 11:17:43,832 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:17:43,832 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): sendInstallSnapshot 11:17:43,832 AM [test-akka.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader484 (Leader): Snapshot 351 bytes, total chunks to send: 1 11:17:43,832 AM [test-akka.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader484 (Leader): Next chunk: total length=351, offset=0, size=351, hashCode=236499276 11:17:43,832 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): next snapshot chunk size for follower follower485: 351 11:17:43,832 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): InstallSnapshot sent to follower Vector(user, follower485), Chunk: 1/1 11:17:43,832 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Snapshot success - sequence number: -1 11:17:43,832 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: SnapshotComplete received 11:17:43,832 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader484, lastIncludedIndex=2, lastIncludedTerm=3, datasize=351, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower485, isVoting=false], ServerInfo[peerId=leader484, isVoting=true]]]] 11:17:43,832 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower485: Lagging 1 entries behind leader leader484 and reached 1 (of expected -1) 11:17:43,832 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:17:43,833 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Snapshot installed from leader: leader484 11:17:43,834 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: 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=follower485, isVoting=false], ServerInfo[peerId=leader484, isVoting=true]]]] 11:17:43,834 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:17:43,834 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Snapshot success - sequence number: -1 11:17:43,834 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Moving last applied index from 1 to 2 11:17:43,834 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Set currentTerm=3, votedFor=null 11:17:43,834 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Updated server config: isVoting: false, peers: [PeerInfo [id=leader484, address=akka://test/user/leader484, votingState=VOTING]] 11:17:43,834 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: applySnapshot called 11:17:43,834 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower485, chunkIndex=1, success=true] 11:17:43,834 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: SnapshotComplete received 11:17:43,834 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower485, chunkIndex=1, success=true] 11:17:43,834 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Snapshot successfully installed on follower follower485 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 11:17:43,834 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: fakeSnapshot purging log to 1 for term 3 11:17:43,838 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart ending 11:17:43,838 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower485-collector487#151712850] 11:17:43,849 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower485] 11:17:43,850 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader484-collector488#1593241233] 11:17:43,850 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader484] 11:17:43,850 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader484-collector489#1751335524] 11:17:43,850 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader484] 11:17:43,851 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart starting [WARN] [04/21/2024 11:17:43.853] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower491]: org.opendaylight.controller.cluster.common.actor.Monitor@de2f56e 11:17:43,854 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower491 with journal batch size 1000 11:17:43,857 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Set currentTerm=1, votedFor=leader490 11:17:43,857 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:17:43,857 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Updated server config: isVoting: false, peers: [PeerInfo [id=leader490, address=akka://test/user/leader490, votingState=VOTING]] 11:17:43,857 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [04/21/2024 11:17:43.955] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader490]: org.opendaylight.controller.cluster.common.actor.Monitor@514a61ef 11:17:43,956 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader490 with journal batch size 1000 11:17:43,959 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Set currentTerm=1, votedFor=leader490 11:17:43,959 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:17:43,959 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Updated server config: isVoting: true, peers: [PeerInfo [id=follower491, address=akka://test/user/follower491, votingState=NON_VOTING]] 11:17:43,959 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:17:44,450 AM [test-akka.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:44,450 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.21:25520, Removed) 11:17:44,450 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Follower): Received ElectionTimeout - switching to Candidate 11:17:44,450 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): Election: Candidate has following voting peers: [] 11:17:44,450 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Set currentTerm=2, votedFor=leader490 11:17:44,450 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): Starting new election term 2 11:17:44,450 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:17:44,451 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): Received ElectionTimeout 11:17:44,452 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Election: Leader has following peers: [follower491] 11:17:44,452 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:17:44,452 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:17:44,452 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Term 2 in "AppendEntries [leaderId=leader490, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 11:17:44,452 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Set currentTerm=2, votedFor=null 11:17:44,452 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower491: Last sync leader does not match current leader leader490, need to catch up to -1 11:17:44,452 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower491 updated: matchIndex: -1, nextIndex: 0 11:17:44,452 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [04/21/2024 11:17:44.453] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower491] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@46a0fd9e 11:17:44,458 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:44,458 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:44,458 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 11:17:44,458 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 0 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from -1 to 0 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 0 data zero 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: zero 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 0 is present for follower follower491 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Sending AppendEntries to follower follower491: AppendEntries [leaderId=leader490, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persisting ApplyJournalEntries with index=0 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): handleAppendEntries: AppendEntries [leaderId=leader490, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Number of entries to be appended = 1 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Append entry to log zero 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 1 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from 0 to 1 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 1 data one 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Log size is now 1 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Commit index set to 0 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: one 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower491, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 0 is present for follower follower491 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower491: Lagging 0 entries behind leader leader490 and reached 0 (of expected -1) 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Sending AppendEntries to follower follower491: AppendEntries [leaderId=leader490, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Setting last applied to 0 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Moving last applied index from -1 to 0 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Applying state for log index 0 data zero 11:17:44,459 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persisting ApplyJournalEntries with index=1 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: applyState called: zero 11:17:44,459 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower491 updated: matchIndex: 0, nextIndex: 1 11:17:44,459 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: fakeSnapshot purging log to 0 for term 2 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): handleAppendEntries: AppendEntries [leaderId=leader490, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:44,459 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Number of entries to be appended = 2 11:17:44,459 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 1 is present for follower follower491 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Append entry to log one 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:44,459 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Sending AppendEntries to follower follower491: AppendEntries [leaderId=leader490, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Log size is now 2 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Commit index set to 1 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower491, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:44,459 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower491: Lagging 0 entries behind leader leader490 and reached 1 (of expected -1) 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Setting last applied to 1 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Moving last applied index from 0 to 1 11:17:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Applying state for log index 1 data one 11:17:44,459 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower491 updated: matchIndex: 1, nextIndex: 2 11:17:44,460 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:17:44,460 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: applyState called: one 11:17:44,460 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:17:44,460 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:17:44,460 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Persisting ApplyJournalEntries with index=0 11:17:44,460 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 11:17:44,460 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): handleAppendEntries: AppendEntries [leaderId=leader490, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:17:44,460 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Number of entries to be appended = 1 11:17:44,460 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 11:17:44,460 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:17:44,460 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Log size is now 2 11:17:44,460 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower491, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:44,460 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower491: Lagging 0 entries behind leader leader490 and reached 1 (of expected -1) 11:17:44,460 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: fakeSnapshot purging log to 0 for term 2 11:17:44,460 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Persisting ApplyJournalEntries with index=1 [WARN] [04/21/2024 11:17:44.460] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower491] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@43ab3636 11:17:44,460 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 2 11:17:44,460 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from 1 to 2 11:17:44,460 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 2 data two 11:17:44,460 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: two 11:17:44,460 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 11:17:44,460 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 2 is present for follower follower491 11:17:44,460 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Sending AppendEntries to follower follower491: AppendEntries [leaderId=leader490, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:17:44,460 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: fakeSnapshot purging log to 1 for term 2 11:17:44,460 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): handleAppendEntries: AppendEntries [leaderId=leader490, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:17:44,461 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 2 is present for follower follower491 11:17:44,461 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Number of entries to be appended = 1 11:17:44,461 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:17:44,461 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Append entry to log two 11:17:44,461 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persisting ApplyJournalEntries with index=2 11:17:44,461 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:17:44,461 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:17:44,461 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:17:44,461 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Log size is now 2 11:17:44,461 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Commit index set to 2 11:17:44,461 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower491, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:44,461 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower491: Lagging 0 entries behind leader leader490 and reached 2 (of expected -1) 11:17:44,461 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:17:44,461 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower491 updated: matchIndex: 2, nextIndex: 3 11:17:44,461 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Setting last applied to 2 11:17:44,461 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Moving last applied index from 1 to 2 11:17:44,461 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:17:44,461 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Applying state for log index 2 data two 11:17:44,461 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: applyState called: two 11:17:44,461 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Persisting ApplyJournalEntries with index=2 11:17:44,570 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower491: Lagging 0 entries behind leader leader490 and reached 2 (of expected -1) 11:17:44,570 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: fakeSnapshot purging log to 1 for term 2 [WARN] [04/21/2024 11:17:44.625] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower492]: org.opendaylight.controller.cluster.common.actor.Monitor@97a607b 11:17:44,626 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower492 with journal batch size 1000 11:17:44,629 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Received ReplicatedLogEntry for recovery: index: 0, size: 174 11:17:44,629 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Updated server config: isVoting: true, peers: [PeerInfo [id=follower491, address=akka://test/user/follower491, votingState=NON_VOTING], PeerInfo [id=leader490, address=akka://test/user/leader490, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 11:17:44,629 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [04/21/2024 11:17:44.726] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader490]: org.opendaylight.controller.cluster.common.actor.Monitor@1703077a 11:17:44,727 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader490 with journal batch size 1000 11:17:44,729 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Set currentTerm=2, votedFor=leader490 11:17:44,730 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Received ReplicatedLogEntry for recovery: index: 0, size: 174 11:17:44,730 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Updated server config: isVoting: true, peers: [PeerInfo [id=follower492, address=akka://test/user/follower492, votingState=VOTING], PeerInfo [id=follower491, address=akka://test/user/follower491, votingState=NON_VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 11:17:44,730 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:17:45,190 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.21:25520, Removed) 11:17:45,190 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Follower): Received ElectionTimeout - switching to Candidate 11:17:45,190 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): Election: Candidate has following voting peers: [follower492] 11:17:45,190 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Set currentTerm=3, votedFor=leader490 11:17:45,190 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): Starting new election term 3 11:17:45,190 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): Sending RequestVote [term=3, candidateId=leader490, lastLogIndex=-1, lastLogTerm=-1] to peer follower492 11:17:45,190 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:17:45,191 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 11:17:45,191 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Cluster state: [] 11:17:45,191 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=leader490, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 11:17:45,191 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Term 3 in "RequestVote [term=3, candidateId=leader490, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 11:17:45,191 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Set currentTerm=3, votedFor=null 11:17:45,191 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): In requestVote: RequestVote [term=3, candidateId=leader490, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 3, votedFor: null, lastIndex: -1, lastTerm: -1 11:17:45,191 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Set currentTerm=3, votedFor=leader490 11:17:45,191 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 11:17:45,192 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 11:17:45,192 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 11:17:45,192 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Election: Leader has following peers: [follower492, follower491, downPeer] 11:17:45,192 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:17:45,192 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:17:45,192 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:17:45,192 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower492: Last sync leader does not match current leader leader490, need to catch up to -1 11:17:45,192 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower492 updated: matchIndex: -1, nextIndex: 0 11:17:45,192 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [04/21/2024 11:17:45.192] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower492] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@89d1b6e 11:17:45,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:45,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:45,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 11:17:45,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:17:45,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 0 is present for follower follower492 11:17:45,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Sending AppendEntries to follower follower492: AppendEntries [leaderId=leader490, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 11:17:45,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:17:45,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:45,234 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): handleAppendEntries: AppendEntries [leaderId=leader490, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 11:17:45,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:17:45,234 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Number of entries to be appended = 1 11:17:45,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:17:45,234 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:17:45,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 11:17:45,234 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Append entry to log zero-1 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 0 is present for follower follower492 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Log size is now 1 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower492, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower492: Lagging 0 entries behind leader leader490 and reached -1 (of expected -1) 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 0 is present for follower follower492 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower492 updated: matchIndex: 0, nextIndex: 1 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 0 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from -1 to 0 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 0 data zero-1 [WARN] [04/21/2024 11:17:45.235] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower492] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@49904bee 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: zero-1 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 1 is present for follower follower492 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Sending AppendEntries to follower follower492: AppendEntries [leaderId=leader490, 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], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persisting ApplyJournalEntries with index=0 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): handleAppendEntries: AppendEntries [leaderId=leader490, 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], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Number of entries to be appended = 2 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=three-1}, logIndex: 3, isSendImmediate: true 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Append entry to log one-1 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 1, leaderLastIndex: 3, leaderSnapShotIndex: -1 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 1 is present for follower follower492 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Append entry to log two-1 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Log size is now 3 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Commit index set to 0 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower492, logLastIndex=2, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower492: Lagging 0 entries behind leader leader490 and reached 0 (of expected -1) 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Setting last applied to 0 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=four-1}, logIndex: 4, isSendImmediate: true 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Moving last applied index from -1 to 0 11:17:45,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Applying state for log index 0 data zero-1 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 1 is present for follower follower492 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower492 updated: matchIndex: 2, nextIndex: 3 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 0 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 1 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from 0 to 1 11:17:45,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 1 data one-1 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: applyState called: zero-1 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: one-1 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 2 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from 1 to 2 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 2 data two-1 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Persisting ApplyJournalEntries with index=0 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: two-1 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 3 is present for follower follower492 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Sending AppendEntries to follower follower492: AppendEntries [leaderId=leader490, 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], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): handleAppendEntries: AppendEntries [leaderId=leader490, 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], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persisting ApplyJournalEntries with index=2 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Number of entries to be appended = 2 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Append entry to log three-1 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Append entry to log four-1 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Log size is now 5 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Commit index set to 2 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower492, logLastIndex=4, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower492: Lagging 0 entries behind leader leader490 and reached 2 (of expected -1) 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 0, lastIndex(): 4 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Setting last applied to 1 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Moving last applied index from 0 to 1 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower492 updated: matchIndex: 4, nextIndex: 5 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Applying state for log index 1 data one-1 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 2 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 3 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from 2 to 3 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 3 data three-1 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: three-1 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: applyState called: one-1 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 4 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from 3 to 4 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Setting last applied to 2 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 4 data four-1 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Moving last applied index from 1 to 2 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Applying state for log index 2 data two-1 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: four-1 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: applyState called: two-1 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:17:45,236 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persisting ApplyJournalEntries with index=4 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Persisting ApplyJournalEntries with index=2 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Commit index set to 4 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower492: Lagging 0 entries behind leader leader490 and reached 4 (of expected -1) 11:17:45,236 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 2, lastIndex(): 4 11:17:45,237 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Setting last applied to 3 11:17:45,237 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Moving last applied index from 2 to 3 11:17:45,237 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Applying state for log index 3 data three-1 11:17:45,237 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: applyState called: three-1 11:17:45,237 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Setting last applied to 4 11:17:45,237 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Moving last applied index from 3 to 4 11:17:45,237 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Applying state for log index 4 data four-1 11:17:45,237 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: applyState called: four-1 11:17:45,237 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Persisting ApplyJournalEntries with index=4 11:17:45,309 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Term 3 in "AppendEntries [leaderId=leader490, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 11:17:45,309 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Set currentTerm=3, votedFor=null 11:17:45,310 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower491: Lagging -3 entries behind leader leader490 and reached 2 (of expected -1) 11:17:45,310 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply: follower follower491 last log term 2 for index 2 conflicts with the leader's 3 - set the follower's next index to 1 11:17:45,310 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:17:45,310 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 1 is present for follower follower491 11:17:45,310 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Sending AppendEntries to follower follower491: AppendEntries [leaderId=leader490, prevLogIndex=0, prevLogTerm=3, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 11:17:45,311 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): handleAppendEntries: AppendEntries [leaderId=leader490, prevLogIndex=0, prevLogTerm=3, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 11:17:45,311 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): The prevLogIndex 0 was found in the log but the term 2 is not equal to the append entries prevLogTerm 3 - lastIndex: 2, snapshotIndex: 1, snapshotTerm: 2 11:17:45,311 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=3, success=false, followerId=follower491, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:17:45,311 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower491: Lagging 2 entries behind leader leader490 and reached 2 (of expected -1) 11:17:45,311 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower491, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 11:17:45,311 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): follower follower491 last log term 2 conflicts with the leader's 3 - dec next index to 0 11:17:45,311 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 0, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:17:45,311 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 0 is present for follower follower491 11:17:45,311 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Sending AppendEntries to follower follower491: AppendEntries [leaderId=leader490, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 11:17:45,311 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): handleAppendEntries: AppendEntries [leaderId=leader490, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 11:17:45,311 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Number of entries to be appended = 5 11:17:45,311 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: -1 11:17:45,311 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] is present: existingEntryTerm: 2 11:17:45,311 AM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:17:45,311 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Removing entries from log starting at 1, commitIndex: 2, lastApplied: 2 11:17:45,311 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Could not remove entries - sending reply to force snapshot 11:17:45,311 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower491: Lagging 2 entries behind leader leader490 and reached 2 (of expected -1) 11:17:45,311 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower491, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 11:17:45,311 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: 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 follower491 11:17:45,311 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: lastSequenceNumber prior to capture: -1 11:17:45,312 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: CaptureSnapshotReply received by actor 11:17:45,312 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: 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=leader490, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower492, isVoting=true], ServerInfo[peerId=follower491, isVoting=false], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=leader490, isVoting=true]]]] 11:17:45,312 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:17:45,312 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendInstallSnapshot 11:17:45,312 AM [test-akka.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader490 (Leader): Snapshot 390 bytes, total chunks to send: 1 11:17:45,312 AM [test-akka.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader490 (Leader): Next chunk: total length=390, offset=0, size=390, hashCode=-929342248 11:17:45,312 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): next snapshot chunk size for follower follower491: 390 11:17:45,312 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): InstallSnapshot sent to follower Vector(user, follower491), Chunk: 1/1 11:17:45,312 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Snapshot success - sequence number: -1 11:17:45,312 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: SnapshotComplete received 11:17:45,313 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader490, lastIncludedIndex=4, lastIncludedTerm=3, datasize=390, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower492, isVoting=true], ServerInfo[peerId=follower491, isVoting=false], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=leader490, isVoting=true]]]] 11:17:45,313 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower491: Lagging 2 entries behind leader leader490 and reached 2 (of expected -1) 11:17:45,313 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:17:45,313 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Snapshot installed from leader: leader490 11:17:45,314 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: 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=follower492, isVoting=true], ServerInfo[peerId=follower491, isVoting=false], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=leader490, isVoting=true]]]] 11:17:45,314 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:17:45,314 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Snapshot success - sequence number: -1 11:17:45,314 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Moving last applied index from 2 to 4 11:17:45,314 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Set currentTerm=3, votedFor=null 11:17:45,314 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Updated server config: isVoting: false, peers: [PeerInfo [id=follower492, address=null, votingState=VOTING], PeerInfo [id=leader490, address=akka://test/user/leader490, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 11:17:45,314 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: applySnapshot called 11:17:45,314 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower491, chunkIndex=1, success=true] 11:17:45,314 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: SnapshotComplete received 11:17:45,314 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower491, chunkIndex=1, success=true] 11:17:45,314 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Snapshot successfully installed on follower follower491 (last chunk 1) - matchIndex set to 4, nextIndex set to 5 11:17:45,335 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart ending 11:17:45,335 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower491-collector493#1699745750] 11:17:45,346 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower491] 11:17:45,347 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader490-collector494#1006440864] 11:17:45,347 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader490] 11:17:45,347 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower492-collector495#-105333382] 11:17:45,347 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower492] 11:17:45,348 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader490-collector496#1279022578] 11:17:45,348 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader490] [INFO] [04/21/2024 11:17:45.349] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 11:17:45,349 AM [test-akka.actor.default-dispatcher-13] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [04/21/2024 11:17:45.350] [test-akka.actor.default-dispatcher-13] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.21:25520) [INFO] [04/21/2024 11:17:45.351] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Exiting completed [INFO] [04/21/2024 11:17:45.351] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Shutting down... 11:17:45,351 AM [test-akka.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Exiting completed 11:17:45,351 AM [test-akka.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Shutting down... 11:17:45,351 AM [test-akka.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Successfully shut down [INFO] [04/21/2024 11:17:45.351] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Successfully shut down [INFO] [04/21/2024 11:17:45.353] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.21:25520/system/remoting-terminator] Shutting down remote daemon. 11:17:45,353 AM [test-akka.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [04/21/2024 11:17:45.353] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.21:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 11:17:45,353 AM [test-akka.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [04/21/2024 11:17:45.356] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.21:25520/system/remoting-terminator] Remoting shut down. 11:17:45,356 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [04/21/2024 11:17:45.356] [test-akka.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger