[DEBUG] [03/09/2024 01:12:36.436] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:12:36,436 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/09/2024 01:12:36.436] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/09/2024 01:12:36.436] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/09/2024 01:12:36.479] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.255:25520] with UID [1110719644484712925] 01:12:36,479 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.255:25520] with UID [1110719644484712925] 01:12:36,480 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/09/2024 01:12:36.480] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/09/2024 01:12:36.483] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/09/2024 01:12:36.483] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - Started up successfully 01:12:36,483 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:12:36,483 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - Started up successfully [INFO] [03/09/2024 01:12:36.490] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/09/2024 01:12:36.490] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:12:36,492 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:12:36,492 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:12:36,492 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerLeaderStateChanges [WARN] [03/09/2024 01:12:36.496] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower467]: org.opendaylight.controller.cluster.common.actor.Monitor@793adc27 [INFO] [akkaDeadLetter][03/09/2024 01:12:36.496] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower467] 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'. 01:12:36,496 AM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower467] 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'. 01:12:36,497 AM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower467 with journal batch size 1000 [WARN] [03/09/2024 01:12:36.499] [test-akka.actor.default-dispatcher-10] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader466]: org.opendaylight.controller.cluster.common.actor.Monitor@1d300b4a 01:12:36,506 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader466 with journal batch size 1000 [INFO] [akkaDeadLetter][03/09/2024 01:12:36.506] [test-akka.actor.default-dispatcher-5] [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. [2] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:12:36,506 AM [test-akka.actor.default-dispatcher-5] [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. [2] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:12:36,513 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower467: Set currentTerm=1, votedFor=leader466 01:12:36,513 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower467: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:12:36,514 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]] 01:12:36,514 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 01:12:36,515 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466: Set currentTerm=1, votedFor=leader466 01:12:36,529 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:12:36,529 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466: Updated server config: isVoting: true, peers: [PeerInfo [id=follower467, address=akka://test/user/follower467, votingState=NON_VOTING]] 01:12:36,529 AM [test-akka.actor.default-dispatcher-6] [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 01:12:37,8 AM [test-akka.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:37,9 AM [test-akka.actor.default-dispatcher-16] [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.255:25520, Removed) 01:12:37,9 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Follower): Received ElectionTimeout - switching to Candidate 01:12:37,9 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Candidate): Election: Candidate has following voting peers: [] 01:12:37,9 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466: Set currentTerm=2, votedFor=leader466 01:12:37,9 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Candidate): Starting new election term 2 01:12:37,9 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:12:37,10 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Candidate): Received ElectionTimeout 01:12:37,11 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Leader): Election: Leader has following peers: [follower467] 01:12:37,11 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Leader): Checking sendAppendEntries for follower follower467: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:37,11 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:12:37,11 AM [test-akka.actor.default-dispatcher-6] [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 01:12:37,11 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower467: Set currentTerm=2, votedFor=null 01:12:37,11 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower467: Last sync leader does not match current leader leader466, need to catch up to -1 01:12:37,11 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower467 updated: matchIndex: -1, nextIndex: 0 01:12:37,12 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader466 (Leader): Checking sendAppendEntries for follower follower467: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/09/2024 01:12:37.012] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower467] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1a78ec80 [INFO] [akkaDeadLetter][03/09/2024 01:12:37.013] [test-akka.actor.default-dispatcher-5] [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'. 01:12:37,13 AM [test-akka.actor.default-dispatcher-5] [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'. 01:12:37,55 AM [test-akka.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:37,368 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower467: Lagging 0 entries behind leader leader466 and reached -1 (of expected -1) [WARN] [03/09/2024 01:12:37.369] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower467] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2adbf8b [INFO] [akkaDeadLetter][03/09/2024 01:12:37.369] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower467] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower467] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:12:37,369 AM [test-akka.actor.default-dispatcher-5] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower467] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:12:37,407 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/roleChangeNotifier469#902402910] 01:12:37,418 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower467-collector470#-789818029] 01:12:37,419 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower467] 01:12:37,419 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader466-collector471#262072729] 01:12:37,419 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader466] 01:12:37,420 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart starting [WARN] [03/09/2024 01:12:37.422] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower473]: org.opendaylight.controller.cluster.common.actor.Monitor@532e69de [INFO] [akkaDeadLetter][03/09/2024 01:12:37.422] [test-akka.actor.default-dispatcher-17] [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. [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'. 01:12:37,422 AM [test-akka.actor.default-dispatcher-17] [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. [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'. 01:12:37,423 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower473 with journal batch size 1000 01:12:37,425 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Set currentTerm=1, votedFor=leader472 01:12:37,426 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:12:37,426 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Updated server config: isVoting: false, peers: [PeerInfo [id=leader472, address=akka://test/user/leader472, votingState=VOTING]] 01:12:37,426 AM [test-akka.actor.default-dispatcher-10] [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 01:12:37,426 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader472 with journal batch size 1000 [WARN] [03/09/2024 01:12:37.426] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader472]: org.opendaylight.controller.cluster.common.actor.Monitor@5a05d534 [INFO] [akkaDeadLetter][03/09/2024 01:12:37.426] [test-akka.actor.default-dispatcher-6] [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. [6] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:12:37,426 AM [test-akka.actor.default-dispatcher-6] [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. [6] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:12:37,429 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Set currentTerm=1, votedFor=leader472 01:12:37,430 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:12:37,430 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Updated server config: isVoting: true, peers: [PeerInfo [id=follower473, address=akka://test/user/follower473, votingState=NON_VOTING]] 01:12:37,430 AM [test-akka.actor.default-dispatcher-17] [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 01:12:37,928 AM [test-akka.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:37,928 AM [test-akka.actor.default-dispatcher-12] [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.255:25520, Removed) 01:12:37,928 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Follower): Received ElectionTimeout - switching to Candidate 01:12:37,928 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate): Election: Candidate has following voting peers: [] 01:12:37,928 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Set currentTerm=2, votedFor=leader472 01:12:37,928 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate): Starting new election term 2 01:12:37,928 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:12:37,930 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate): Received ElectionTimeout 01:12:37,930 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Election: Leader has following peers: [follower473] 01:12:37,930 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:37,930 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:12:37,930 AM [test-akka.actor.default-dispatcher-12] [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 01:12:37,930 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Set currentTerm=2, votedFor=null 01:12:37,931 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower473: Last sync leader does not match current leader leader472, need to catch up to -1 01:12:37,931 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower473 updated: matchIndex: -1, nextIndex: 0 01:12:37,931 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/09/2024 01:12:37.932] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower473] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3e8bf624 [INFO] [akkaDeadLetter][03/09/2024 01:12:37.932] [test-akka.actor.default-dispatcher-18] [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'. 01:12:37,932 AM [test-akka.actor.default-dispatcher-18] [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'. 01:12:37,979 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:37,979 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:37,979 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 01:12:37,979 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Setting last applied to 0 01:12:37,979 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Moving last applied index from -1 to 0 01:12:37,979 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Applying state for log index 0 data zero 01:12:37,979 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: applyState called: zero 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): sendAppendEntries: 0 is present for follower follower473 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [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]]] 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persisting ApplyJournalEntries with index=0 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:37,980 AM [test-akka.actor.default-dispatcher-18] [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]]] 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:37,980 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Number of entries to be appended = 1 01:12:37,980 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 01:12:37,980 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Append entry to log zero 01:12:37,980 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Setting last applied to 1 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Moving last applied index from 0 to 1 01:12:37,980 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Applying state for log index 1 data one 01:12:37,980 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Log size is now 1 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: applyState called: one 01:12:37,980 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Commit index set to 0 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): sendAppendEntries: 0 is present for follower follower473 01:12:37,980 AM [test-akka.actor.default-dispatcher-18] [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] 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [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]]] 01:12:37,980 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower473: Lagging 0 entries behind leader leader472 and reached 0 (of expected -1) 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persisting ApplyJournalEntries with index=1 01:12:37,980 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower473 updated: matchIndex: 0, nextIndex: 1 01:12:37,980 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Setting last applied to 0 01:12:37,980 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Moving last applied index from -1 to 0 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: fakeSnapshot purging log to 0 for term 2 01:12:37,980 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Applying state for log index 0 data zero 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:12:37,980 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): sendAppendEntries: 1 is present for follower follower473 01:12:37,981 AM [test-akka.actor.default-dispatcher-14] [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]]] 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: applyState called: zero 01:12:37,981 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [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]]] 01:12:37,981 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Number of entries to be appended = 2 01:12:37,981 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Append entry to log one 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:37,981 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:37,981 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Setting last applied to 2 01:12:37,981 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Moving last applied index from 1 to 2 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Log size is now 2 01:12:37,981 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Applying state for log index 2 data two 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Commit index set to 1 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [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] 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower473: Lagging 0 entries behind leader leader472 and reached 1 (of expected -1) 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Setting last applied to 1 01:12:37,981 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: applyState called: two 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Moving last applied index from 0 to 1 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Applying state for log index 1 data one 01:12:37,981 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:12:37,981 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): sendAppendEntries: 1 is present for follower follower473 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: applyState called: one 01:12:37,981 AM [test-akka.actor.default-dispatcher-14] [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]]] 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [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]]] 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Number of entries to be appended = 1 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:12:37,981 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower473 updated: matchIndex: 1, nextIndex: 2 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Log size is now 2 01:12:37,981 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: fakeSnapshot purging log to 1 for term 2 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [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] 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower473: Lagging 0 entries behind leader leader472 and reached 1 (of expected -1) 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: fakeSnapshot purging log to 0 for term 2 01:12:37,981 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:12:37,981 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): sendAppendEntries: 2 is present for follower follower473 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Persisting ApplyJournalEntries with index=0 01:12:37,981 AM [test-akka.actor.default-dispatcher-5] [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]]] 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Persisting ApplyJournalEntries with index=1 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [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]]] 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Number of entries to be appended = 2 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 01:12:37,981 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persisting ApplyJournalEntries with index=2 01:12:37,981 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Append entry to log two 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:12:37,982 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Log size is now 2 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Commit index set to 2 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [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] 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower473: Lagging 0 entries behind leader leader472 and reached 2 (of expected -1) 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Setting last applied to 2 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Moving last applied index from 1 to 2 01:12:37,982 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): sendAppendEntries: 2 is present for follower follower473 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Applying state for log index 2 data two 01:12:37,982 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower473 updated: matchIndex: 2, nextIndex: 3 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: applyState called: two 01:12:37,982 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [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]]] 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Number of entries to be appended = 1 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Log size is now 2 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [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] 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower473: Lagging 0 entries behind leader leader472 and reached 2 (of expected -1) 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: fakeSnapshot purging log to 1 for term 2 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Persisting ApplyJournalEntries with index=2 01:12:37,982 AM [test-akka.actor.default-dispatcher-18] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower473] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [WARN] [03/09/2024 01:12:37.982] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower473] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@263d2420 [INFO] [akkaDeadLetter][03/09/2024 01:12:37.982] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower473] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower473] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 01:12:38,44 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader472 with journal batch size 1000 [WARN] [03/09/2024 01:12:38.045] [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@28257172 [INFO] [akkaDeadLetter][03/09/2024 01:12:38.045] [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. [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'. 01:12:38,45 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. [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'. 01:12:38,47 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Set currentTerm=1, votedFor=leader472 01:12:38,48 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:12:38,48 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Updated server config: isVoting: true, peers: [PeerInfo [id=follower473, address=akka://test/user/follower473, votingState=NON_VOTING]] 01:12:38,48 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Set currentTerm=2, votedFor=leader472 01:12:38,48 AM [test-akka.actor.default-dispatcher-10] [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 01:12:38,478 AM [test-akka.actor.default-dispatcher-16] [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.255:25520, Removed) 01:12:38,478 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Follower): Received ElectionTimeout - switching to Candidate 01:12:38,478 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate): Election: Candidate has following voting peers: [] 01:12:38,478 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Set currentTerm=3, votedFor=leader472 01:12:38,479 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate): Starting new election term 3 01:12:38,479 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:12:38,480 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate): Received ElectionTimeout 01:12:38,480 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Election: Leader has following peers: [follower473] 01:12:38,480 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:38,480 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:12:38,497 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:38,497 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:38,497 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 01:12:38,497 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Setting last applied to 0 01:12:38,497 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Moving last applied index from -1 to 0 01:12:38,497 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Applying state for log index 0 data zero-1 01:12:38,497 AM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: applyState called: zero-1 01:12:38,497 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:38,497 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persisting ApplyJournalEntries with index=0 01:12:38,498 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:38,498 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:12:38,498 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:12:38,498 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 01:12:38,498 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Setting last applied to 1 01:12:38,498 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Moving last applied index from 0 to 1 01:12:38,498 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Applying state for log index 1 data one-1 01:12:38,498 AM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: applyState called: one-1 01:12:38,498 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Checking sendAppendEntries for follower follower473: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:38,498 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Persisting ApplyJournalEntries with index=1 01:12:38,498 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:12:38,599 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 01:12:38,599 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Set currentTerm=3, votedFor=null 01:12:38,599 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower473: Lagging -3 entries behind leader leader472 and reached 2 (of expected -1) 01:12:38,599 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): handleAppendEntriesReply: follower follower473 lastIndex 2 is ahead of our lastIndex 1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 01:12:38,599 AM [test-akka.actor.default-dispatcher-6] [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 01:12:38,599 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: lastSequenceNumber prior to capture: -1 01:12:38,601 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: CaptureSnapshotReply received by actor 01:12:38,603 AM [test-akka.actor.default-dispatcher-6] [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]]]] 01:12:38,603 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:12:38,603 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): sendInstallSnapshot 01:12:38,603 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader472 (Leader): Snapshot 333 bytes, total chunks to send: 1 01:12:38,603 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader472 (Leader): Next chunk: total length=333, offset=0, size=333, hashCode=878051978 01:12:38,603 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): next snapshot chunk size for follower follower473: 333 01:12:38,603 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): InstallSnapshot sent to follower Vector(user, follower473), Chunk: 1/1 01:12:38,603 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: Snapshot success - sequence number: -1 01:12:38,603 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: SnapshotComplete received 01:12:38,603 AM [test-akka.actor.default-dispatcher-12] [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]]]] 01:12:38,603 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower473: Lagging -1 entries behind leader leader472 and reached 2 (of expected -1) 01:12:38,603 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:12:38,603 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): Snapshot installed from leader: leader472 01:12:38,604 AM [test-akka.actor.default-dispatcher-12] [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]]]] 01:12:38,605 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 01:12:38,605 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Snapshot success - sequence number: -1 01:12:38,605 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Moving last applied index from 2 to 1 01:12:38,605 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Set currentTerm=3, votedFor=null 01:12:38,605 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: Updated server config: isVoting: false, peers: [PeerInfo [id=leader472, address=akka://test/user/leader472, votingState=VOTING]] 01:12:38,605 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: applySnapshot called 01:12:38,605 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower473, chunkIndex=1, success=true] 01:12:38,605 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower473: SnapshotComplete received 01:12:38,605 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower473, chunkIndex=1, success=true] 01:12:38,605 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader472 (Leader): Snapshot successfully installed on follower follower473 (last chunk 1) - matchIndex set to 1, nextIndex set to 2 01:12:38,605 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader472: fakeSnapshot purging log to 0 for term 3 01:12:38,649 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart ending 01:12:38,649 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower473-collector475#1033121652] 01:12:38,661 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower473] 01:12:38,661 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader472-collector476#124608092] 01:12:38,661 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader472] 01:12:38,662 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader472-collector477#-1722888744] 01:12:38,662 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader472] 01:12:38,663 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart starting [WARN] [03/09/2024 01:12:38.665] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower479]: org.opendaylight.controller.cluster.common.actor.Monitor@6bc3a9db [INFO] [akkaDeadLetter][03/09/2024 01:12:38.666] [test-akka.actor.default-dispatcher-10] [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. [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'. 01:12:38,666 AM [test-akka.actor.default-dispatcher-10] [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. [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'. 01:12:38,666 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower479 with journal batch size 1000 01:12:38,668 AM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader478 with journal batch size 1000 [WARN] [03/09/2024 01:12:38.668] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader478]: org.opendaylight.controller.cluster.common.actor.Monitor@7330230a 01:12:38,668 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Set currentTerm=1, votedFor=leader478 01:12:38,669 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:12:38,669 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Updated server config: isVoting: false, peers: [PeerInfo [id=leader478, address=akka://test/user/leader478, votingState=VOTING]] 01:12:38,669 AM [test-akka.actor.default-dispatcher-18] [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 01:12:38,671 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Set currentTerm=1, votedFor=leader478 01:12:38,672 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:12:38,672 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]] 01:12:38,672 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 01:12:39,188 AM [test-akka.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:39,188 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.255:25520, Removed) 01:12:39,188 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Follower): Received ElectionTimeout - switching to Candidate 01:12:39,188 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate): Election: Candidate has following voting peers: [] 01:12:39,188 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Set currentTerm=2, votedFor=leader478 01:12:39,189 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate): Starting new election term 2 01:12:39,189 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:12:39,190 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate): Received ElectionTimeout 01:12:39,190 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Election: Leader has following peers: [follower479] 01:12:39,190 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 01:12:39,190 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:12:39,190 AM [test-akka.actor.default-dispatcher-6] [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 01:12:39,190 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Set currentTerm=2, votedFor=null 01:12:39,191 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower479: Last sync leader does not match current leader leader478, need to catch up to -1 01:12:39,191 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower479 updated: matchIndex: -1, nextIndex: 0 01:12:39,191 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/09/2024 01:12:39.192] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower479] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3a29b457 01:12:39,222 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:39,222 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:39,222 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 01:12:39,222 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Setting last applied to 0 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Moving last applied index from -1 to 0 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Applying state for log index 0 data zero 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: applyState called: zero 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendAppendEntries: 0 is present for follower follower479 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [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]]] 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persisting ApplyJournalEntries with index=0 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:39,223 AM [test-akka.actor.default-dispatcher-6] [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]]] 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:39,223 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Number of entries to be appended = 1 01:12:39,223 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:39,223 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Append entry to log zero 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 01:12:39,223 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Setting last applied to 1 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Moving last applied index from 0 to 1 01:12:39,223 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Applying state for log index 1 data one 01:12:39,223 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Log size is now 1 01:12:39,223 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Commit index set to 0 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: applyState called: one 01:12:39,223 AM [test-akka.actor.default-dispatcher-6] [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] 01:12:39,223 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower479: Lagging 0 entries behind leader leader478 and reached 0 (of expected -1) 01:12:39,223 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:39,223 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Setting last applied to 0 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendAppendEntries: 0 is present for follower follower479 01:12:39,223 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Moving last applied index from -1 to 0 01:12:39,223 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Applying state for log index 0 data zero 01:12:39,223 AM [test-akka.actor.default-dispatcher-18] [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]]] 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persisting ApplyJournalEntries with index=1 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: applyState called: zero 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower479 updated: matchIndex: 0, nextIndex: 1 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: fakeSnapshot purging log to 0 for term 2 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendAppendEntries: 1 is present for follower follower479 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [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]]] 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [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]]] 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Number of entries to be appended = 2 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Append entry to log one 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Log size is now 2 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Commit index set to 1 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [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] 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower479: Lagging 0 entries behind leader leader478 and reached 1 (of expected -1) 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Setting last applied to 1 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Moving last applied index from 0 to 1 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Setting last applied to 2 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Applying state for log index 1 data one 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Moving last applied index from 1 to 2 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Applying state for log index 2 data two 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: applyState called: one 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: applyState called: two 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Persisting ApplyJournalEntries with index=0 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendAppendEntries: 1 is present for follower follower479 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [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]]] 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [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]]] 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Number of entries to be appended = 1 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Log size is now 2 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower479 updated: matchIndex: 1, nextIndex: 2 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [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] 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: fakeSnapshot purging log to 1 for term 2 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower479: Lagging 0 entries behind leader leader478 and reached 1 (of expected -1) 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: fakeSnapshot purging log to 0 for term 2 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendAppendEntries: 2 is present for follower follower479 01:12:39,224 AM [test-akka.actor.default-dispatcher-18] [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]]] 01:12:39,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Persisting ApplyJournalEntries with index=1 01:12:39,225 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persisting ApplyJournalEntries with index=2 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [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]]] 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Number of entries to be appended = 2 01:12:39,225 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Append entry to log two 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:12:39,225 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendAppendEntries: 2 is present for follower follower479 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Log size is now 2 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Commit index set to 2 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [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] 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower479: Lagging 0 entries behind leader leader478 and reached 2 (of expected -1) 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Setting last applied to 2 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Moving last applied index from 1 to 2 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Applying state for log index 2 data two 01:12:39,225 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower479 updated: matchIndex: 2, nextIndex: 3 01:12:39,225 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: applyState called: two 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [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]]] 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Number of entries to be appended = 1 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Log size is now 2 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [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] 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower479: Lagging 0 entries behind leader leader478 and reached 2 (of expected -1) 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: fakeSnapshot purging log to 1 for term 2 01:12:39,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Persisting ApplyJournalEntries with index=2 [WARN] [03/09/2024 01:12:39.225] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower479] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4cd25fb8 [WARN] [03/09/2024 01:12:39.286] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader478]: org.opendaylight.controller.cluster.common.actor.Monitor@7e188b95 01:12:39,287 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader478 with journal batch size 1000 01:12:39,289 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Set currentTerm=1, votedFor=leader478 01:12:39,289 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:12:39,289 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Updated server config: isVoting: true, peers: [PeerInfo [id=follower479, address=akka://test/user/follower479, votingState=NON_VOTING]] 01:12:39,289 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Set currentTerm=2, votedFor=leader478 01:12:39,289 AM [test-akka.actor.default-dispatcher-6] [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 01:12:39,808 AM [test-akka.actor.default-dispatcher-6] [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.255:25520, Removed) 01:12:39,808 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Follower): Received ElectionTimeout - switching to Candidate 01:12:39,808 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate): Election: Candidate has following voting peers: [] 01:12:39,808 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Set currentTerm=3, votedFor=leader478 01:12:39,808 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate): Starting new election term 3 01:12:39,808 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:12:39,809 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate): Received ElectionTimeout 01:12:39,809 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Election: Leader has following peers: [follower479] 01:12:39,809 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:39,809 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:12:39,809 AM [test-akka.actor.default-dispatcher-14] [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 01:12:39,809 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Set currentTerm=3, votedFor=null 01:12:39,810 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower479: Lagging -3 entries behind leader leader478 and reached 2 (of expected -1) 01:12:39,810 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): handleAppendEntriesReply: follower follower479 lastIndex 2 is ahead of our lastIndex -1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 01:12:39,810 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 01:12:39,810 AM [test-akka.actor.default-dispatcher-12] [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 01:12:39,810 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: lastSequenceNumber prior to capture: -1 01:12:39,810 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: CaptureSnapshotReply received by actor 01:12:39,810 AM [test-akka.actor.default-dispatcher-12] [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]]]] 01:12:39,810 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:12:39,810 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendInstallSnapshot 01:12:39,810 AM [test-akka.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader478 (Leader): Snapshot 171 bytes, total chunks to send: 1 01:12:39,810 AM [test-akka.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader478 (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 01:12:39,810 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): next snapshot chunk size for follower follower479: 171 01:12:39,810 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): InstallSnapshot sent to follower Vector(user, follower479), Chunk: 1/1 01:12:39,810 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Snapshot success - sequence number: -1 01:12:39,810 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: SnapshotComplete received 01:12:39,810 AM [test-akka.actor.default-dispatcher-6] [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]]]] 01:12:39,810 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower479: Lagging -3 entries behind leader leader478 and reached 2 (of expected -1) 01:12:39,810 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:12:39,810 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Snapshot installed from leader: leader478 01:12:39,811 AM [test-akka.actor.default-dispatcher-6] [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]]]] 01:12:39,811 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 01:12:39,811 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Snapshot success - sequence number: -1 01:12:39,811 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Moving last applied index from 2 to -1 01:12:39,811 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Set currentTerm=3, votedFor=null 01:12:39,811 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Updated server config: isVoting: false, peers: [PeerInfo [id=leader478, address=akka://test/user/leader478, votingState=VOTING]] 01:12:39,811 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: applySnapshot called 01:12:39,811 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower479, chunkIndex=1, success=true] 01:12:39,811 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: SnapshotComplete received 01:12:39,811 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower479, chunkIndex=1, success=true] 01:12:39,811 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Snapshot successfully installed on follower follower479 (last chunk 1) - matchIndex set to -1, nextIndex set to 0 01:12:39,844 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:39,844 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:39,844 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 01:12:39,844 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Setting last applied to 0 01:12:39,844 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Moving last applied index from -1 to 0 01:12:39,844 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Applying state for log index 0 data zero-1 01:12:39,844 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: applyState called: zero-1 01:12:39,844 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:39,844 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): sendAppendEntries: 0 is present for follower follower479 01:12:39,844 AM [test-akka.actor.default-dispatcher-14] [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]]] 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: Persisting ApplyJournalEntries with index=0 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [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]]] 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Number of entries to be appended = 1 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Append entry to log zero-1 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Log size is now 1 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Commit index set to 0 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [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] 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower479: Lagging 0 entries behind leader leader478 and reached 0 (of expected -1) 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479 (Follower): Setting last applied to 0 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Moving last applied index from -1 to 0 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Applying state for log index 0 data zero-1 01:12:39,845 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower479 updated: matchIndex: 0, nextIndex: 1 01:12:39,845 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader478 (Leader): Checking sendAppendEntries for follower follower479: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: applyState called: zero-1 01:12:39,845 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower479: Persisting ApplyJournalEntries with index=0 01:12:39,894 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart ending 01:12:39,894 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower479-collector481#76660943] 01:12:39,906 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower479] 01:12:39,906 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader478-collector482#1647532330] 01:12:39,906 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader478] 01:12:39,907 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader478-collector483#9431474] 01:12:39,907 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader478] 01:12:39,908 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart starting [WARN] [03/09/2024 01:12:39.910] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower485]: org.opendaylight.controller.cluster.common.actor.Monitor@2896ef94 01:12:39,911 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower485 with journal batch size 1000 [WARN] [03/09/2024 01:12:39.913] [test-akka.actor.default-dispatcher-14] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader484]: org.opendaylight.controller.cluster.common.actor.Monitor@6601c307 01:12:39,914 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Set currentTerm=1, votedFor=leader484 01:12:39,914 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:12:39,914 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Updated server config: isVoting: false, peers: [PeerInfo [id=leader484, address=akka://test/user/leader484, votingState=VOTING]] 01:12:39,914 AM [test-akka.actor.default-dispatcher-6] [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 01:12:39,914 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader484 with journal batch size 1000 01:12:39,916 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Set currentTerm=1, votedFor=leader484 01:12:39,916 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:12:39,917 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Updated server config: isVoting: true, peers: [PeerInfo [id=follower485, address=akka://test/user/follower485, votingState=NON_VOTING]] 01:12:39,917 AM [test-akka.actor.default-dispatcher-14] [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 01:12:40,358 AM [test-akka.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:40,359 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.255:25520, Removed) 01:12:40,359 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Follower): Received ElectionTimeout - switching to Candidate 01:12:40,359 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate): Election: Candidate has following voting peers: [] 01:12:40,359 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Set currentTerm=2, votedFor=leader484 01:12:40,359 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate): Starting new election term 2 01:12:40,359 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:12:40,360 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate): Received ElectionTimeout 01:12:40,360 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Election: Leader has following peers: [follower485] 01:12:40,361 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 01:12:40,361 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:12:40,361 AM [test-akka.actor.default-dispatcher-14] [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 01:12:40,361 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Set currentTerm=2, votedFor=null 01:12:40,361 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower485: Last sync leader does not match current leader leader484, need to catch up to -1 01:12:40,361 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower485 updated: matchIndex: -1, nextIndex: 0 01:12:40,361 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 [WARN] [03/09/2024 01:12:40.362] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower485] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@44483979 01:12:40,371 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:40,371 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:40,371 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 01:12:40,371 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Setting last applied to 0 01:12:40,371 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Moving last applied index from -1 to 0 01:12:40,371 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Applying state for log index 0 data zero 01:12:40,371 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: applyState called: zero 01:12:40,371 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:40,371 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): sendAppendEntries: 0 is present for follower follower485 01:12:40,371 AM [test-akka.actor.default-dispatcher-17] [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]]] 01:12:40,371 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persisting ApplyJournalEntries with index=0 01:12:40,371 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [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]]] 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Number of entries to be appended = 1 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Append entry to log zero 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Log size is now 1 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Commit index set to 0 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [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] 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower485: Lagging 0 entries behind leader leader484 and reached 0 (of expected -1) 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Setting last applied to 0 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Moving last applied index from -1 to 0 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Applying state for log index 0 data zero 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: applyState called: zero 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Persisting ApplyJournalEntries with index=0 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower485 updated: matchIndex: 0, nextIndex: 1 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Setting last applied to 1 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Moving last applied index from 0 to 1 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Applying state for log index 1 data one 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: applyState called: one 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): sendAppendEntries: 1 is present for follower follower485 01:12:40,372 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Sending AppendEntries to follower follower485: AppendEntries [leaderId=leader484, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] [WARN] [03/09/2024 01:12:40.372] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower485] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5be664fa 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): handleAppendEntries: AppendEntries [leaderId=leader484, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Number of entries to be appended = 1 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Append entry to log one 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Log size is now 2 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Commit index set to 1 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [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] 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower485: Lagging 0 entries behind leader leader484 and reached 1 (of expected -1) 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Setting last applied to 1 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Moving last applied index from 0 to 1 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Applying state for log index 1 data one 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: applyState called: one 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Persisting ApplyJournalEntries with index=1 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persisting ApplyJournalEntries with index=1 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: fakeSnapshot purging log to 0 for term 2 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower485 updated: matchIndex: 1, nextIndex: 2 01:12:40,373 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 [WARN] [03/09/2024 01:12:40.386] [test-akka.actor.default-dispatcher-14] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader484]: org.opendaylight.controller.cluster.common.actor.Monitor@76d17b6b 01:12:40,387 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader484 with journal batch size 1000 01:12:40,390 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Set currentTerm=1, votedFor=leader484 01:12:40,390 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:12:40,390 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Updated server config: isVoting: true, peers: [PeerInfo [id=follower485, address=akka://test/user/follower485, votingState=NON_VOTING]] 01:12:40,390 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Set currentTerm=2, votedFor=leader484 01:12:40,390 AM [test-akka.actor.default-dispatcher-14] [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 01:12:40,818 AM [test-akka.actor.default-dispatcher-14] [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.255:25520, Removed) 01:12:40,818 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Follower): Received ElectionTimeout - switching to Candidate 01:12:40,818 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate): Election: Candidate has following voting peers: [] 01:12:40,818 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Set currentTerm=3, votedFor=leader484 01:12:40,818 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate): Starting new election term 3 01:12:40,818 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:12:40,819 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate): Received ElectionTimeout 01:12:40,820 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Election: Leader has following peers: [follower485] 01:12:40,820 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:40,820 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:12:40,839 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:40,839 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:40,839 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 01:12:40,839 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Setting last applied to 0 01:12:40,839 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Moving last applied index from -1 to 0 01:12:40,839 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Applying state for log index 0 data zero-1 01:12:40,839 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: applyState called: zero-1 01:12:40,839 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:40,839 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persisting ApplyJournalEntries with index=0 01:12:40,839 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Setting last applied to 1 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Moving last applied index from 0 to 1 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Applying state for log index 1 data one-1 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: applyState called: one-1 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persisting ApplyJournalEntries with index=1 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Setting last applied to 2 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Moving last applied index from 1 to 2 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Applying state for log index 2 data two-1 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: applyState called: two-1 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Persisting ApplyJournalEntries with index=2 01:12:40,840 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:12:40,938 AM [test-akka.actor.default-dispatcher-14] [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 01:12:40,938 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Set currentTerm=3, votedFor=null 01:12:40,939 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower485: Lagging -2 entries behind leader leader484 and reached 1 (of expected -1) 01:12:40,939 AM [test-akka.actor.default-dispatcher-17] [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 01:12:40,939 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Checking sendAppendEntries for follower follower485: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:12:40,939 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): sendAppendEntries: 0 is present for follower follower485 01:12:40,939 AM [test-akka.actor.default-dispatcher-17] [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]]] 01:12:40,940 AM [test-akka.actor.default-dispatcher-17] [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]]] 01:12:40,940 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Number of entries to be appended = 3 01:12:40,940 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: 2 01:12:40,940 AM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:40,940 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Removing entries from log starting at 0, commitIndex: 1, lastApplied: 1 01:12:40,940 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Could not remove entries - sending reply to force snapshot 01:12:40,940 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower485: Lagging 1 entries behind leader leader484 and reached 1 (of expected -1) 01:12:40,940 AM [test-akka.actor.default-dispatcher-6] [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 01:12:40,940 AM [test-akka.actor.default-dispatcher-6] [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 01:12:40,940 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: lastSequenceNumber prior to capture: -1 01:12:40,940 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: CaptureSnapshotReply received by actor 01:12:40,941 AM [test-akka.actor.default-dispatcher-6] [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]]]] 01:12:40,941 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:12:40,941 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): sendInstallSnapshot 01:12:40,941 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader484 (Leader): Snapshot 351 bytes, total chunks to send: 1 01:12:40,941 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader484 (Leader): Next chunk: total length=351, offset=0, size=351, hashCode=236499276 01:12:40,941 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): next snapshot chunk size for follower follower485: 351 01:12:40,941 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): InstallSnapshot sent to follower Vector(user, follower485), Chunk: 1/1 01:12:40,941 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: Snapshot success - sequence number: -1 01:12:40,941 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: SnapshotComplete received 01:12:40,941 AM [test-akka.actor.default-dispatcher-17] [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]]]] 01:12:40,941 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower485: Lagging 1 entries behind leader leader484 and reached 1 (of expected -1) 01:12:40,941 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:12:40,941 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): Snapshot installed from leader: leader484 01:12:40,943 AM [test-akka.actor.default-dispatcher-17] [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]]]] 01:12:40,943 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 01:12:40,943 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Snapshot success - sequence number: -1 01:12:40,943 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Moving last applied index from 1 to 2 01:12:40,943 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Set currentTerm=3, votedFor=null 01:12:40,943 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: Updated server config: isVoting: false, peers: [PeerInfo [id=leader484, address=akka://test/user/leader484, votingState=VOTING]] 01:12:40,943 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: applySnapshot called 01:12:40,943 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower485, chunkIndex=1, success=true] 01:12:40,943 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower485: SnapshotComplete received 01:12:40,943 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower485, chunkIndex=1, success=true] 01:12:40,943 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader484 (Leader): Snapshot successfully installed on follower follower485 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 01:12:40,943 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader484: fakeSnapshot purging log to 1 for term 3 01:12:40,994 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart ending 01:12:40,994 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower485-collector487#-1659777115] 01:12:41,5 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower485] 01:12:41,5 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader484-collector488#193262104] 01:12:41,6 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader484] 01:12:41,6 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader484-collector489#-1604845329] 01:12:41,6 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader484] 01:12:41,7 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart starting [WARN] [03/09/2024 01:12:41.010] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower491]: org.opendaylight.controller.cluster.common.actor.Monitor@4ef5fab 01:12:41,11 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower491 with journal batch size 1000 [WARN] [03/09/2024 01:12:41.013] [test-akka.actor.default-dispatcher-14] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader490]: org.opendaylight.controller.cluster.common.actor.Monitor@3881181d 01:12:41,13 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader490 with journal batch size 1000 01:12:41,14 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Set currentTerm=1, votedFor=leader490 01:12:41,14 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:12:41,14 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Updated server config: isVoting: false, peers: [PeerInfo [id=leader490, address=akka://test/user/leader490, votingState=VOTING]] 01:12:41,14 AM [test-akka.actor.default-dispatcher-6] [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 01:12:41,15 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Set currentTerm=1, votedFor=leader490 01:12:41,15 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:12:41,15 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Updated server config: isVoting: true, peers: [PeerInfo [id=follower491, address=akka://test/user/follower491, votingState=NON_VOTING]] 01:12:41,15 AM [test-akka.actor.default-dispatcher-17] [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 01:12:41,518 AM [test-akka.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:41,519 AM [test-akka.actor.default-dispatcher-16] [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.255:25520, Removed) 01:12:41,519 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Follower): Received ElectionTimeout - switching to Candidate 01:12:41,519 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): Election: Candidate has following voting peers: [] 01:12:41,519 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Set currentTerm=2, votedFor=leader490 01:12:41,519 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): Starting new election term 2 01:12:41,519 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:12:41,520 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): Received ElectionTimeout 01:12:41,520 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Election: Leader has following peers: [follower491] 01:12:41,520 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:41,521 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:12:41,521 AM [test-akka.actor.default-dispatcher-12] [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 01:12:41,521 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Set currentTerm=2, votedFor=null 01:12:41,521 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower491: Last sync leader does not match current leader leader490, need to catch up to -1 01:12:41,521 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower491 updated: matchIndex: -1, nextIndex: 0 01:12:41,521 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/09/2024 01:12:41.522] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower491] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@49fb304e 01:12:41,569 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:41,569 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:41,569 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 01:12:41,569 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 0 01:12:41,569 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from -1 to 0 01:12:41,569 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 0 data zero 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: zero 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 0 is present for follower follower491 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [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]]] 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persisting ApplyJournalEntries with index=0 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:41,570 AM [test-akka.actor.default-dispatcher-17] [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]]] 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:41,570 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Number of entries to be appended = 1 01:12:41,570 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 01:12:41,570 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Append entry to log zero 01:12:41,570 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 1 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from 0 to 1 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 1 data one 01:12:41,570 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:12:41,570 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Log size is now 1 01:12:41,570 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Commit index set to 0 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: one 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 0 is present for follower follower491 01:12:41,570 AM [test-akka.actor.default-dispatcher-17] [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] 01:12:41,570 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower491: Lagging 0 entries behind leader leader490 and reached 0 (of expected -1) 01:12:41,570 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [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]]] 01:12:41,570 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Setting last applied to 0 01:12:41,570 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Moving last applied index from -1 to 0 01:12:41,570 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Applying state for log index 0 data zero 01:12:41,570 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persisting ApplyJournalEntries with index=1 01:12:41,570 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower491 updated: matchIndex: 0, nextIndex: 1 01:12:41,570 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: applyState called: zero 01:12:41,570 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: fakeSnapshot purging log to 0 for term 2 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 1 is present for follower follower491 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [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]]] 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Number of entries to be appended = 2 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [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]]] 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Append entry to log one 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Log size is now 2 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Commit index set to 1 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [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] 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower491: Lagging 0 entries behind leader leader490 and reached 1 (of expected -1) 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Setting last applied to 1 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Moving last applied index from 0 to 1 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Applying state for log index 1 data one 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 2 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from 1 to 2 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: applyState called: one 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 2 data two 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Persisting ApplyJournalEntries with index=0 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: two 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [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]]] 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Number of entries to be appended = 1 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 1 is present for follower follower491 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Sending AppendEntries to follower follower491: AppendEntries [leaderId=leader490, 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]]] 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Log size is now 2 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [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] 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower491 updated: matchIndex: 1, nextIndex: 2 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower491: Lagging 0 entries behind leader leader490 and reached 1 (of expected -1) 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: fakeSnapshot purging log to 1 for term 2 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: fakeSnapshot purging log to 0 for term 2 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 2 is present for follower follower491 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Sending AppendEntries to follower follower491: AppendEntries [leaderId=leader490, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Persisting ApplyJournalEntries with index=1 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): handleAppendEntries: AppendEntries [leaderId=leader490, 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]]] 01:12:41,571 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persisting ApplyJournalEntries with index=2 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Number of entries to be appended = 2 01:12:41,571 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Append entry to log two 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:12:41,572 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 2 is present for follower follower491 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Log size is now 2 01:12:41,572 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Commit index set to 2 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [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] 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower491: Lagging 0 entries behind leader leader490 and reached 2 (of expected -1) 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:12:41,572 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower491 updated: matchIndex: 2, nextIndex: 3 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Setting last applied to 2 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Moving last applied index from 1 to 2 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Applying state for log index 2 data two 01:12:41,572 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: applyState called: two 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): handleAppendEntries: AppendEntries [leaderId=leader490, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Number of entries to be appended = 1 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Log size is now 2 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [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] 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower491: Lagging 0 entries behind leader leader490 and reached 2 (of expected -1) 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: fakeSnapshot purging log to 1 for term 2 01:12:41,572 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Persisting ApplyJournalEntries with index=2 [WARN] [03/09/2024 01:12:41.572] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower491] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5d371b96 01:12:41,759 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower491: Lagging 0 entries behind leader leader490 and reached 2 (of expected -1) [WARN] [03/09/2024 01:12:41.784] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower492]: org.opendaylight.controller.cluster.common.actor.Monitor@5c6618d2 01:12:41,785 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower492 with journal batch size 1000 01:12:41,787 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Received ReplicatedLogEntry for recovery: index: 0, size: 174 01:12:41,788 AM [test-akka.actor.default-dispatcher-16] [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]] 01:12:41,788 AM [test-akka.actor.default-dispatcher-16] [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] [03/09/2024 01:12:41.789] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader490]: org.opendaylight.controller.cluster.common.actor.Monitor@2c77b10d 01:12:41,789 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader490 with journal batch size 1000 01:12:41,791 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Set currentTerm=2, votedFor=leader490 01:12:41,791 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Received ReplicatedLogEntry for recovery: index: 0, size: 174 01:12:41,791 AM [test-akka.actor.default-dispatcher-17] [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]] 01:12:41,791 AM [test-akka.actor.default-dispatcher-17] [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 01:12:42,299 AM [test-akka.actor.default-dispatcher-12] [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.255:25520, Removed) 01:12:42,299 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Follower): Received ElectionTimeout - switching to Candidate 01:12:42,299 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): Election: Candidate has following voting peers: [follower492] 01:12:42,299 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Set currentTerm=3, votedFor=leader490 01:12:42,299 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): Starting new election term 3 01:12:42,299 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): Sending RequestVote [term=3, candidateId=leader490, lastLogIndex=-1, lastLogTerm=-1] to peer follower492 01:12:42,299 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:12:42,299 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:12:42,299 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Cluster state: [] 01:12:42,299 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=leader490, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 01:12:42,299 AM [test-akka.actor.default-dispatcher-17] [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 01:12:42,299 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Set currentTerm=3, votedFor=null 01:12:42,300 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): In requestVote: RequestVote [term=3, candidateId=leader490, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 3, votedFor: null, lastIndex: -1, lastTerm: -1 01:12:42,300 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Set currentTerm=3, votedFor=leader490 01:12:42,300 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 01:12:42,300 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 01:12:42,300 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 01:12:42,300 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Election: Leader has following peers: [follower492, follower491, downPeer] 01:12:42,300 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:42,300 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:12:42,301 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:12:42,301 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower492: Last sync leader does not match current leader leader490, need to catch up to -1 01:12:42,301 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower492 updated: matchIndex: -1, nextIndex: 0 01:12:42,301 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/09/2024 01:12:42.301] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower492] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7532887d 01:12:42,346 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:42,346 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:42,346 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 0 is present for follower follower492 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [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]]] 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:42,347 AM [test-akka.actor.default-dispatcher-12] [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]]] 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:12:42,347 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Number of entries to be appended = 1 01:12:42,347 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:12:42,347 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Append entry to log zero-1 01:12:42,347 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 01:12:42,347 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:12:42,347 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Log size is now 1 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 0 is present for follower follower492 01:12:42,347 AM [test-akka.actor.default-dispatcher-12] [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] 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:42,347 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower492: Lagging 0 entries behind leader leader490 and reached -1 (of expected -1) 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower492 updated: matchIndex: 0, nextIndex: 1 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 0 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from -1 to 0 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 0 data zero-1 [WARN] [03/09/2024 01:12:42.347] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower492] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@45b37c36 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: zero-1 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 1 is present for follower follower492 01:12:42,347 AM [test-akka.actor.default-dispatcher-16] [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]]] 01:12:42,348 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [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]]] 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Number of entries to be appended = 1 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Append entry to log one-1 01:12:42,348 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persisting ApplyJournalEntries with index=0 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Log size is now 2 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Commit index set to 0 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower492, logLastIndex=1, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower492: Lagging 0 entries behind leader leader490 and reached 0 (of expected -1) 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Setting last applied to 0 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Moving last applied index from -1 to 0 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Applying state for log index 0 data zero-1 01:12:42,348 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:12:42,348 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: applyState called: zero-1 01:12:42,348 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Persisting ApplyJournalEntries with index=0 01:12:42,348 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 01:12:42,348 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:12:42,348 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 1 is present for follower follower492 01:12:42,348 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:12:42,348 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower492 updated: matchIndex: 1, nextIndex: 2 01:12:42,348 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:12:42,348 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 1 01:12:42,348 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from 0 to 1 01:12:42,348 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 1 data one-1 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: one-1 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 2 is present for follower follower492 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Sending AppendEntries to follower follower492: AppendEntries [leaderId=leader490, prevLogIndex=1, prevLogTerm=3, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persisting ApplyJournalEntries with index=1 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): handleAppendEntries: AppendEntries [leaderId=leader490, prevLogIndex=1, prevLogTerm=3, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Number of entries to be appended = 1 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Append entry to log two-1 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=three-1}, logIndex: 3, isSendImmediate: true 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Log size is now 3 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: -1 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Commit index set to 1 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 2 is present for follower follower492 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [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] 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower492: Lagging 0 entries behind leader leader490 and reached 1 (of expected -1) 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 2 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Setting last applied to 1 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Moving last applied index from 0 to 1 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower492 updated: matchIndex: 2, nextIndex: 3 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Applying state for log index 1 data one-1 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 2 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from 1 to 2 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 2 data two-1 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: two-1 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: applyState called: one-1 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: -1 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 3 is present for follower follower492 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [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]]] 01:12:42,349 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Persisting ApplyJournalEntries with index=1 01:12:42,349 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 01:12:42,350 AM [test-akka.actor.default-dispatcher-17] [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]]] 01:12:42,350 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Number of entries to be appended = 1 01:12:42,350 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persisting ApplyJournalEntries with index=2 01:12:42,350 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 01:12:42,350 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Append entry to log three-1 01:12:42,350 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 01:12:42,350 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 01:12:42,350 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persist data SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 01:12:42,350 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 01:12:42,350 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Log size is now 4 01:12:42,350 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Commit index set to 2 01:12:42,350 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower492, logLastIndex=3, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:12:42,350 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Replicate message: identifier: MockIdentifier{value=four-1}, logIndex: 4, isSendImmediate: true 01:12:42,350 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower492: Lagging 0 entries behind leader leader490 and reached 2 (of expected -1) 01:12:42,350 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 3 01:12:42,350 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Setting last applied to 2 01:12:42,350 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Moving last applied index from 1 to 2 01:12:42,350 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:12:42,350 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Applying state for log index 2 data two-1 01:12:42,350 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 3 is present for follower follower492 01:12:42,350 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:12:42,350 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: applyState called: two-1 01:12:42,350 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower492 updated: matchIndex: 3, nextIndex: 4 01:12:42,350 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 01:12:42,350 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 3 01:12:42,350 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from 2 to 3 01:12:42,350 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 3 data three-1 01:12:42,350 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Persisting ApplyJournalEntries with index=2 01:12:42,350 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: three-1 01:12:42,350 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:12:42,350 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 4 is present for follower follower492 01:12:42,350 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Sending AppendEntries to follower follower492: AppendEntries [leaderId=leader490, prevLogIndex=3, prevLogTerm=3, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 01:12:42,350 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 01:12:42,350 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persisting ApplyJournalEntries with index=3 01:12:42,350 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): handleAppendEntries: AppendEntries [leaderId=leader490, prevLogIndex=3, prevLogTerm=3, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 01:12:42,350 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Number of entries to be appended = 1 01:12:42,350 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 01:12:42,350 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Append entry to log four-1 01:12:42,350 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 01:12:42,350 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 01:12:42,350 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Log size is now 5 01:12:42,350 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Commit index set to 3 01:12:42,350 AM [test-akka.actor.default-dispatcher-16] [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] 01:12:42,350 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower492: Lagging 0 entries behind leader leader490 and reached 3 (of expected -1) 01:12:42,350 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 4 01:12:42,350 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Setting last applied to 3 01:12:42,350 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower492 updated: matchIndex: 4, nextIndex: 5 01:12:42,350 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Moving last applied index from 2 to 3 01:12:42,350 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 01:12:42,350 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Applying state for log index 3 data three-1 01:12:42,351 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Setting last applied to 4 01:12:42,351 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Moving last applied index from 3 to 4 01:12:42,351 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Applying state for log index 4 data four-1 01:12:42,351 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: applyState called: four-1 01:12:42,351 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower492: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:12:42,351 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: applyState called: three-1 01:12:42,351 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Commit index set to 4 01:12:42,351 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Persisting ApplyJournalEntries with index=4 01:12:42,351 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower492: Lagging 0 entries behind leader leader490 and reached 4 (of expected -1) 01:12:42,351 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 4 01:12:42,351 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492 (Follower): Setting last applied to 4 01:12:42,351 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Moving last applied index from 3 to 4 01:12:42,351 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Applying state for log index 4 data four-1 01:12:42,351 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: applyState called: four-1 01:12:42,351 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Persisting ApplyJournalEntries with index=3 01:12:42,351 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower492: Persisting ApplyJournalEntries with index=4 01:12:42,418 AM [test-akka.actor.default-dispatcher-6] [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 01:12:42,418 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Set currentTerm=3, votedFor=null 01:12:42,418 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower491: Lagging -3 entries behind leader leader490 and reached 2 (of expected -1) 01:12:42,418 AM [test-akka.actor.default-dispatcher-10] [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 01:12:42,418 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:12:42,418 AM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 1 is present for follower follower491 01:12:42,418 AM [test-akka.actor.default-dispatcher-10] [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]]] 01:12:42,419 AM [test-akka.actor.default-dispatcher-12] [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]]] 01:12:42,419 AM [test-akka.actor.default-dispatcher-12] [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 01:12:42,419 AM [test-akka.actor.default-dispatcher-12] [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] 01:12:42,419 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower491: Lagging 2 entries behind leader leader490 and reached 2 (of expected -1) 01:12:42,419 AM [test-akka.actor.default-dispatcher-6] [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 01:12:42,419 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): follower follower491 last log term 2 conflicts with the leader's 3 - dec next index to 0 01:12:42,419 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Checking sendAppendEntries for follower follower491: active: true, followerNextIndex: 0, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:12:42,419 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendAppendEntries: 0 is present for follower follower491 01:12:42,420 AM [test-akka.actor.default-dispatcher-6] [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]]] 01:12:42,420 AM [test-akka.actor.default-dispatcher-6] [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]]] 01:12:42,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Number of entries to be appended = 5 01:12:42,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: -1 01:12:42,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] is present: existingEntryTerm: 2 01:12:42,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:12:42,420 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Removing entries from log starting at 1, commitIndex: 2, lastApplied: 2 01:12:42,420 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Could not remove entries - sending reply to force snapshot 01:12:42,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower491: Lagging 2 entries behind leader leader490 and reached 2 (of expected -1) 01:12:42,420 AM [test-akka.actor.default-dispatcher-6] [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 01:12:42,420 AM [test-akka.actor.default-dispatcher-6] [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 01:12:42,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: lastSequenceNumber prior to capture: -1 01:12:42,421 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: CaptureSnapshotReply received by actor 01:12:42,421 AM [test-akka.actor.default-dispatcher-6] [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]]]] 01:12:42,421 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:12:42,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): sendInstallSnapshot 01:12:42,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader490 (Leader): Snapshot 390 bytes, total chunks to send: 1 01:12:42,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader490 (Leader): Next chunk: total length=390, offset=0, size=390, hashCode=-929342248 01:12:42,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): next snapshot chunk size for follower follower491: 390 01:12:42,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): InstallSnapshot sent to follower Vector(user, follower491), Chunk: 1/1 01:12:42,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: Snapshot success - sequence number: -1 01:12:42,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490: SnapshotComplete received 01:12:42,422 AM [test-akka.actor.default-dispatcher-6] [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]]]] 01:12:42,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower491: Lagging 2 entries behind leader leader490 and reached 2 (of expected -1) 01:12:42,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:12:42,422 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): Snapshot installed from leader: leader490 01:12:42,423 AM [test-akka.actor.default-dispatcher-6] [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]]]] 01:12:42,423 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 01:12:42,423 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Snapshot success - sequence number: -1 01:12:42,423 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Moving last applied index from 2 to 4 01:12:42,423 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: Set currentTerm=3, votedFor=null 01:12:42,423 AM [test-akka.actor.default-dispatcher-6] [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]] 01:12:42,423 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: applySnapshot called 01:12:42,423 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower491, chunkIndex=1, success=true] 01:12:42,423 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower491: SnapshotComplete received 01:12:42,423 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower491, chunkIndex=1, success=true] 01:12:42,423 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader490 (Leader): Snapshot successfully installed on follower follower491 (last chunk 1) - matchIndex set to 4, nextIndex set to 5 01:12:42,448 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart ending 01:12:42,448 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower491-collector493#-286549372] 01:12:42,459 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower491] 01:12:42,459 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader490-collector494#437921671] 01:12:42,459 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader490] 01:12:42,459 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower492-collector495#-214817916] 01:12:42,459 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower492] 01:12:42,460 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader490-collector496#8114455] 01:12:42,460 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader490] [INFO] [03/09/2024 01:12:42.460] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:12:42,461 AM [test-akka.actor.default-dispatcher-10] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/09/2024 01:12:42.464] [test-akka.actor.default-dispatcher-12] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.255:25520) [INFO] [03/09/2024 01:12:42.466] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - Exiting completed [INFO] [03/09/2024 01:12:42.466] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - Shutting down... 01:12:42,466 AM [test-akka.actor.default-dispatcher-10] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - Exiting completed 01:12:42,466 AM [test-akka.actor.default-dispatcher-10] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - Shutting down... 01:12:42,466 AM [test-akka.actor.default-dispatcher-10] [INFO] Cluster - Cluster Node [akka://test@10.30.170.255:25520] - Successfully shut down [INFO] [03/09/2024 01:12:42.466] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.255:25520] - Successfully shut down [INFO] [03/09/2024 01:12:42.468] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.255:25520/system/remoting-terminator] Shutting down remote daemon. 01:12:42,468 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [03/09/2024 01:12:42.468] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.255:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 01:12:42,468 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/09/2024 01:12:42.471] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.255:25520/system/remoting-terminator] Remoting shut down. 01:12:42,471 AM [test-akka.actor.default-dispatcher-10] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [03/09/2024 01:12:42.471] [test-akka.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger