[DEBUG] [03/19/2024 13:53:46.743] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:53:46,744 PM [test-akka.actor.default-dispatcher-7] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/19/2024 13:53:46.744] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/19/2024 13:53:46.744] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/19/2024 13:53:46.764] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.52:25520] with UID [1774108548901047132] 01:53:46,764 PM [test-akka.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.52:25520] with UID [1774108548901047132] [INFO] [03/19/2024 13:53:46.765] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.52:25520] - Starting up, Akka version [2.6.21] ... 01:53:46,765 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.52:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/19/2024 13:53:46.768] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.52:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/19/2024 13:53:46.768] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.52:25520] - Started up successfully 01:53:46,768 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.52:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:53:46,768 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.52:25520] - Started up successfully 01:53:46,773 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.52:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:53:46,773 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.52:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [03/19/2024 13:53:46.773] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.52:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/19/2024 13:53:46.773] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.52:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:53:46,788 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerLeaderStateChanges [WARN] [03/19/2024 13:53:46.792] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower575]: org.opendaylight.controller.cluster.common.actor.Monitor@2823ee77 [INFO] [akkaDeadLetter][03/19/2024 13:53:46.792] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower575] 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:53:46,793 PM [test-akka.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower575] 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:53:46,793 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower575 with journal batch size 1000 01:53:46,809 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower575: Set currentTerm=1, votedFor=leader574 01:53:46,809 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower575: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:53:46,809 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower575: Updated server config: isVoting: false, peers: [PeerInfo [id=leader574, address=akka://test/user/leader574, votingState=VOTING]] 01:53:46,810 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower575: 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/19/2024 13:53:46.893] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader574]: org.opendaylight.controller.cluster.common.actor.Monitor@315775e6 [INFO] [akkaDeadLetter][03/19/2024 13:53:46.893] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader574] 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:53:46,894 PM [test-akka.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader574] 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:53:46,894 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader574 with journal batch size 1000 01:53:46,896 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574: Set currentTerm=1, votedFor=leader574 01:53:46,896 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:53:46,896 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574: Updated server config: isVoting: true, peers: [PeerInfo [id=follower575, address=akka://test/user/follower575, votingState=NON_VOTING]] 01:53:46,897 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader574: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:53:47,351 PM [test-akka.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:53:47,351 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.52:25520, Removed) 01:53:47,351 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Follower): Received ElectionTimeout - switching to Candidate 01:53:47,351 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Candidate): Election: Candidate has following voting peers: [] 01:53:47,351 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574: Set currentTerm=2, votedFor=leader574 01:53:47,351 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Candidate): Starting new election term 2 01:53:47,351 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:53:47,353 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Candidate): Received ElectionTimeout 01:53:47,353 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Leader): Election: Leader has following peers: [follower575] 01:53:47,353 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Leader): Checking sendAppendEntries for follower follower575: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:53:47,353 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:53:47,353 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower575 (Follower): Term 2 in "AppendEntries [leaderId=leader574, 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:53:47,353 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower575: Set currentTerm=2, votedFor=null 01:53:47,353 PM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower575: Last sync leader does not match current leader leader574, need to catch up to -1 01:53:47,354 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower575 updated: matchIndex: -1, nextIndex: 0 01:53:47,354 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Leader): Checking sendAppendEntries for follower follower575: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/19/2024 13:53:47.354] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower575] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@607f565d [INFO] [akkaDeadLetter][03/19/2024 13:53:47.354] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower575] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower575] 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:53:47,355 PM [test-akka.actor.default-dispatcher-11] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower575] 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:53:47,405 PM [test-akka.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:53:47,711 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower575: Lagging 0 entries behind leader leader574 and reached -1 (of expected -1) [WARN] [03/19/2024 13:53:47.712] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower575] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@18c90416 [INFO] [akkaDeadLetter][03/19/2024 13:53:47.712] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower575] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower575] 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:53:47,712 PM [test-akka.actor.default-dispatcher-6] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower575] 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:53:47,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/roleChangeNotifier577#-1654199559] 01:53:47,769 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower575-collector578#1364410562] 01:53:47,769 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower575] 01:53:47,769 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader574-collector579#497710324] 01:53:47,769 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader574] 01:53:47,770 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart starting [WARN] [03/19/2024 13:53:47.780] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower581]: org.opendaylight.controller.cluster.common.actor.Monitor@3aad6341 [INFO] [akkaDeadLetter][03/19/2024 13:53:47.780] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower581] 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:53:47,780 PM [test-akka.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower581] 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:53:47,780 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower581 with journal batch size 1000 01:53:47,782 PM [test-akka.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader580] 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'. [WARN] [03/19/2024 13:53:47.782] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader580]: org.opendaylight.controller.cluster.common.actor.Monitor@4d36f91f [INFO] [akkaDeadLetter][03/19/2024 13:53:47.782] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader580] 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:53:47,783 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Set currentTerm=1, votedFor=leader580 01:53:47,783 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader580 with journal batch size 1000 01:53:47,783 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:53:47,783 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Updated server config: isVoting: false, peers: [PeerInfo [id=leader580, address=akka://test/user/leader580, votingState=VOTING]] 01:53:47,783 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:53:47,789 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Set currentTerm=1, votedFor=leader580 01:53:47,789 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:53:47,789 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Updated server config: isVoting: true, peers: [PeerInfo [id=follower581, address=akka://test/user/follower581, votingState=NON_VOTING]] 01:53:47,789 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:53:48,261 PM [test-akka.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:53:48,261 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.52:25520, Removed) 01:53:48,261 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Follower): Received ElectionTimeout - switching to Candidate 01:53:48,261 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate): Election: Candidate has following voting peers: [] 01:53:48,261 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Set currentTerm=2, votedFor=leader580 01:53:48,261 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate): Starting new election term 2 01:53:48,261 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:53:48,262 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate): Received ElectionTimeout 01:53:48,263 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Election: Leader has following peers: [follower581] 01:53:48,263 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:53:48,263 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:53:48,263 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Term 2 in "AppendEntries [leaderId=leader580, 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:53:48,263 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Set currentTerm=2, votedFor=null 01:53:48,263 PM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower581: Last sync leader does not match current leader leader580, need to catch up to -1 01:53:48,263 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower581 updated: matchIndex: -1, nextIndex: 0 01:53:48,263 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/19/2024 13:53:48.264] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower581] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4e5f73aa [INFO] [akkaDeadLetter][03/19/2024 13:53:48.264] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower581] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower581] 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:53:48,264 PM [test-akka.actor.default-dispatcher-7] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower581] 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:53:48,285 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:48,285 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:48,286 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:48,286 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Setting last applied to 0 01:53:48,286 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Moving last applied index from -1 to 0 01:53:48,286 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Applying state for log index 0 data zero 01:53:48,286 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: applyState called: zero 01:53:48,286 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:53:48,286 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): sendAppendEntries: 0 is present for follower follower581 01:53:48,286 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Sending AppendEntries to follower follower581: AppendEntries [leaderId=leader580, 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:53:48,286 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persisting ApplyJournalEntries with index=0 01:53:48,286 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries: AppendEntries [leaderId=leader580, 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:53:48,286 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:48,286 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Number of entries to be appended = 1 01:53:48,286 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:53:48,286 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Append entry to log zero 01:53:48,286 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:48,286 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:48,286 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Log size is now 1 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Commit index set to 0 01:53:48,287 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:48,287 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower581, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower581: Lagging 0 entries behind leader leader580 and reached 0 (of expected -1) 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:53:48,287 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Setting last applied to 0 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Moving last applied index from -1 to 0 01:53:48,287 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Setting last applied to 1 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Applying state for log index 0 data zero 01:53:48,287 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Moving last applied index from 0 to 1 01:53:48,287 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Applying state for log index 1 data one 01:53:48,287 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: applyState called: one 01:53:48,287 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:53:48,287 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): sendAppendEntries: 0 is present for follower follower581 01:53:48,287 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Sending AppendEntries to follower follower581: AppendEntries [leaderId=leader580, 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:53:48,287 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower581 updated: matchIndex: 0, nextIndex: 1 01:53:48,287 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: fakeSnapshot purging log to 0 for term 2 01:53:48,287 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: applyState called: zero 01:53:48,287 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): sendAppendEntries: 1 is present for follower follower581 01:53:48,287 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Sending AppendEntries to follower follower581: AppendEntries [leaderId=leader580, 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:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries: AppendEntries [leaderId=leader580, 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:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Number of entries to be appended = 2 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 01:53:48,287 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persisting ApplyJournalEntries with index=1 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Append entry to log one 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:48,287 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Log size is now 2 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Commit index set to 1 01:53:48,287 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower581, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:48,287 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower581: Lagging 0 entries behind leader leader580 and reached 1 (of expected -1) 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:53:48,287 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Setting last applied to 1 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Moving last applied index from 0 to 1 01:53:48,287 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Setting last applied to 2 01:53:48,287 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Moving last applied index from 1 to 2 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Applying state for log index 1 data one 01:53:48,287 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Applying state for log index 2 data two 01:53:48,287 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: applyState called: two 01:53:48,287 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: applyState called: one 01:53:48,288 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:53:48,288 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): sendAppendEntries: 1 is present for follower follower581 01:53:48,288 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Sending AppendEntries to follower follower581: AppendEntries [leaderId=leader580, 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:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Persisting ApplyJournalEntries with index=0 01:53:48,288 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower581 updated: matchIndex: 1, nextIndex: 2 01:53:48,288 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: fakeSnapshot purging log to 1 for term 2 01:53:48,288 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:53:48,288 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): sendAppendEntries: 2 is present for follower follower581 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries: AppendEntries [leaderId=leader580, 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:53:48,288 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Sending AppendEntries to follower follower581: AppendEntries [leaderId=leader580, 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:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Number of entries to be appended = 1 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Log size is now 2 01:53:48,288 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persisting ApplyJournalEntries with index=2 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower581, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:48,288 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower581: Lagging 0 entries behind leader leader580 and reached 1 (of expected -1) 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: fakeSnapshot purging log to 0 for term 2 01:53:48,288 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): sendAppendEntries: 2 is present for follower follower581 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Persisting ApplyJournalEntries with index=1 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries: AppendEntries [leaderId=leader580, 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:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Number of entries to be appended = 2 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Append entry to log two 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Log size is now 2 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Commit index set to 2 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower581, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower581: Lagging 0 entries behind leader leader580 and reached 2 (of expected -1) 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:53:48,288 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower581 updated: matchIndex: 2, nextIndex: 3 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Setting last applied to 2 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Moving last applied index from 1 to 2 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Applying state for log index 2 data two 01:53:48,288 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: applyState called: two 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries: AppendEntries [leaderId=leader580, 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:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Number of entries to be appended = 1 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 01:53:48,288 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Log size is now 2 01:53:48,289 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower581, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:48,289 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower581: Lagging 0 entries behind leader leader580 and reached 2 (of expected -1) 01:53:48,289 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: fakeSnapshot purging log to 1 for term 2 01:53:48,289 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Persisting ApplyJournalEntries with index=2 [WARN] [03/19/2024 13:53:48.289] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower581] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@720c8e1c [INFO] [akkaDeadLetter][03/19/2024 13:53:48.289] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower581] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower581] 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:53:48,289 PM [test-akka.actor.default-dispatcher-7] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower581] 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/19/2024 13:53:48.348] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader580]: org.opendaylight.controller.cluster.common.actor.Monitor@bcf2a85 [INFO] [akkaDeadLetter][03/19/2024 13:53:48.349] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader580] 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:53:48,349 PM [test-akka.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader580] 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:53:48,349 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader580 with journal batch size 1000 01:53:48,352 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Set currentTerm=1, votedFor=leader580 01:53:48,352 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:53:48,352 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Updated server config: isVoting: true, peers: [PeerInfo [id=follower581, address=akka://test/user/follower581, votingState=NON_VOTING]] 01:53:48,352 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Set currentTerm=2, votedFor=leader580 01:53:48,352 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:53:48,802 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.52:25520, Removed) 01:53:48,802 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Follower): Received ElectionTimeout - switching to Candidate 01:53:48,802 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate): Election: Candidate has following voting peers: [] 01:53:48,802 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Set currentTerm=3, votedFor=leader580 01:53:48,802 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate): Starting new election term 3 01:53:48,802 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:53:48,803 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate): Received ElectionTimeout 01:53:48,803 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Election: Leader has following peers: [follower581] 01:53:48,804 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:53:48,804 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:53:48,806 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:48,806 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:48,806 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:48,806 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Setting last applied to 0 01:53:48,806 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Moving last applied index from -1 to 0 01:53:48,806 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Applying state for log index 0 data zero-1 01:53:48,806 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: applyState called: zero-1 01:53:48,806 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:53:48,806 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persisting ApplyJournalEntries with index=0 01:53:48,806 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:48,806 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:53:48,806 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:53:48,807 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:48,807 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Setting last applied to 1 01:53:48,807 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Moving last applied index from 0 to 1 01:53:48,807 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Applying state for log index 1 data one-1 01:53:48,807 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: applyState called: one-1 01:53:48,807 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:53:48,807 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persisting ApplyJournalEntries with index=1 01:53:48,807 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:53:48,921 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Term 3 in "AppendEntries [leaderId=leader580, 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:53:48,921 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Set currentTerm=3, votedFor=null 01:53:48,921 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower581: Lagging -3 entries behind leader leader580 and reached 2 (of expected -1) 01:53:48,922 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): handleAppendEntriesReply: follower follower581 lastIndex 2 is ahead of our lastIndex 1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 01:53:48,922 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: 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 follower581 01:53:48,922 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: lastSequenceNumber prior to capture: -1 01:53:48,923 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: CaptureSnapshotReply received by actor 01:53:48,925 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: 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=leader580, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower581, isVoting=false], ServerInfo[peerId=leader580, isVoting=true]]]] 01:53:48,925 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:53:48,925 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): sendInstallSnapshot 01:53:48,925 PM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader580 (Leader): Snapshot 333 bytes, total chunks to send: 1 01:53:48,925 PM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader580 (Leader): Next chunk: total length=333, offset=0, size=333, hashCode=878051978 01:53:48,925 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): next snapshot chunk size for follower follower581: 333 01:53:48,926 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): InstallSnapshot sent to follower Vector(user, follower581), Chunk: 1/1 01:53:48,926 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Snapshot success - sequence number: -1 01:53:48,926 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader580, lastIncludedIndex=1, lastIncludedTerm=3, datasize=333, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower581, isVoting=false], ServerInfo[peerId=leader580, isVoting=true]]]] 01:53:48,926 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: SnapshotComplete received 01:53:48,926 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower581: Lagging -1 entries behind leader leader580 and reached 2 (of expected -1) 01:53:48,926 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:53:48,926 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Snapshot installed from leader: leader580 01:53:48,926 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: 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=follower581, isVoting=false], ServerInfo[peerId=leader580, isVoting=true]]]] 01:53:48,926 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 01:53:48,926 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Snapshot success - sequence number: -1 01:53:48,926 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Moving last applied index from 2 to 1 01:53:48,926 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Set currentTerm=3, votedFor=null 01:53:48,926 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Updated server config: isVoting: false, peers: [PeerInfo [id=leader580, address=akka://test/user/leader580, votingState=VOTING]] 01:53:48,926 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: applySnapshot called 01:53:48,927 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower581, chunkIndex=1, success=true] 01:53:48,927 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: SnapshotComplete received 01:53:48,927 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower581, chunkIndex=1, success=true] 01:53:48,927 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Snapshot successfully installed on follower follower581 (last chunk 1) - matchIndex set to 1, nextIndex set to 2 01:53:48,927 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: fakeSnapshot purging log to 0 for term 3 01:53:48,957 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart ending 01:53:48,957 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower581-collector583#1979156116] 01:53:48,968 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower581] 01:53:48,970 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader580-collector584#-1498422800] 01:53:48,970 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader580] 01:53:48,970 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader580-collector585#-5204862] 01:53:48,971 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader580] 01:53:48,972 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart starting [WARN] [03/19/2024 13:53:48.974] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower587]: org.opendaylight.controller.cluster.common.actor.Monitor@772b9ae7 [INFO] [akkaDeadLetter][03/19/2024 13:53:48.974] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower587] 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:53:48,974 PM [test-akka.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower587] 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:53:48,974 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower587 with journal batch size 1000 01:53:48,976 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Set currentTerm=1, votedFor=leader586 01:53:48,977 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:53:48,977 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Updated server config: isVoting: false, peers: [PeerInfo [id=leader586, address=akka://test/user/leader586, votingState=VOTING]] 01:53:48,977 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: 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/19/2024 13:53:49.075] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader586]: org.opendaylight.controller.cluster.common.actor.Monitor@1a8fbb08 01:53:49,76 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader586 with journal batch size 1000 01:53:49,78 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Set currentTerm=1, votedFor=leader586 01:53:49,78 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:53:49,78 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Updated server config: isVoting: true, peers: [PeerInfo [id=follower587, address=akka://test/user/follower587, votingState=NON_VOTING]] 01:53:49,78 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:53:49,531 PM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:53:49,531 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.52:25520, Removed) 01:53:49,531 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Follower): Received ElectionTimeout - switching to Candidate 01:53:49,531 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate): Election: Candidate has following voting peers: [] 01:53:49,531 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Set currentTerm=2, votedFor=leader586 01:53:49,532 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate): Starting new election term 2 01:53:49,532 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:53:49,532 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate): Received ElectionTimeout 01:53:49,532 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Election: Leader has following peers: [follower587] 01:53:49,532 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:53:49,533 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:53:49,533 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Term 2 in "AppendEntries [leaderId=leader586, 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:53:49,533 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Set currentTerm=2, votedFor=null 01:53:49,533 PM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower587: Last sync leader does not match current leader leader586, need to catch up to -1 01:53:49,533 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower587 updated: matchIndex: -1, nextIndex: 0 01:53:49,533 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/19/2024 13:53:49.534] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower587] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5255dc13 01:53:49,588 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:49,588 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:49,588 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:49,589 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Setting last applied to 0 01:53:49,589 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Moving last applied index from -1 to 0 01:53:49,589 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Applying state for log index 0 data zero 01:53:49,589 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: applyState called: zero 01:53:49,589 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:53:49,589 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): sendAppendEntries: 0 is present for follower follower587 01:53:49,589 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Sending AppendEntries to follower follower587: AppendEntries [leaderId=leader586, 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:53:49,589 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persisting ApplyJournalEntries with index=0 01:53:49,589 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries: AppendEntries [leaderId=leader586, 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:53:49,589 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Number of entries to be appended = 1 01:53:49,589 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:53:49,589 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:49,589 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Append entry to log zero 01:53:49,589 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:49,589 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:49,589 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Log size is now 1 01:53:49,589 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Commit index set to 0 01:53:49,589 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:49,589 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:49,589 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower587, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:49,589 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower587: Lagging 0 entries behind leader leader586 and reached 0 (of expected -1) 01:53:49,589 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:49,589 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:53:49,589 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Setting last applied to 1 01:53:49,589 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Setting last applied to 0 01:53:49,589 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Moving last applied index from 0 to 1 01:53:49,589 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Moving last applied index from -1 to 0 01:53:49,589 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Applying state for log index 1 data one 01:53:49,589 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Applying state for log index 0 data zero 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: applyState called: zero 01:53:49,590 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: applyState called: one 01:53:49,590 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:53:49,590 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): sendAppendEntries: 0 is present for follower follower587 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Persisting ApplyJournalEntries with index=0 01:53:49,590 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Sending AppendEntries to follower follower587: AppendEntries [leaderId=leader586, 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:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries: AppendEntries [leaderId=leader586, 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:53:49,590 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower587 updated: matchIndex: 0, nextIndex: 1 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Number of entries to be appended = 2 01:53:49,590 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: fakeSnapshot purging log to 0 for term 2 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Append entry to log one 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:49,590 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:49,590 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): sendAppendEntries: 1 is present for follower follower587 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Log size is now 2 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Commit index set to 1 01:53:49,590 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Sending AppendEntries to follower follower587: AppendEntries [leaderId=leader586, 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:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower587, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower587: Lagging 0 entries behind leader leader586 and reached 1 (of expected -1) 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Setting last applied to 1 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Moving last applied index from 0 to 1 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Applying state for log index 1 data one 01:53:49,590 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: applyState called: one 01:53:49,590 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persisting ApplyJournalEntries with index=1 01:53:49,590 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries: AppendEntries [leaderId=leader586, 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:53:49,590 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:49,590 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Number of entries to be appended = 1 01:53:49,590 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 01:53:49,590 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:53:49,590 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Log size is now 2 01:53:49,590 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower587 updated: matchIndex: 1, nextIndex: 2 01:53:49,591 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower587, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:49,591 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:53:49,591 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower587: Lagging 0 entries behind leader leader586 and reached 1 (of expected -1) 01:53:49,591 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: fakeSnapshot purging log to 0 for term 2 01:53:49,591 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Persisting ApplyJournalEntries with index=1 01:53:49,591 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:53:49,591 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:53:49,591 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:49,591 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Setting last applied to 2 01:53:49,591 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Moving last applied index from 1 to 2 01:53:49,591 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Applying state for log index 2 data two [WARN] [03/19/2024 13:53:49.591] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower587] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3a5a6014 01:53:49,591 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: applyState called: two 01:53:49,591 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:53:49,591 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): sendAppendEntries: 2 is present for follower follower587 01:53:49,591 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Sending AppendEntries to follower follower587: AppendEntries [leaderId=leader586, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 01:53:49,591 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persisting ApplyJournalEntries with index=2 01:53:49,591 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries: AppendEntries [leaderId=leader586, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 01:53:49,591 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:53:49,591 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Number of entries to be appended = 1 01:53:49,591 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: fakeSnapshot purging log to 1 for term 2 01:53:49,591 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:53:49,591 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Append entry to log two 01:53:49,591 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:53:49,592 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:53:49,592 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Log size is now 2 01:53:49,592 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Commit index set to 2 01:53:49,592 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower587, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:49,592 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower587: Lagging 0 entries behind leader leader586 and reached 2 (of expected -1) 01:53:49,592 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:53:49,592 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Setting last applied to 2 01:53:49,592 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower587 updated: matchIndex: 2, nextIndex: 3 01:53:49,592 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Moving last applied index from 1 to 2 01:53:49,592 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Applying state for log index 2 data two 01:53:49,592 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:53:49,592 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: applyState called: two 01:53:49,592 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Persisting ApplyJournalEntries with index=2 [WARN] [03/19/2024 13:53:49.651] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader586]: org.opendaylight.controller.cluster.common.actor.Monitor@367539d8 01:53:49,652 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader586 with journal batch size 1000 01:53:49,654 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Set currentTerm=1, votedFor=leader586 01:53:49,654 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:53:49,655 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Updated server config: isVoting: true, peers: [PeerInfo [id=follower587, address=akka://test/user/follower587, votingState=NON_VOTING]] 01:53:49,655 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Set currentTerm=2, votedFor=leader586 01:53:49,655 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:53:50,131 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.52:25520, Removed) 01:53:50,131 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Follower): Received ElectionTimeout - switching to Candidate 01:53:50,131 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate): Election: Candidate has following voting peers: [] 01:53:50,131 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Set currentTerm=3, votedFor=leader586 01:53:50,131 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate): Starting new election term 3 01:53:50,131 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:53:50,132 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate): Received ElectionTimeout 01:53:50,133 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Election: Leader has following peers: [follower587] 01:53:50,133 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:53:50,133 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:53:50,133 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Term 3 in "AppendEntries [leaderId=leader586, 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:53:50,133 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Set currentTerm=3, votedFor=null 01:53:50,133 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower587: Lagging -3 entries behind leader leader586 and reached 2 (of expected -1) 01:53:50,133 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): handleAppendEntriesReply: follower follower587 lastIndex 2 is ahead of our lastIndex -1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 01:53:50,133 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 01:53:50,133 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: 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 follower587 01:53:50,133 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: lastSequenceNumber prior to capture: -1 01:53:50,133 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: CaptureSnapshotReply received by actor 01:53:50,133 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=3, electionVotedFor=leader586, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower587, isVoting=false], ServerInfo[peerId=leader586, isVoting=true]]]] 01:53:50,133 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:53:50,133 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): sendInstallSnapshot 01:53:50,133 PM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader586 (Leader): Snapshot 171 bytes, total chunks to send: 1 01:53:50,133 PM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader586 (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 01:53:50,133 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): next snapshot chunk size for follower follower587: 171 01:53:50,134 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): InstallSnapshot sent to follower Vector(user, follower587), Chunk: 1/1 01:53:50,134 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Snapshot success - sequence number: -1 01:53:50,134 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: SnapshotComplete received 01:53:50,134 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader586, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower587, isVoting=false], ServerInfo[peerId=leader586, isVoting=true]]]] 01:53:50,134 PM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower587: Lagging -3 entries behind leader leader586 and reached 2 (of expected -1) 01:53:50,134 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:53:50,134 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Snapshot installed from leader: leader586 01:53:50,134 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: 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=follower587, isVoting=false], ServerInfo[peerId=leader586, isVoting=true]]]] 01:53:50,134 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 01:53:50,134 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Snapshot success - sequence number: -1 01:53:50,134 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Moving last applied index from 2 to -1 01:53:50,134 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Set currentTerm=3, votedFor=null 01:53:50,134 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Updated server config: isVoting: false, peers: [PeerInfo [id=leader586, address=akka://test/user/leader586, votingState=VOTING]] 01:53:50,134 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: applySnapshot called 01:53:50,135 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower587, chunkIndex=1, success=true] 01:53:50,135 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower587, chunkIndex=1, success=true] 01:53:50,135 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: SnapshotComplete received 01:53:50,135 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Snapshot successfully installed on follower follower587 (last chunk 1) - matchIndex set to -1, nextIndex set to 0 01:53:50,154 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:50,154 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:50,154 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:50,154 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Setting last applied to 0 01:53:50,154 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Moving last applied index from -1 to 0 01:53:50,154 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Applying state for log index 0 data zero-1 01:53:50,154 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: applyState called: zero-1 01:53:50,154 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:53:50,154 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): sendAppendEntries: 0 is present for follower follower587 01:53:50,154 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Sending AppendEntries to follower follower587: AppendEntries [leaderId=leader586, 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:53:50,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persisting ApplyJournalEntries with index=0 01:53:50,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:50,155 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries: AppendEntries [leaderId=leader586, 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:53:50,155 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Number of entries to be appended = 1 01:53:50,155 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:53:50,155 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Append entry to log zero-1 01:53:50,155 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:50,155 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:50,155 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Log size is now 1 01:53:50,155 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Commit index set to 0 01:53:50,155 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower587, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:50,155 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower587: Lagging 0 entries behind leader leader586 and reached 0 (of expected -1) 01:53:50,155 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:53:50,155 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Setting last applied to 0 01:53:50,155 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Moving last applied index from -1 to 0 01:53:50,155 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Applying state for log index 0 data zero-1 01:53:50,155 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower587 updated: matchIndex: 0, nextIndex: 1 01:53:50,155 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: applyState called: zero-1 01:53:50,155 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Persisting ApplyJournalEntries with index=0 01:53:50,155 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:53:50,205 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart ending 01:53:50,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower587-collector589#1371458118] 01:53:50,216 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower587] 01:53:50,216 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader586-collector590#39972517] 01:53:50,216 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader586] 01:53:50,216 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader586-collector591#-674509226] 01:53:50,217 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader586] 01:53:50,218 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart starting [WARN] [03/19/2024 13:53:50.220] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower593]: org.opendaylight.controller.cluster.common.actor.Monitor@7731f14d 01:53:50,221 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower593 with journal batch size 1000 01:53:50,223 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Set currentTerm=1, votedFor=leader592 01:53:50,223 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:53:50,223 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Updated server config: isVoting: false, peers: [PeerInfo [id=leader592, address=akka://test/user/leader592, votingState=VOTING]] 01:53:50,223 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: 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/19/2024 13:53:50.321] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader592]: org.opendaylight.controller.cluster.common.actor.Monitor@591faced 01:53:50,322 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader592 with journal batch size 1000 01:53:50,326 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Set currentTerm=1, votedFor=leader592 01:53:50,326 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:53:50,326 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Updated server config: isVoting: true, peers: [PeerInfo [id=follower593, address=akka://test/user/follower593, votingState=NON_VOTING]] 01:53:50,326 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:53:50,771 PM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:53:50,771 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.52:25520, Removed) 01:53:50,771 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Follower): Received ElectionTimeout - switching to Candidate 01:53:50,771 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate): Election: Candidate has following voting peers: [] 01:53:50,771 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Set currentTerm=2, votedFor=leader592 01:53:50,771 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate): Starting new election term 2 01:53:50,771 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:53:50,772 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate): Received ElectionTimeout 01:53:50,772 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Election: Leader has following peers: [follower593] 01:53:50,772 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:53:50,773 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:53:50,773 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Term 2 in "AppendEntries [leaderId=leader592, 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:53:50,773 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Set currentTerm=2, votedFor=null 01:53:50,773 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower593: Last sync leader does not match current leader leader592, need to catch up to -1 01:53:50,773 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower593 updated: matchIndex: -1, nextIndex: 0 01:53:50,773 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/19/2024 13:53:50.774] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower593] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1852704a 01:53:50,775 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:50,775 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:50,776 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:50,776 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Setting last applied to 0 01:53:50,776 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Moving last applied index from -1 to 0 01:53:50,776 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Applying state for log index 0 data zero 01:53:50,776 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: applyState called: zero 01:53:50,776 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:53:50,776 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): sendAppendEntries: 0 is present for follower follower593 01:53:50,776 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Sending AppendEntries to follower follower593: AppendEntries [leaderId=leader592, 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:53:50,776 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persisting ApplyJournalEntries with index=0 01:53:50,776 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleAppendEntries: AppendEntries [leaderId=leader592, 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:53:50,776 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:50,776 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Number of entries to be appended = 1 01:53:50,776 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:53:50,776 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Append entry to log zero 01:53:50,776 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:50,776 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:50,776 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:50,776 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:50,776 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Log size is now 1 01:53:50,776 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Commit index set to 0 01:53:50,776 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:50,776 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower593, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:50,776 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Setting last applied to 1 01:53:50,776 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower593: Lagging 0 entries behind leader leader592 and reached 0 (of expected -1) 01:53:50,776 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Moving last applied index from 0 to 1 01:53:50,776 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Applying state for log index 1 data one 01:53:50,776 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:53:50,776 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Setting last applied to 0 01:53:50,776 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Moving last applied index from -1 to 0 01:53:50,776 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Applying state for log index 0 data zero 01:53:50,776 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: applyState called: one 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: applyState called: zero 01:53:50,777 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:53:50,777 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): sendAppendEntries: 0 is present for follower follower593 01:53:50,777 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Sending AppendEntries to follower follower593: AppendEntries [leaderId=leader592, 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:53:50,777 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower593 updated: matchIndex: 0, nextIndex: 1 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Persisting ApplyJournalEntries with index=0 01:53:50,777 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: fakeSnapshot purging log to 0 for term 2 01:53:50,777 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleAppendEntries: AppendEntries [leaderId=leader592, 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:53:50,777 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): sendAppendEntries: 1 is present for follower follower593 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Number of entries to be appended = 2 01:53:50,777 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Sending AppendEntries to follower follower593: AppendEntries [leaderId=leader592, 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:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Append entry to log one 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Log size is now 2 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Commit index set to 1 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower593, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:50,777 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persisting ApplyJournalEntries with index=1 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower593: Lagging 0 entries behind leader leader592 and reached 1 (of expected -1) 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Setting last applied to 1 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Moving last applied index from 0 to 1 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Applying state for log index 1 data one 01:53:50,777 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: applyState called: one 01:53:50,777 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower593 updated: matchIndex: 1, nextIndex: 2 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleAppendEntries: AppendEntries [leaderId=leader592, 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:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Number of entries to be appended = 1 01:53:50,777 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Log size is now 2 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower593, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower593: Lagging 0 entries behind leader leader592 and reached 1 (of expected -1) 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: fakeSnapshot purging log to 0 for term 2 01:53:50,777 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Persisting ApplyJournalEntries with index=1 [WARN] [03/19/2024 13:53:50.778] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower593] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@18ccad14 [WARN] [03/19/2024 13:53:50.840] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader592]: org.opendaylight.controller.cluster.common.actor.Monitor@41b1e73c 01:53:50,840 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader592 with journal batch size 1000 01:53:50,844 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Set currentTerm=1, votedFor=leader592 01:53:50,844 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:53:50,844 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Updated server config: isVoting: true, peers: [PeerInfo [id=follower593, address=akka://test/user/follower593, votingState=NON_VOTING]] 01:53:50,844 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Set currentTerm=2, votedFor=leader592 01:53:50,844 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:53:51,331 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.52:25520, Removed) 01:53:51,331 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Follower): Received ElectionTimeout - switching to Candidate 01:53:51,331 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate): Election: Candidate has following voting peers: [] 01:53:51,331 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Set currentTerm=3, votedFor=leader592 01:53:51,331 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate): Starting new election term 3 01:53:51,331 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:53:51,332 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate): Received ElectionTimeout 01:53:51,333 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Election: Leader has following peers: [follower593] 01:53:51,333 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:53:51,333 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:53:51,348 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:51,348 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:51,348 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:51,348 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Setting last applied to 0 01:53:51,348 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Moving last applied index from -1 to 0 01:53:51,348 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Applying state for log index 0 data zero-1 01:53:51,348 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: applyState called: zero-1 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persisting ApplyJournalEntries with index=0 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Setting last applied to 1 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Moving last applied index from 0 to 1 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Applying state for log index 1 data one-1 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: applyState called: one-1 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persisting ApplyJournalEntries with index=1 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Setting last applied to 2 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Moving last applied index from 1 to 2 01:53:51,349 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Applying state for log index 2 data two-1 01:53:51,350 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: applyState called: two-1 01:53:51,350 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:53:51,350 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persisting ApplyJournalEntries with index=2 01:53:51,350 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:53:51,452 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Term 3 in "AppendEntries [leaderId=leader592, 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:53:51,452 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Set currentTerm=3, votedFor=null 01:53:51,452 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower593: Lagging -2 entries behind leader leader592 and reached 1 (of expected -1) 01:53:51,452 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): handleAppendEntriesReply: follower follower593 last log term 2 for index 1 conflicts with the leader's 3 - set the follower's next index to 0 01:53:51,452 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:53:51,452 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): sendAppendEntries: 0 is present for follower follower593 01:53:51,452 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Sending AppendEntries to follower follower593: AppendEntries [leaderId=leader592, 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:53:51,453 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleAppendEntries: AppendEntries [leaderId=leader592, 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:53:51,453 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Number of entries to be appended = 3 01:53:51,453 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: 2 01:53:51,453 PM [test-akka.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:53:51,453 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Removing entries from log starting at 0, commitIndex: 1, lastApplied: 1 01:53:51,453 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Could not remove entries - sending reply to force snapshot 01:53:51,453 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower593: Lagging 1 entries behind leader leader592 and reached 1 (of expected -1) 01:53:51,453 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower593, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 01:53:51,453 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: 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 follower593 01:53:51,453 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: lastSequenceNumber prior to capture: -1 01:53:51,454 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: CaptureSnapshotReply received by actor 01:53:51,454 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: 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=leader592, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower593, isVoting=false], ServerInfo[peerId=leader592, isVoting=true]]]] 01:53:51,454 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:53:51,454 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): sendInstallSnapshot 01:53:51,454 PM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader592 (Leader): Snapshot 351 bytes, total chunks to send: 1 01:53:51,454 PM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader592 (Leader): Next chunk: total length=351, offset=0, size=351, hashCode=236499276 01:53:51,454 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): next snapshot chunk size for follower follower593: 351 01:53:51,454 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): InstallSnapshot sent to follower Vector(user, follower593), Chunk: 1/1 01:53:51,454 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Snapshot success - sequence number: -1 01:53:51,454 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: SnapshotComplete received 01:53:51,454 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader592, lastIncludedIndex=2, lastIncludedTerm=3, datasize=351, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower593, isVoting=false], ServerInfo[peerId=leader592, isVoting=true]]]] 01:53:51,454 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower593: Lagging 1 entries behind leader leader592 and reached 1 (of expected -1) 01:53:51,455 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:53:51,455 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Snapshot installed from leader: leader592 01:53:51,455 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: 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=follower593, isVoting=false], ServerInfo[peerId=leader592, isVoting=true]]]] 01:53:51,455 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 01:53:51,455 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Snapshot success - sequence number: -1 01:53:51,456 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Moving last applied index from 1 to 2 01:53:51,456 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Set currentTerm=3, votedFor=null 01:53:51,456 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Updated server config: isVoting: false, peers: [PeerInfo [id=leader592, address=akka://test/user/leader592, votingState=VOTING]] 01:53:51,456 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: applySnapshot called 01:53:51,456 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower593, chunkIndex=1, success=true] 01:53:51,456 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: SnapshotComplete received 01:53:51,456 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower593, chunkIndex=1, success=true] 01:53:51,456 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Snapshot successfully installed on follower follower593 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 01:53:51,456 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: fakeSnapshot purging log to 1 for term 3 01:53:51,500 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart ending 01:53:51,500 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower593-collector595#1779372756] 01:53:51,511 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower593] 01:53:51,511 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader592-collector596#-1664495289] 01:53:51,511 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader592] 01:53:51,512 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader592-collector597#1054728732] 01:53:51,512 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader592] 01:53:51,513 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart starting [WARN] [03/19/2024 13:53:51.524] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower599]: org.opendaylight.controller.cluster.common.actor.Monitor@4fe98f5 01:53:51,524 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower599 with journal batch size 1000 [WARN] [03/19/2024 13:53:51.526] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader598]: org.opendaylight.controller.cluster.common.actor.Monitor@2e219231 01:53:51,526 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Set currentTerm=1, votedFor=leader598 01:53:51,527 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:53:51,527 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Updated server config: isVoting: false, peers: [PeerInfo [id=leader598, address=akka://test/user/leader598, votingState=VOTING]] 01:53:51,527 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:53:51,529 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader598 with journal batch size 1000 01:53:51,531 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Set currentTerm=1, votedFor=leader598 01:53:51,531 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:53:51,531 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Updated server config: isVoting: true, peers: [PeerInfo [id=follower599, address=akka://test/user/follower599, votingState=NON_VOTING]] 01:53:51,531 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:53:51,981 PM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:53:51,981 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.52:25520, Removed) 01:53:51,981 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Follower): Received ElectionTimeout - switching to Candidate 01:53:51,981 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): Election: Candidate has following voting peers: [] 01:53:51,982 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Set currentTerm=2, votedFor=leader598 01:53:51,982 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): Starting new election term 2 01:53:51,982 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:53:51,983 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): Received ElectionTimeout 01:53:51,983 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Election: Leader has following peers: [follower599] 01:53:51,983 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:53:51,983 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:53:51,983 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Term 2 in "AppendEntries [leaderId=leader598, 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:53:51,983 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Set currentTerm=2, votedFor=null 01:53:51,984 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower599: Last sync leader does not match current leader leader598, need to catch up to -1 01:53:51,984 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower599 updated: matchIndex: -1, nextIndex: 0 01:53:51,984 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/19/2024 13:53:51.984] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower599] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5b6dda97 01:53:52,29 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:52,29 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:52,29 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:52,29 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 0 01:53:52,29 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from -1 to 0 01:53:52,29 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 0 data zero 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: zero 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 0 is present for follower follower599 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower599: AppendEntries [leaderId=leader598, 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:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persisting ApplyJournalEntries with index=0 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, 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:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Number of entries to be appended = 1 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Append entry to log zero 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Log size is now 1 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Commit index set to 0 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower599, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower599: Lagging 0 entries behind leader leader598 and reached 0 (of expected -1) 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Setting last applied to 0 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Moving last applied index from -1 to 0 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Applying state for log index 0 data zero 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: applyState called: zero 01:53:52,30 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Persisting ApplyJournalEntries with index=0 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower599 updated: matchIndex: 0, nextIndex: 1 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 1 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from 0 to 1 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 1 data one [WARN] [03/19/2024 13:53:52.031] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower599] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5773bab5 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: one 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 1 is present for follower follower599 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower599: AppendEntries [leaderId=leader598, 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:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, 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:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Number of entries to be appended = 1 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Append entry to log one 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Log size is now 2 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Commit index set to 1 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower599, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower599: Lagging 0 entries behind leader leader598 and reached 1 (of expected -1) 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Setting last applied to 1 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Moving last applied index from 0 to 1 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Applying state for log index 1 data one 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: applyState called: one 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Persisting ApplyJournalEntries with index=1 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persisting ApplyJournalEntries with index=1 01:53:52,31 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: fakeSnapshot purging log to 0 for term 2 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower599 updated: matchIndex: 1, nextIndex: 2 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 2 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from 1 to 2 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 2 data two 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: two 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 2 is present for follower follower599 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower599: AppendEntries [leaderId=leader598, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Number of entries to be appended = 1 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Append entry to log two 01:53:52,32 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persisting ApplyJournalEntries with index=2 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:53:52,32 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Log size is now 3 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Commit index set to 2 01:53:52,32 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: fakeSnapshot purging log to 1 for term 2 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower599, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower599: Lagging 0 entries behind leader leader598 and reached 2 (of expected -1) 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Setting last applied to 2 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Moving last applied index from 1 to 2 01:53:52,32 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower599 updated: matchIndex: 2, nextIndex: 3 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Applying state for log index 2 data two 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: applyState called: two 01:53:52,32 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: fakeSnapshot purging log to 0 for term 2 01:53:52,32 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Persisting ApplyJournalEntries with index=2 01:53:52,221 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower599: Lagging 0 entries behind leader leader598 and reached 2 (of expected -1) 01:53:52,221 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: fakeSnapshot purging log to 1 for term 2 [WARN] [03/19/2024 13:53:52.246] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower600]: org.opendaylight.controller.cluster.common.actor.Monitor@d821e59 01:53:52,247 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower600 with journal batch size 1000 01:53:52,248 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Received ReplicatedLogEntry for recovery: index: 0, size: 174 01:53:52,249 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Updated server config: isVoting: true, peers: [PeerInfo [id=leader598, address=akka://test/user/leader598, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING], PeerInfo [id=follower599, address=akka://test/user/follower599, votingState=NON_VOTING]] 01:53:52,249 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: 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/19/2024 13:53:52.251] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader598]: org.opendaylight.controller.cluster.common.actor.Monitor@7508ae5d 01:53:52,252 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader598 with journal batch size 1000 01:53:52,253 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Set currentTerm=2, votedFor=leader598 01:53:52,254 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Received ReplicatedLogEntry for recovery: index: 0, size: 174 01:53:52,254 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Updated server config: isVoting: true, peers: [PeerInfo [id=follower600, address=akka://test/user/follower600, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING], PeerInfo [id=follower599, address=akka://test/user/follower599, votingState=NON_VOTING]] 01:53:52,254 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:53:52,681 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.52:25520, Removed) 01:53:52,681 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Follower): Received ElectionTimeout - switching to Candidate 01:53:52,681 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): Election: Candidate has following voting peers: [follower600] 01:53:52,681 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Set currentTerm=3, votedFor=leader598 01:53:52,681 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): Starting new election term 3 01:53:52,681 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): Sending RequestVote [term=3, candidateId=leader598, lastLogIndex=-1, lastLogTerm=-1] to peer follower600 01:53:52,682 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:53:52,682 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:53:52,682 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Cluster state: [] 01:53:52,682 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=leader598, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 01:53:52,682 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Term 3 in "RequestVote [term=3, candidateId=leader598, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 01:53:52,682 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Set currentTerm=3, votedFor=null 01:53:52,682 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): In requestVote: RequestVote [term=3, candidateId=leader598, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 3, votedFor: null, lastIndex: -1, lastTerm: -1 01:53:52,682 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Set currentTerm=3, votedFor=leader598 01:53:52,682 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 01:53:52,683 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 01:53:52,683 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 01:53:52,683 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Election: Leader has following peers: [follower600, downPeer, follower599] 01:53:52,683 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:53:52,683 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:53:52,683 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:53:52,683 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower600: Last sync leader does not match current leader leader598, need to catch up to -1 01:53:52,683 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower600 updated: matchIndex: -1, nextIndex: 0 01:53:52,684 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/19/2024 13:53:52.684] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower600] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6fa7f40f 01:53:52,709 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:52,709 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:52,709 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:52,709 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:53:52,709 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 0 is present for follower follower600 01:53:52,709 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower600: AppendEntries [leaderId=leader598, 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:53:52,709 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:53:52,709 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:52,709 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, 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:53:52,709 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:53:52,709 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Number of entries to be appended = 1 01:53:52,709 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:53:52,709 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:53:52,709 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Append entry to log zero-1 01:53:52,709 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:52,709 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:53:52,710 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Log size is now 1 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:52,710 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower600, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:52,710 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower600: Lagging 0 entries behind leader leader598 and reached -1 (of expected -1) 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 0 is present for follower follower600 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower600 updated: matchIndex: 0, nextIndex: 1 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 0 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from -1 to 0 [WARN] [03/19/2024 13:53:52.710] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower600] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6d31c7d2 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 0 data zero-1 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: zero-1 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 1 is present for follower follower600 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower600: AppendEntries [leaderId=leader598, 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:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persisting ApplyJournalEntries with index=0 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:53:52,710 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, 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:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:53:52,710 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Number of entries to be appended = 1 01:53:52,710 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:52,710 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Append entry to log one-1 01:53:52,710 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:53:52,710 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:53:52,710 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 1 is present for follower follower600 01:53:52,710 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Log size is now 2 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:53:52,711 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Commit index set to 0 01:53:52,711 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower600, logLastIndex=1, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:52,711 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower600: Lagging 0 entries behind leader leader598 and reached 0 (of expected -1) 01:53:52,711 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 01:53:52,711 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Setting last applied to 0 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower600 updated: matchIndex: 1, nextIndex: 2 01:53:52,711 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Moving last applied index from -1 to 0 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:53:52,711 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Applying state for log index 0 data zero-1 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 1 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from 0 to 1 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 1 data one-1 01:53:52,711 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: applyState called: zero-1 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: one-1 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 2 is present for follower follower600 01:53:52,711 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Persisting ApplyJournalEntries with index=0 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower600: AppendEntries [leaderId=leader598, 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:53:52,711 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, 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:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:53:52,711 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Number of entries to be appended = 1 01:53:52,711 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:53:52,711 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Append entry to log two-1 01:53:52,711 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:53:52,711 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:53:52,711 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Log size is now 3 01:53:52,711 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Commit index set to 1 01:53:52,711 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower600, logLastIndex=2, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:52,711 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower600: Lagging 0 entries behind leader leader598 and reached 1 (of expected -1) 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persisting ApplyJournalEntries with index=1 01:53:52,711 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 2 01:53:52,711 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Setting last applied to 1 01:53:52,711 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Moving last applied index from 0 to 1 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower600 updated: matchIndex: 2, nextIndex: 3 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:53:52,711 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Applying state for log index 1 data one-1 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 2 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from 1 to 2 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 2 data two-1 01:53:52,711 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: applyState called: one-1 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: two-1 01:53:52,711 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Persisting ApplyJournalEntries with index=1 01:53:52,711 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persisting ApplyJournalEntries with index=2 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Commit index set to 2 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower600: Lagging 0 entries behind leader leader598 and reached 2 (of expected -1) 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Setting last applied to 2 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Moving last applied index from 1 to 2 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=three-1}, logIndex: 3, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Applying state for log index 2 data two-1 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: -1 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 3 is present for follower follower600 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower600: AppendEntries [leaderId=leader598, 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:53:52,712 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: applyState called: two-1 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, 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:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 3 is present for follower follower600 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Number of entries to be appended = 1 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Append entry to log three-1 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Log size is now 4 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower600, logLastIndex=3, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower600: Lagging 0 entries behind leader leader598 and reached 2 (of expected -1) 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=four-1}, logIndex: 4, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:53:52,712 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Persisting ApplyJournalEntries with index=2 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 3 is present for follower follower600 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower600 updated: matchIndex: 3, nextIndex: 4 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 3 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from 2 to 3 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 3 data three-1 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: three-1 01:53:52,712 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:53:52,713 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 4 is present for follower follower600 01:53:52,713 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower600: AppendEntries [leaderId=leader598, 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:53:52,713 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persisting ApplyJournalEntries with index=3 01:53:52,713 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, 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:53:52,713 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Number of entries to be appended = 1 01:53:52,713 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 01:53:52,713 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 01:53:52,713 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Append entry to log four-1 01:53:52,713 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 01:53:52,713 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 01:53:52,713 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Log size is now 5 01:53:52,713 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Commit index set to 3 01:53:52,713 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower600, logLastIndex=4, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:52,713 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower600: Lagging 0 entries behind leader leader598 and reached 3 (of expected -1) 01:53:52,713 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 4 01:53:52,713 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Setting last applied to 3 01:53:52,713 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Moving last applied index from 2 to 3 01:53:52,713 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Applying state for log index 3 data three-1 01:53:52,713 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower600 updated: matchIndex: 4, nextIndex: 5 01:53:52,713 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 01:53:52,713 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 4 01:53:52,713 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from 3 to 4 01:53:52,713 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 4 data four-1 01:53:52,713 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: applyState called: three-1 01:53:52,713 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: four-1 01:53:52,713 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Persisting ApplyJournalEntries with index=3 01:53:52,713 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:53:52,713 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persisting ApplyJournalEntries with index=4 01:53:52,713 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Commit index set to 4 01:53:52,713 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower600: Lagging 0 entries behind leader leader598 and reached 4 (of expected -1) 01:53:52,713 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 4 01:53:52,713 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Setting last applied to 4 01:53:52,713 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Moving last applied index from 3 to 4 01:53:52,713 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Applying state for log index 4 data four-1 01:53:52,713 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: applyState called: four-1 01:53:52,714 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Persisting ApplyJournalEntries with index=4 01:53:52,802 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Term 3 in "AppendEntries [leaderId=leader598, 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:53:52,802 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Set currentTerm=3, votedFor=null 01:53:52,802 PM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower599: Lagging -3 entries behind leader leader598 and reached 2 (of expected -1) 01:53:52,802 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply: follower follower599 last log term 2 for index 2 conflicts with the leader's 3 - set the follower's next index to 1 01:53:52,802 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:53:52,802 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 1 is present for follower follower599 01:53:52,803 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower599: AppendEntries [leaderId=leader598, 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:53:52,803 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, 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:53:52,803 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (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:53:52,803 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=3, success=false, followerId=follower599, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:53:52,803 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower599: Lagging 2 entries behind leader leader598 and reached 2 (of expected -1) 01:53:52,803 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower599, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 01:53:52,803 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): follower follower599 last log term 2 conflicts with the leader's 3 - dec next index to 0 01:53:52,803 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 0, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:53:52,803 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 0 is present for follower follower599 01:53:52,803 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower599: AppendEntries [leaderId=leader598, 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:53:52,804 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, 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:53:52,804 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Number of entries to be appended = 5 01:53:52,804 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: -1 01:53:52,804 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] is present: existingEntryTerm: 2 01:53:52,804 PM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:53:52,804 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Removing entries from log starting at 1, commitIndex: 2, lastApplied: 2 01:53:52,804 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Could not remove entries - sending reply to force snapshot 01:53:52,804 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower599: Lagging 2 entries behind leader leader598 and reached 2 (of expected -1) 01:53:52,804 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower599, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 01:53:52,804 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: 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 follower599 01:53:52,804 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: lastSequenceNumber prior to capture: -1 01:53:52,804 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: CaptureSnapshotReply received by actor 01:53:52,805 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: 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=leader598, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower600, isVoting=true], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=follower599, isVoting=false], ServerInfo[peerId=leader598, isVoting=true]]]] 01:53:52,805 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:53:52,805 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendInstallSnapshot 01:53:52,805 PM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader598 (Leader): Snapshot 390 bytes, total chunks to send: 1 01:53:52,805 PM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader598 (Leader): Next chunk: total length=390, offset=0, size=390, hashCode=-929342248 01:53:52,805 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): next snapshot chunk size for follower follower599: 390 01:53:52,805 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): InstallSnapshot sent to follower Vector(user, follower599), Chunk: 1/1 01:53:52,805 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Snapshot success - sequence number: -1 01:53:52,805 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: SnapshotComplete received 01:53:52,805 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader598, lastIncludedIndex=4, lastIncludedTerm=3, datasize=390, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower600, isVoting=true], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=follower599, isVoting=false], ServerInfo[peerId=leader598, isVoting=true]]]] 01:53:52,805 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower599: Lagging 2 entries behind leader leader598 and reached 2 (of expected -1) 01:53:52,805 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:53:52,805 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Snapshot installed from leader: leader598 01:53:52,806 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: 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=follower600, isVoting=true], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=follower599, isVoting=false], ServerInfo[peerId=leader598, isVoting=true]]]] 01:53:52,806 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 01:53:52,806 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Snapshot success - sequence number: -1 01:53:52,806 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Moving last applied index from 2 to 4 01:53:52,806 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Set currentTerm=3, votedFor=null 01:53:52,806 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Updated server config: isVoting: false, peers: [PeerInfo [id=leader598, address=akka://test/user/leader598, votingState=VOTING], PeerInfo [id=follower600, address=null, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 01:53:52,806 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: applySnapshot called 01:53:52,806 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower599, chunkIndex=1, success=true] 01:53:52,806 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: SnapshotComplete received 01:53:52,807 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower599, chunkIndex=1, success=true] 01:53:52,807 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Snapshot successfully installed on follower follower599 (last chunk 1) - matchIndex set to 4, nextIndex set to 5 01:53:52,810 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart ending 01:53:52,810 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower599-collector601#2115300745] 01:53:52,821 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower599] 01:53:52,821 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader598-collector602#-540666675] 01:53:52,822 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader598] 01:53:52,822 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower600-collector603#-1346820387] 01:53:52,822 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower600] 01:53:52,822 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader598-collector604#-802541178] 01:53:52,822 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader598] [INFO] [03/19/2024 13:53:52.823] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:53:52,823 PM [test-akka.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/19/2024 13:53:52.825] [test-akka.actor.default-dispatcher-16] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.52:25520) [INFO] [03/19/2024 13:53:52.825] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.52:25520] - Exiting completed [INFO] [03/19/2024 13:53:52.825] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.52:25520] - Shutting down... [INFO] [03/19/2024 13:53:52.826] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.52:25520] - Successfully shut down 01:53:52,826 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.52:25520] - Exiting completed 01:53:52,826 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.52:25520] - Shutting down... 01:53:52,826 PM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.52:25520] - Successfully shut down [INFO] [03/19/2024 13:53:52.829] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.170.52:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [03/19/2024 13:53:52.829] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.170.52:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 01:53:52,830 PM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 01:53:52,830 PM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/19/2024 13:53:52.832] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.52:25520/system/remoting-terminator] Remoting shut down. 01:53:52,833 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [03/19/2024 13:53:52.833] [test-akka.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger