[DEBUG] [08/31/2024 02:32:25.619] [main] [EventStream(akka://test)] logger log1-TestEventListener started 02:32:25,622 AM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/31/2024 02:32:25.623] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [08/31/2024 02:32:25.623] [main] [EventStream(akka://test)] Default Loggers started [INFO] [08/31/2024 02:32:25.650] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.23:25520] with UID [-1903974148097136042] 02:32:25,651 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.23:25520] with UID [-1903974148097136042] 02:32:25,652 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.23:25520] - Starting up, Akka version [2.6.21] ... [INFO] [08/31/2024 02:32:25.652] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.23:25520] - Starting up, Akka version [2.6.21] ... [INFO] [08/31/2024 02:32:25.676] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.23:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [08/31/2024 02:32:25.676] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.23:25520] - Started up successfully 02:32:25,677 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.23:25520] - Registered cluster JMX MBean [akka:type=Cluster] 02:32:25,677 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.23:25520] - Started up successfully [INFO] [08/31/2024 02:32:25.679] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.23:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [08/31/2024 02:32:25.679] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.23:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 02:32:25,679 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.23:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 02:32:25,679 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.23:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 02:32:25,699 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerLeaderStateChanges [WARN] [08/31/2024 02:32:25.709] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower104]: org.opendaylight.controller.cluster.common.actor.Monitor@77bf8a7f [INFO] [akkaDeadLetter][08/31/2024 02:32:25.708] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower104] 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'. 02:32:25,709 AM [test-akka.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower104] 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'. 02:32:25,710 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower104 with journal batch size 1000 02:32:25,715 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower104: Set currentTerm=1, votedFor=leader103 02:32:25,715 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower104: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:32:25,715 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower104: Updated server config: isVoting: false, peers: [PeerInfo [id=leader103, address=akka://test/user/leader103, votingState=VOTING]] 02:32:25,715 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower104: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [08/31/2024 02:32:25.810] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader103]: org.opendaylight.controller.cluster.common.actor.Monitor@2906d910 02:32:25,811 AM [test-akka.actor.default-dispatcher-13] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader103] 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'. [INFO] [akkaDeadLetter][08/31/2024 02:32:25.811] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader103] 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'. 02:32:25,812 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader103 with journal batch size 1000 02:32:25,814 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader103: Set currentTerm=1, votedFor=leader103 02:32:25,815 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader103: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:32:25,815 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader103: Updated server config: isVoting: true, peers: [PeerInfo [id=follower104, address=akka://test/user/follower104, votingState=NON_VOTING]] 02:32:25,815 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader103: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:32:26,277 AM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:32:26,277 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader103 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.23:25520, Removed) 02:32:26,277 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader103 (Follower): Received ElectionTimeout - switching to Candidate 02:32:26,277 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader103 (Candidate): Election: Candidate has following voting peers: [] 02:32:26,277 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader103: Set currentTerm=2, votedFor=leader103 02:32:26,277 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader103 (Candidate): Starting new election term 2 02:32:26,277 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader103 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:32:26,279 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader103 (Candidate): Received ElectionTimeout 02:32:26,279 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader103 (Leader): Election: Leader has following peers: [follower104] 02:32:26,279 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader103 (Leader): Checking sendAppendEntries for follower follower104: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:32:26,279 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader103 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:32:26,280 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower104 (Follower): Term 2 in "AppendEntries [leaderId=leader103, 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 02:32:26,280 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower104: Set currentTerm=2, votedFor=null 02:32:26,280 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower104: Last sync leader does not match current leader leader103, need to catch up to -1 02:32:26,280 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader103 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower104 updated: matchIndex: -1, nextIndex: 0 02:32:26,280 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader103 (Leader): Checking sendAppendEntries for follower follower104: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/31/2024 02:32:26.281] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower104] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3e071622 02:32:26,281 AM [test-akka.actor.default-dispatcher-12] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower104] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [akkaDeadLetter][08/31/2024 02:32:26.281] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower104] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower104] 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'. 02:32:26,340 AM [test-akka.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:32:26,757 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower104: Lagging 0 entries behind leader leader103 and reached -1 (of expected -1) 02:32:26,757 AM [test-akka.actor.default-dispatcher-13] [WARN] AbstractRaftActorIntegrationTest$TestRaftActor - leader103 (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply [term=2, success=true, followerId=follower104, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], timeSinceLastActivity : 476, lastApplied : -1, commitIndex : -1 [WARN] [08/31/2024 02:32:26.757] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower104] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@ad30497 02:32:26,758 AM [test-akka.actor.default-dispatcher-5] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower104] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [akkaDeadLetter][08/31/2024 02:32:26.757] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower104] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower104] 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'. 02:32:26,794 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/roleChangeNotifier106#-634207223] 02:32:26,807 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower104-collector107#2080476817] 02:32:26,808 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower104] 02:32:26,810 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader103-collector108#522060711] 02:32:26,810 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader103] 02:32:26,813 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart starting [WARN] [08/31/2024 02:32:26.816] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower110]: org.opendaylight.controller.cluster.common.actor.Monitor@77fab1d9 02:32:26,816 AM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower110] 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'. [INFO] [akkaDeadLetter][08/31/2024 02:32:26.816] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower110] 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'. 02:32:26,817 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower110 with journal batch size 1000 02:32:26,819 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Set currentTerm=1, votedFor=leader109 02:32:26,819 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:32:26,819 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Updated server config: isVoting: false, peers: [PeerInfo [id=leader109, address=akka://test/user/leader109, votingState=VOTING]] 02:32:26,820 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [08/31/2024 02:32:26.920] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader109]: org.opendaylight.controller.cluster.common.actor.Monitor@1b2a70c9 [INFO] [akkaDeadLetter][08/31/2024 02:32:26.920] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader109] 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'. 02:32:26,920 AM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader109] 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'. 02:32:26,921 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader109 with journal batch size 1000 02:32:26,924 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Set currentTerm=1, votedFor=leader109 02:32:26,924 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:32:26,924 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Updated server config: isVoting: true, peers: [PeerInfo [id=follower110, address=akka://test/user/follower110, votingState=NON_VOTING]] 02:32:26,924 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:32:27,376 AM [test-akka.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:32:27,376 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.23:25520, Removed) 02:32:27,376 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Follower): Received ElectionTimeout - switching to Candidate 02:32:27,377 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Candidate): Election: Candidate has following voting peers: [] 02:32:27,377 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Set currentTerm=2, votedFor=leader109 02:32:27,377 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Candidate): Starting new election term 2 02:32:27,377 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:32:27,378 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Candidate): Received ElectionTimeout 02:32:27,378 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Election: Leader has following peers: [follower110] 02:32:27,379 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Checking sendAppendEntries for follower follower110: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:32:27,379 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:32:27,379 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Term 2 in "AppendEntries [leaderId=leader109, 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 02:32:27,379 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Set currentTerm=2, votedFor=null 02:32:27,379 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower110: Last sync leader does not match current leader leader109, need to catch up to -1 02:32:27,379 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower110 updated: matchIndex: -1, nextIndex: 0 02:32:27,379 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/31/2024 02:32:27.380] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower110] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1849cb00 02:32:27,380 AM [test-akka.actor.default-dispatcher-5] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower110] 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'. [INFO] [akkaDeadLetter][08/31/2024 02:32:27.380] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower110] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower110] 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'. 02:32:27,424 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:27,424 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:27,425 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 02:32:27,425 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Setting last applied to 0 02:32:27,425 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Moving last applied index from -1 to 0 02:32:27,425 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Applying state for log index 0 data zero 02:32:27,426 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: applyState called: zero 02:32:27,426 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:32:27,426 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): sendAppendEntries: 0 is present for follower follower110 02:32:27,426 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Sending AppendEntries to follower follower110: AppendEntries [leaderId=leader109, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:32:27,426 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Persisting ApplyJournalEntries with index=0 02:32:27,426 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries: AppendEntries [leaderId=leader109, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:32:27,426 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:27,426 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Number of entries to be appended = 1 02:32:27,426 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:32:27,426 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:27,426 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:27,426 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Append entry to log zero 02:32:27,426 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 02:32:27,426 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:27,426 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Setting last applied to 1 02:32:27,426 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Moving last applied index from 0 to 1 02:32:27,426 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Applying state for log index 1 data one 02:32:27,426 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:27,427 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Log size is now 1 02:32:27,427 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Commit index set to 0 02:32:27,427 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: applyState called: one 02:32:27,427 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower110, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:27,427 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:32:27,427 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower110: Lagging 0 entries behind leader leader109 and reached 0 (of expected -1) 02:32:27,427 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): sendAppendEntries: 0 is present for follower follower110 02:32:27,427 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 02:32:27,427 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Setting last applied to 0 02:32:27,427 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Sending AppendEntries to follower follower110: AppendEntries [leaderId=leader109, 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]]] 02:32:27,427 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Moving last applied index from -1 to 0 02:32:27,427 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Applying state for log index 0 data zero 02:32:27,427 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Persisting ApplyJournalEntries with index=1 02:32:27,427 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower110 updated: matchIndex: 0, nextIndex: 1 02:32:27,427 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: applyState called: zero 02:32:27,427 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: fakeSnapshot purging log to 0 for term 2 02:32:27,427 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:32:27,427 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): sendAppendEntries: 1 is present for follower follower110 02:32:27,427 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries: AppendEntries [leaderId=leader109, 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]]] 02:32:27,427 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Sending AppendEntries to follower follower110: AppendEntries [leaderId=leader109, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:32:27,427 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Number of entries to be appended = 2 02:32:27,427 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:27,428 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:32:27,428 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:32:27,428 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:32:27,428 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:32:27,428 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Append entry to log one 02:32:27,428 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 02:32:27,428 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:27,428 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Setting last applied to 2 02:32:27,428 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:27,428 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Moving last applied index from 1 to 2 02:32:27,428 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Applying state for log index 2 data two 02:32:27,428 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Log size is now 2 02:32:27,428 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Commit index set to 1 02:32:27,428 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower110, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:27,428 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: applyState called: two 02:32:27,428 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower110: Lagging 0 entries behind leader leader109 and reached 1 (of expected -1) 02:32:27,428 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 02:32:27,428 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Setting last applied to 1 02:32:27,428 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 02:32:27,428 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Moving last applied index from 0 to 1 02:32:27,428 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): sendAppendEntries: 1 is present for follower follower110 02:32:27,428 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Applying state for log index 1 data one 02:32:27,428 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Sending AppendEntries to follower follower110: AppendEntries [leaderId=leader109, 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]]] 02:32:27,428 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: applyState called: one 02:32:27,428 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower110 updated: matchIndex: 1, nextIndex: 2 02:32:27,428 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: fakeSnapshot purging log to 1 for term 2 02:32:27,428 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 02:32:27,428 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): sendAppendEntries: 2 is present for follower follower110 02:32:27,428 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Persisting ApplyJournalEntries with index=0 02:32:27,428 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Sending AppendEntries to follower follower110: AppendEntries [leaderId=leader109, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 02:32:27,429 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Persisting ApplyJournalEntries with index=2 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries: AppendEntries [leaderId=leader109, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:32:27,429 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Number of entries to be appended = 1 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Log size is now 2 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower110, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower110: Lagging 0 entries behind leader leader109 and reached 1 (of expected -1) 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: fakeSnapshot purging log to 0 for term 2 02:32:27,429 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): sendAppendEntries: 2 is present for follower follower110 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries: AppendEntries [leaderId=leader109, 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]]] 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Number of entries to be appended = 2 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Append entry to log two 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Log size is now 2 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Commit index set to 2 02:32:27,429 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower110, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:27,430 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower110: Lagging 0 entries behind leader leader109 and reached 2 (of expected -1) 02:32:27,430 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:32:27,430 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower110 updated: matchIndex: 2, nextIndex: 3 02:32:27,430 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Setting last applied to 2 02:32:27,430 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Moving last applied index from 1 to 2 02:32:27,430 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Applying state for log index 2 data two 02:32:27,430 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Checking sendAppendEntries for follower follower110: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 02:32:27,430 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: applyState called: two 02:32:27,431 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Persisting ApplyJournalEntries with index=1 02:32:27,431 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries: AppendEntries [leaderId=leader109, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 02:32:27,431 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Number of entries to be appended = 1 02:32:27,431 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 02:32:27,431 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 02:32:27,431 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Log size is now 2 02:32:27,431 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower110, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:27,431 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower110: Lagging 0 entries behind leader leader109 and reached 2 (of expected -1) 02:32:27,432 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: fakeSnapshot purging log to 1 for term 2 02:32:27,432 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Persisting ApplyJournalEntries with index=2 [WARN] [08/31/2024 02:32:27.432] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower110] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@31c46d6d [INFO] [akkaDeadLetter][08/31/2024 02:32:27.432] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower110] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower110] 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'. 02:32:27,432 AM [test-akka.actor.default-dispatcher-12] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower110] 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'. 02:32:27,492 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader109 with journal batch size 1000 [WARN] [08/31/2024 02:32:27.492] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader109]: org.opendaylight.controller.cluster.common.actor.Monitor@73beaaec [INFO] [akkaDeadLetter][08/31/2024 02:32:27.493] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader109] 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'. 02:32:27,493 AM [test-akka.actor.default-dispatcher-17] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader109] 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'. 02:32:27,496 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Set currentTerm=1, votedFor=leader109 02:32:27,496 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:32:27,496 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Updated server config: isVoting: true, peers: [PeerInfo [id=follower110, address=akka://test/user/follower110, votingState=NON_VOTING]] 02:32:27,496 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Set currentTerm=2, votedFor=leader109 02:32:27,496 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:32:28,10 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.23:25520, Removed) 02:32:28,10 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Follower): Received ElectionTimeout - switching to Candidate 02:32:28,10 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Candidate): Election: Candidate has following voting peers: [] 02:32:28,10 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Set currentTerm=3, votedFor=leader109 02:32:28,10 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Candidate): Starting new election term 3 02:32:28,10 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 02:32:28,18 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Candidate): Received ElectionTimeout 02:32:28,18 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Election: Leader has following peers: [follower110] 02:32:28,18 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Checking sendAppendEntries for follower follower110: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:32:28,18 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 02:32:28,47 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:28,47 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:28,47 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 02:32:28,47 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Setting last applied to 0 02:32:28,47 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Moving last applied index from -1 to 0 02:32:28,47 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Applying state for log index 0 data zero-1 02:32:28,47 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: applyState called: zero-1 02:32:28,47 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Checking sendAppendEntries for follower follower110: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:32:28,47 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Persisting ApplyJournalEntries with index=0 02:32:28,47 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:28,47 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:32:28,47 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:32:28,47 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 02:32:28,48 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Setting last applied to 1 02:32:28,48 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Moving last applied index from 0 to 1 02:32:28,48 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Applying state for log index 1 data one-1 02:32:28,48 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: applyState called: one-1 02:32:28,48 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Checking sendAppendEntries for follower follower110: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:32:28,48 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Persisting ApplyJournalEntries with index=1 02:32:28,48 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:32:28,137 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Term 3 in "AppendEntries [leaderId=leader109, 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 02:32:28,137 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Set currentTerm=3, votedFor=null 02:32:28,137 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower110: Lagging -3 entries behind leader leader109 and reached 2 (of expected -1) 02:32:28,137 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): handleAppendEntriesReply: follower follower110 lastIndex 2 is ahead of our lastIndex 1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 02:32:28,141 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: 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 follower110 02:32:28,141 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: lastSequenceNumber prior to capture: -1 02:32:28,146 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: CaptureSnapshotReply received by actor 02:32:28,147 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: 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=leader109, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower110, isVoting=false], ServerInfo[peerId=leader109, isVoting=true]]]] 02:32:28,148 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 02:32:28,152 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): sendInstallSnapshot 02:32:28,152 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader109 (Leader): Snapshot 333 bytes, total chunks to send: 1 02:32:28,152 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader109 (Leader): Next chunk: total length=333, offset=0, size=333, hashCode=878051978 02:32:28,152 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): next snapshot chunk size for follower follower110: 333 02:32:28,152 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): InstallSnapshot sent to follower Vector(user, follower110), Chunk: 1/1 02:32:28,152 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: Snapshot success - sequence number: -1 02:32:28,152 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: SnapshotComplete received 02:32:28,152 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader109, lastIncludedIndex=1, lastIncludedTerm=3, datasize=333, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower110, isVoting=false], ServerInfo[peerId=leader109, isVoting=true]]]] 02:32:28,157 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower110: Lagging -1 entries behind leader leader109 and reached 2 (of expected -1) 02:32:28,157 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:32:28,157 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): Snapshot installed from leader: leader109 02:32:28,164 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: 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=follower110, isVoting=false], ServerInfo[peerId=leader109, isVoting=true]]]] 02:32:28,164 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 02:32:28,164 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Snapshot success - sequence number: -1 02:32:28,164 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Moving last applied index from 2 to 1 02:32:28,164 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Set currentTerm=3, votedFor=null 02:32:28,164 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: Updated server config: isVoting: false, peers: [PeerInfo [id=leader109, address=akka://test/user/leader109, votingState=VOTING]] 02:32:28,164 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: applySnapshot called 02:32:28,164 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower110, chunkIndex=1, success=true] 02:32:28,166 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower110: SnapshotComplete received 02:32:28,166 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower110, chunkIndex=1, success=true] 02:32:28,166 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader109 (Leader): Snapshot successfully installed on follower follower110 (last chunk 1) - matchIndex set to 1, nextIndex set to 2 02:32:28,167 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader109: fakeSnapshot purging log to 0 for term 3 02:32:28,202 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart ending 02:32:28,202 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower110-collector112#1265690360] 02:32:28,214 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower110] 02:32:28,214 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader109-collector113#1259104015] 02:32:28,215 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader109] 02:32:28,215 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader109-collector114#-728091077] 02:32:28,216 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader109] 02:32:28,218 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart starting [WARN] [08/31/2024 02:32:28.221] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower116]: org.opendaylight.controller.cluster.common.actor.Monitor@54784e55 [INFO] [akkaDeadLetter][08/31/2024 02:32:28.221] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower116] 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'. 02:32:28,222 AM [test-akka.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower116] 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'. 02:32:28,222 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower116 with journal batch size 1000 02:32:28,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Set currentTerm=1, votedFor=leader115 02:32:28,224 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:32:28,225 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Updated server config: isVoting: false, peers: [PeerInfo [id=leader115, address=akka://test/user/leader115, votingState=VOTING]] 02:32:28,225 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [08/31/2024 02:32:28.324] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader115]: org.opendaylight.controller.cluster.common.actor.Monitor@138f4b1b 02:32:28,326 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader115 with journal batch size 1000 02:32:28,329 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Set currentTerm=1, votedFor=leader115 02:32:28,330 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:32:28,330 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Updated server config: isVoting: true, peers: [PeerInfo [id=follower116, address=akka://test/user/follower116, votingState=NON_VOTING]] 02:32:28,330 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:32:28,846 AM [test-akka.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:32:28,846 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.23:25520, Removed) 02:32:28,846 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Follower): Received ElectionTimeout - switching to Candidate 02:32:28,846 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Candidate): Election: Candidate has following voting peers: [] 02:32:28,846 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Set currentTerm=2, votedFor=leader115 02:32:28,847 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Candidate): Starting new election term 2 02:32:28,847 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:32:28,848 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Candidate): Received ElectionTimeout 02:32:28,848 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Election: Leader has following peers: [follower116] 02:32:28,848 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Checking sendAppendEntries for follower follower116: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:32:28,848 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:32:28,848 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Term 2 in "AppendEntries [leaderId=leader115, 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 02:32:28,848 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Set currentTerm=2, votedFor=null 02:32:28,849 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower116: Last sync leader does not match current leader leader115, need to catch up to -1 02:32:28,849 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower116 updated: matchIndex: -1, nextIndex: 0 02:32:28,849 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Checking sendAppendEntries for follower follower116: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/31/2024 02:32:28.849] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower116] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1b67e14f 02:32:28,880 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:28,880 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:28,880 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 02:32:28,880 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Setting last applied to 0 02:32:28,880 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Moving last applied index from -1 to 0 02:32:28,880 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Applying state for log index 0 data zero 02:32:28,880 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: applyState called: zero 02:32:28,880 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Checking sendAppendEntries for follower follower116: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:32:28,880 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): sendAppendEntries: 0 is present for follower follower116 02:32:28,880 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Sending AppendEntries to follower follower116: AppendEntries [leaderId=leader115, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:32:28,880 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Persisting ApplyJournalEntries with index=0 02:32:28,880 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): handleAppendEntries: AppendEntries [leaderId=leader115, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:32:28,880 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:28,880 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Number of entries to be appended = 1 02:32:28,881 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:32:28,881 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Append entry to log zero 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:28,881 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:28,881 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Setting last applied to 1 02:32:28,881 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Log size is now 1 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Moving last applied index from 0 to 1 02:32:28,881 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Commit index set to 0 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Applying state for log index 1 data one 02:32:28,881 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower116, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:28,881 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower116: Lagging 0 entries behind leader leader115 and reached 0 (of expected -1) 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: applyState called: one 02:32:28,881 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 02:32:28,881 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Setting last applied to 0 02:32:28,881 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Moving last applied index from -1 to 0 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Checking sendAppendEntries for follower follower116: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:32:28,881 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Applying state for log index 0 data zero 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): sendAppendEntries: 0 is present for follower follower116 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Sending AppendEntries to follower follower116: AppendEntries [leaderId=leader115, 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]]] 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower116 updated: matchIndex: 0, nextIndex: 1 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: fakeSnapshot purging log to 0 for term 2 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Checking sendAppendEntries for follower follower116: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): sendAppendEntries: 1 is present for follower follower116 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Sending AppendEntries to follower follower116: AppendEntries [leaderId=leader115, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:32:28,881 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: applyState called: zero 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Persisting ApplyJournalEntries with index=1 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:28,881 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): handleAppendEntries: AppendEntries [leaderId=leader115, 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]]] 02:32:28,881 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Number of entries to be appended = 2 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Append entry to log one 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Setting last applied to 2 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Moving last applied index from 1 to 2 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Applying state for log index 2 data two 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Log size is now 2 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Commit index set to 1 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower116, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: applyState called: two 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower116: Lagging 0 entries behind leader leader115 and reached 1 (of expected -1) 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Setting last applied to 1 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Checking sendAppendEntries for follower follower116: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Moving last applied index from 0 to 1 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): sendAppendEntries: 1 is present for follower follower116 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Applying state for log index 1 data one 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Sending AppendEntries to follower follower116: AppendEntries [leaderId=leader115, 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]]] 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower116 updated: matchIndex: 1, nextIndex: 2 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: fakeSnapshot purging log to 1 for term 2 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: applyState called: one 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Checking sendAppendEntries for follower follower116: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): sendAppendEntries: 2 is present for follower follower116 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Sending AppendEntries to follower follower116: AppendEntries [leaderId=leader115, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): handleAppendEntries: AppendEntries [leaderId=leader115, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Number of entries to be appended = 1 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Persisting ApplyJournalEntries with index=2 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:32:28,882 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Log size is now 2 02:32:28,882 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower116, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:28,883 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower116: Lagging 0 entries behind leader leader115 and reached 1 (of expected -1) 02:32:28,883 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: fakeSnapshot purging log to 0 for term 2 02:32:28,883 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): sendAppendEntries: 2 is present for follower follower116 02:32:28,883 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Persisting ApplyJournalEntries with index=0 02:32:28,883 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): handleAppendEntries: AppendEntries [leaderId=leader115, 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]]] 02:32:28,883 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Number of entries to be appended = 2 02:32:28,883 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:32:28,883 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:32:28,883 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Append entry to log two 02:32:28,883 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:32:28,883 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:32:28,883 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Log size is now 2 02:32:28,883 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Commit index set to 2 02:32:28,884 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower116, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:28,884 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower116: Lagging 0 entries behind leader leader115 and reached 2 (of expected -1) 02:32:28,884 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:32:28,884 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Setting last applied to 2 02:32:28,884 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Moving last applied index from 1 to 2 02:32:28,884 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Applying state for log index 2 data two 02:32:28,884 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower116 updated: matchIndex: 2, nextIndex: 3 02:32:28,884 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Checking sendAppendEntries for follower follower116: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 02:32:28,884 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: applyState called: two 02:32:28,884 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Persisting ApplyJournalEntries with index=1 02:32:28,884 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): handleAppendEntries: AppendEntries [leaderId=leader115, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 02:32:28,884 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Number of entries to be appended = 1 02:32:28,884 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 02:32:28,884 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 02:32:28,884 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Log size is now 2 02:32:28,885 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower116, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:28,885 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower116: Lagging 0 entries behind leader leader115 and reached 2 (of expected -1) 02:32:28,885 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: fakeSnapshot purging log to 1 for term 2 02:32:28,885 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Persisting ApplyJournalEntries with index=2 [WARN] [08/31/2024 02:32:28.885] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower116] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3df115c3 [WARN] [08/31/2024 02:32:28.945] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader115]: org.opendaylight.controller.cluster.common.actor.Monitor@5ab71ea6 02:32:28,946 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader115 with journal batch size 1000 02:32:28,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Set currentTerm=1, votedFor=leader115 02:32:28,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:32:28,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Updated server config: isVoting: true, peers: [PeerInfo [id=follower116, address=akka://test/user/follower116, votingState=NON_VOTING]] 02:32:28,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Set currentTerm=2, votedFor=leader115 02:32:28,955 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:32:29,417 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.23:25520, Removed) 02:32:29,417 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Follower): Received ElectionTimeout - switching to Candidate 02:32:29,417 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Candidate): Election: Candidate has following voting peers: [] 02:32:29,418 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Set currentTerm=3, votedFor=leader115 02:32:29,418 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Candidate): Starting new election term 3 02:32:29,418 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 02:32:29,419 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Candidate): Received ElectionTimeout 02:32:29,419 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Election: Leader has following peers: [follower116] 02:32:29,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Checking sendAppendEntries for follower follower116: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:32:29,420 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 02:32:29,420 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Term 3 in "AppendEntries [leaderId=leader115, 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 02:32:29,420 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Set currentTerm=3, votedFor=null 02:32:29,420 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower116: Lagging -3 entries behind leader leader115 and reached 2 (of expected -1) 02:32:29,420 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): handleAppendEntriesReply: follower follower116 lastIndex 2 is ahead of our lastIndex -1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 02:32:29,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 02:32:29,420 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: 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 follower116 02:32:29,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: lastSequenceNumber prior to capture: -1 02:32:29,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: CaptureSnapshotReply received by actor 02:32:29,422 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=3, electionVotedFor=leader115, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower116, isVoting=false], ServerInfo[peerId=leader115, isVoting=true]]]] 02:32:29,422 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 02:32:29,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): sendInstallSnapshot 02:32:29,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader115 (Leader): Snapshot 171 bytes, total chunks to send: 1 02:32:29,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader115 (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 02:32:29,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): next snapshot chunk size for follower follower116: 171 02:32:29,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): InstallSnapshot sent to follower Vector(user, follower116), Chunk: 1/1 02:32:29,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Snapshot success - sequence number: -1 02:32:29,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: SnapshotComplete received 02:32:29,423 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader115, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower116, isVoting=false], ServerInfo[peerId=leader115, isVoting=true]]]] 02:32:29,423 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower116: Lagging -3 entries behind leader leader115 and reached 2 (of expected -1) 02:32:29,423 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:32:29,423 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Snapshot installed from leader: leader115 02:32:29,424 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: 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=follower116, isVoting=false], ServerInfo[peerId=leader115, isVoting=true]]]] 02:32:29,424 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 02:32:29,424 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Snapshot success - sequence number: -1 02:32:29,424 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Moving last applied index from 2 to -1 02:32:29,424 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Set currentTerm=3, votedFor=null 02:32:29,424 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Updated server config: isVoting: false, peers: [PeerInfo [id=leader115, address=akka://test/user/leader115, votingState=VOTING]] 02:32:29,424 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: applySnapshot called 02:32:29,424 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower116, chunkIndex=1, success=true] 02:32:29,425 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower116, chunkIndex=1, success=true] 02:32:29,425 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: SnapshotComplete received 02:32:29,425 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Snapshot successfully installed on follower follower116 (last chunk 1) - matchIndex set to -1, nextIndex set to 0 02:32:29,461 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:29,461 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:29,461 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 02:32:29,461 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Setting last applied to 0 02:32:29,461 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Moving last applied index from -1 to 0 02:32:29,461 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Applying state for log index 0 data zero-1 02:32:29,461 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: applyState called: zero-1 02:32:29,462 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Checking sendAppendEntries for follower follower116: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:32:29,462 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): sendAppendEntries: 0 is present for follower follower116 02:32:29,462 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Sending AppendEntries to follower follower116: AppendEntries [leaderId=leader115, 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]]] 02:32:29,462 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: Persisting ApplyJournalEntries with index=0 02:32:29,462 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:29,462 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): handleAppendEntries: AppendEntries [leaderId=leader115, 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]]] 02:32:29,462 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Number of entries to be appended = 1 02:32:29,462 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:32:29,462 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Append entry to log zero-1 02:32:29,462 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:29,462 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:29,462 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Log size is now 1 02:32:29,462 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Commit index set to 0 02:32:29,462 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower116, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:29,462 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower116: Lagging 0 entries behind leader leader115 and reached 0 (of expected -1) 02:32:29,462 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 02:32:29,462 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116 (Follower): Setting last applied to 0 02:32:29,462 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Moving last applied index from -1 to 0 02:32:29,462 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Applying state for log index 0 data zero-1 02:32:29,462 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower116 updated: matchIndex: 0, nextIndex: 1 02:32:29,462 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader115 (Leader): Checking sendAppendEntries for follower follower116: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:32:29,463 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: applyState called: zero-1 02:32:29,463 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower116: Persisting ApplyJournalEntries with index=0 02:32:29,511 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart ending 02:32:29,511 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower116-collector118#-1822518008] 02:32:29,523 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower116] 02:32:29,524 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader115-collector119#-279688587] 02:32:29,525 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader115] 02:32:29,525 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader115-collector120#-851398287] 02:32:29,527 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader115] 02:32:29,531 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart starting [WARN] [08/31/2024 02:32:29.535] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower122]: org.opendaylight.controller.cluster.common.actor.Monitor@537c63e6 02:32:29,535 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower122 with journal batch size 1000 02:32:29,537 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Set currentTerm=1, votedFor=leader121 02:32:29,537 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:32:29,537 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Updated server config: isVoting: false, peers: [PeerInfo [id=leader121, address=akka://test/user/leader121, votingState=VOTING]] 02:32:29,538 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [08/31/2024 02:32:29.637] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader121]: org.opendaylight.controller.cluster.common.actor.Monitor@7aac1ec8 02:32:29,638 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader121 with journal batch size 1000 02:32:29,640 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Set currentTerm=1, votedFor=leader121 02:32:29,641 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:32:29,641 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Updated server config: isVoting: true, peers: [PeerInfo [id=follower122, address=akka://test/user/follower122, votingState=NON_VOTING]] 02:32:29,641 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:32:30,87 AM [test-akka.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:32:30,87 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.23:25520, Removed) 02:32:30,87 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Follower): Received ElectionTimeout - switching to Candidate 02:32:30,87 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Candidate): Election: Candidate has following voting peers: [] 02:32:30,87 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Set currentTerm=2, votedFor=leader121 02:32:30,87 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Candidate): Starting new election term 2 02:32:30,87 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:32:30,88 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Candidate): Received ElectionTimeout 02:32:30,89 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Election: Leader has following peers: [follower122] 02:32:30,89 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Checking sendAppendEntries for follower follower122: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:32:30,89 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:32:30,89 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Term 2 in "AppendEntries [leaderId=leader121, 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 02:32:30,89 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Set currentTerm=2, votedFor=null 02:32:30,89 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower122: Last sync leader does not match current leader leader121, need to catch up to -1 02:32:30,89 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower122 updated: matchIndex: -1, nextIndex: 0 02:32:30,90 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Checking sendAppendEntries for follower follower122: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/31/2024 02:32:30.090] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower122] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@69287140 02:32:30,91 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:30,91 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:30,91 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 02:32:30,91 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Setting last applied to 0 02:32:30,91 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Moving last applied index from -1 to 0 02:32:30,91 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Applying state for log index 0 data zero 02:32:30,92 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: applyState called: zero 02:32:30,92 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Checking sendAppendEntries for follower follower122: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:32:30,92 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): sendAppendEntries: 0 is present for follower follower122 02:32:30,92 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Sending AppendEntries to follower follower122: AppendEntries [leaderId=leader121, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:32:30,92 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Persisting ApplyJournalEntries with index=0 02:32:30,92 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): handleAppendEntries: AppendEntries [leaderId=leader121, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:32:30,92 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:30,92 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Number of entries to be appended = 1 02:32:30,92 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:32:30,92 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Append entry to log zero 02:32:30,92 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:30,92 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:30,92 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:30,92 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:30,92 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Log size is now 1 02:32:30,92 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Commit index set to 0 02:32:30,92 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 02:32:30,92 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Setting last applied to 1 02:32:30,92 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower122, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:30,92 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Moving last applied index from 0 to 1 02:32:30,92 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Applying state for log index 1 data one 02:32:30,92 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower122: Lagging 0 entries behind leader leader121 and reached 0 (of expected -1) 02:32:30,92 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 02:32:30,92 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Setting last applied to 0 02:32:30,92 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Moving last applied index from -1 to 0 02:32:30,92 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Applying state for log index 0 data zero 02:32:30,93 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: applyState called: one 02:32:30,93 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Checking sendAppendEntries for follower follower122: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:32:30,93 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): sendAppendEntries: 0 is present for follower follower122 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: applyState called: zero 02:32:30,93 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Sending AppendEntries to follower follower122: AppendEntries [leaderId=leader121, 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]]] 02:32:30,93 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower122 updated: matchIndex: 0, nextIndex: 1 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Persisting ApplyJournalEntries with index=0 02:32:30,93 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: fakeSnapshot purging log to 0 for term 2 02:32:30,93 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Checking sendAppendEntries for follower follower122: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): handleAppendEntries: AppendEntries [leaderId=leader121, 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]]] 02:32:30,93 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): sendAppendEntries: 1 is present for follower follower122 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Number of entries to be appended = 2 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Append entry to log one 02:32:30,93 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Sending AppendEntries to follower follower122: AppendEntries [leaderId=leader121, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Log size is now 2 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Commit index set to 1 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower122, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:30,93 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Persisting ApplyJournalEntries with index=1 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower122: Lagging 0 entries behind leader leader121 and reached 1 (of expected -1) 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Setting last applied to 1 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Moving last applied index from 0 to 1 02:32:30,93 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Applying state for log index 1 data one 02:32:30,93 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:30,93 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower122 updated: matchIndex: 1, nextIndex: 2 02:32:30,94 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: applyState called: one 02:32:30,94 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Checking sendAppendEntries for follower follower122: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:32:30,94 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): handleAppendEntries: AppendEntries [leaderId=leader121, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:32:30,94 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Number of entries to be appended = 1 02:32:30,94 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:32:30,94 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:32:30,94 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Log size is now 2 02:32:30,94 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower122, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:30,94 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower122: Lagging 0 entries behind leader leader121 and reached 1 (of expected -1) 02:32:30,94 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: fakeSnapshot purging log to 0 for term 2 02:32:30,94 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Persisting ApplyJournalEntries with index=1 [WARN] [08/31/2024 02:32:30.094] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower122] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@484554cc 02:32:30,157 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader121 with journal batch size 1000 [WARN] [08/31/2024 02:32:30.158] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader121]: org.opendaylight.controller.cluster.common.actor.Monitor@3d90c95a 02:32:30,161 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Set currentTerm=1, votedFor=leader121 02:32:30,161 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:32:30,161 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Updated server config: isVoting: true, peers: [PeerInfo [id=follower122, address=akka://test/user/follower122, votingState=NON_VOTING]] 02:32:30,161 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Set currentTerm=2, votedFor=leader121 02:32:30,161 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:32:30,587 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.23:25520, Removed) 02:32:30,587 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Follower): Received ElectionTimeout - switching to Candidate 02:32:30,587 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Candidate): Election: Candidate has following voting peers: [] 02:32:30,587 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Set currentTerm=3, votedFor=leader121 02:32:30,588 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Candidate): Starting new election term 3 02:32:30,588 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 02:32:30,589 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Candidate): Received ElectionTimeout 02:32:30,589 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Election: Leader has following peers: [follower122] 02:32:30,589 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Checking sendAppendEntries for follower follower122: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:32:30,589 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 02:32:30,609 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:30,609 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:30,609 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Setting last applied to 0 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Moving last applied index from -1 to 0 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Applying state for log index 0 data zero-1 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: applyState called: zero-1 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Checking sendAppendEntries for follower follower122: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Persisting ApplyJournalEntries with index=0 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Setting last applied to 1 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Moving last applied index from 0 to 1 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Applying state for log index 1 data one-1 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: applyState called: one-1 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Checking sendAppendEntries for follower follower122: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Persisting ApplyJournalEntries with index=1 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:32:30,610 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 02:32:30,611 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Setting last applied to 2 02:32:30,611 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Moving last applied index from 1 to 2 02:32:30,611 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Applying state for log index 2 data two-1 02:32:30,611 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: applyState called: two-1 02:32:30,611 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Checking sendAppendEntries for follower follower122: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:32:30,611 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Persisting ApplyJournalEntries with index=2 02:32:30,611 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:32:30,707 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Term 3 in "AppendEntries [leaderId=leader121, 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 02:32:30,707 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Set currentTerm=3, votedFor=null 02:32:30,708 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower122: Lagging -2 entries behind leader leader121 and reached 1 (of expected -1) 02:32:30,708 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): handleAppendEntriesReply: follower follower122 last log term 2 for index 1 conflicts with the leader's 3 - set the follower's next index to 0 02:32:30,708 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Checking sendAppendEntries for follower follower122: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:32:30,708 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): sendAppendEntries: 0 is present for follower follower122 02:32:30,708 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Sending AppendEntries to follower follower122: AppendEntries [leaderId=leader121, 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]]] 02:32:30,709 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): handleAppendEntries: AppendEntries [leaderId=leader121, 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]]] 02:32:30,709 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Number of entries to be appended = 3 02:32:30,709 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: 2 02:32:30,709 AM [test-akka.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:32:30,709 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Removing entries from log starting at 0, commitIndex: 1, lastApplied: 1 02:32:30,709 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Could not remove entries - sending reply to force snapshot 02:32:30,709 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower122: Lagging 1 entries behind leader leader121 and reached 1 (of expected -1) 02:32:30,709 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower122, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 02:32:30,709 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: 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 follower122 02:32:30,709 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: lastSequenceNumber prior to capture: -1 02:32:30,710 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: CaptureSnapshotReply received by actor 02:32:30,710 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: 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=leader121, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower122, isVoting=false], ServerInfo[peerId=leader121, isVoting=true]]]] 02:32:30,710 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 02:32:30,710 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): sendInstallSnapshot 02:32:30,710 AM [test-akka.actor.default-dispatcher-13] [DEBUG] LeaderInstallSnapshotState - leader121 (Leader): Snapshot 351 bytes, total chunks to send: 1 02:32:30,710 AM [test-akka.actor.default-dispatcher-13] [DEBUG] LeaderInstallSnapshotState - leader121 (Leader): Next chunk: total length=351, offset=0, size=351, hashCode=236499276 02:32:30,710 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): next snapshot chunk size for follower follower122: 351 02:32:30,710 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): InstallSnapshot sent to follower Vector(user, follower122), Chunk: 1/1 02:32:30,710 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: Snapshot success - sequence number: -1 02:32:30,710 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader121, lastIncludedIndex=2, lastIncludedTerm=3, datasize=351, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower122, isVoting=false], ServerInfo[peerId=leader121, isVoting=true]]]] 02:32:30,710 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower122: Lagging 1 entries behind leader leader121 and reached 1 (of expected -1) 02:32:30,710 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: SnapshotComplete received 02:32:30,710 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:32:30,710 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): Snapshot installed from leader: leader121 02:32:30,711 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: 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=follower122, isVoting=false], ServerInfo[peerId=leader121, isVoting=true]]]] 02:32:30,711 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 02:32:30,712 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Snapshot success - sequence number: -1 02:32:30,712 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Moving last applied index from 1 to 2 02:32:30,712 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Set currentTerm=3, votedFor=null 02:32:30,712 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: Updated server config: isVoting: false, peers: [PeerInfo [id=leader121, address=akka://test/user/leader121, votingState=VOTING]] 02:32:30,712 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: applySnapshot called 02:32:30,712 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower122, chunkIndex=1, success=true] 02:32:30,712 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower122: SnapshotComplete received 02:32:30,712 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower122, chunkIndex=1, success=true] 02:32:30,712 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader121 (Leader): Snapshot successfully installed on follower follower122 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 02:32:30,712 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader121: fakeSnapshot purging log to 1 for term 3 02:32:30,763 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart ending 02:32:30,763 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower122-collector124#1906159522] 02:32:30,774 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower122] 02:32:30,775 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader121-collector125#1802029024] 02:32:30,776 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader121] 02:32:30,776 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader121-collector126#151944781] 02:32:30,777 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader121] 02:32:30,779 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart starting [WARN] [08/31/2024 02:32:30.782] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower128]: org.opendaylight.controller.cluster.common.actor.Monitor@640b7350 02:32:30,784 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower128 with journal batch size 1000 02:32:30,788 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Set currentTerm=1, votedFor=leader127 02:32:30,788 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:32:30,788 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Updated server config: isVoting: false, peers: [PeerInfo [id=leader127, address=akka://test/user/leader127, votingState=VOTING]] 02:32:30,788 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [08/31/2024 02:32:30.791] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader127]: org.opendaylight.controller.cluster.common.actor.Monitor@7c7c26f6 02:32:30,792 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader127 with journal batch size 1000 02:32:30,796 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Set currentTerm=1, votedFor=leader127 02:32:30,796 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:32:30,796 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Updated server config: isVoting: true, peers: [PeerInfo [id=follower128, address=akka://test/user/follower128, votingState=NON_VOTING]] 02:32:30,796 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:32:31,287 AM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:32:31,287 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.23:25520, Removed) 02:32:31,287 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Follower): Received ElectionTimeout - switching to Candidate 02:32:31,287 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Candidate): Election: Candidate has following voting peers: [] 02:32:31,287 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Set currentTerm=2, votedFor=leader127 02:32:31,287 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Candidate): Starting new election term 2 02:32:31,287 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:32:31,289 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Candidate): Received ElectionTimeout 02:32:31,289 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Election: Leader has following peers: [follower128] 02:32:31,289 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:32:31,289 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:32:31,289 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Term 2 in "AppendEntries [leaderId=leader127, 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 02:32:31,289 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Set currentTerm=2, votedFor=null 02:32:31,290 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower128: Last sync leader does not match current leader leader127, need to catch up to -1 02:32:31,290 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower128 updated: matchIndex: -1, nextIndex: 0 02:32:31,290 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/31/2024 02:32:31.291] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower128] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3da9dbb2 02:32:31,301 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:31,301 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:31,301 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 02:32:31,301 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Setting last applied to 0 02:32:31,301 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Moving last applied index from -1 to 0 02:32:31,301 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Applying state for log index 0 data zero 02:32:31,301 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: applyState called: zero 02:32:31,302 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:32:31,302 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendAppendEntries: 0 is present for follower follower128 02:32:31,302 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Sending AppendEntries to follower follower128: AppendEntries [leaderId=leader127, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:32:31,302 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): handleAppendEntries: AppendEntries [leaderId=leader127, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:32:31,302 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persisting ApplyJournalEntries with index=0 02:32:31,302 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Number of entries to be appended = 1 02:32:31,302 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:32:31,302 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Append entry to log zero 02:32:31,302 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:31,302 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:31,302 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:32:31,302 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Log size is now 1 02:32:31,302 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Commit index set to 0 02:32:31,302 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:31,302 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower128, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:31,302 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:31,302 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower128: Lagging 0 entries behind leader leader127 and reached 0 (of expected -1) 02:32:31,302 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 02:32:31,302 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Setting last applied to 0 02:32:31,302 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Moving last applied index from -1 to 0 02:32:31,302 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 02:32:31,302 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Applying state for log index 0 data zero 02:32:31,302 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Setting last applied to 1 02:32:31,302 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Moving last applied index from 0 to 1 02:32:31,302 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Applying state for log index 1 data one 02:32:31,302 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: applyState called: zero 02:32:31,303 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: applyState called: one 02:32:31,303 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Persisting ApplyJournalEntries with index=0 02:32:31,303 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:32:31,303 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendAppendEntries: 0 is present for follower follower128 02:32:31,303 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Sending AppendEntries to follower follower128: AppendEntries [leaderId=leader127, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] [WARN] [08/31/2024 02:32:31.303] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower128] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@32a90f4e 02:32:31,303 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower128 updated: matchIndex: 0, nextIndex: 1 02:32:31,303 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: fakeSnapshot purging log to 0 for term 2 02:32:31,303 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): handleAppendEntries: AppendEntries [leaderId=leader127, 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]]] 02:32:31,303 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:32:31,303 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendAppendEntries: 1 is present for follower follower128 02:32:31,303 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Number of entries to be appended = 2 02:32:31,303 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:32:31,303 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:32:31,303 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Sending AppendEntries to follower follower128: AppendEntries [leaderId=leader127, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:32:31,303 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Append entry to log one 02:32:31,303 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:31,303 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:31,303 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Log size is now 2 02:32:31,303 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Commit index set to 1 02:32:31,303 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower128, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:31,303 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower128: Lagging 0 entries behind leader leader127 and reached 1 (of expected -1) 02:32:31,303 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persisting ApplyJournalEntries with index=1 02:32:31,303 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 02:32:31,303 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Setting last applied to 1 02:32:31,303 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Moving last applied index from 0 to 1 02:32:31,303 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Applying state for log index 1 data one 02:32:31,303 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:32:31,303 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower128 updated: matchIndex: 1, nextIndex: 2 02:32:31,303 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:32:31,304 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:32:31,304 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:32:31,304 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 02:32:31,304 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Setting last applied to 2 02:32:31,304 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Moving last applied index from 1 to 2 02:32:31,304 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Applying state for log index 2 data two 02:32:31,304 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: applyState called: two 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: applyState called: one 02:32:31,304 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 02:32:31,304 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendAppendEntries: 2 is present for follower follower128 02:32:31,304 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Sending AppendEntries to follower follower128: AppendEntries [leaderId=leader127, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): handleAppendEntries: AppendEntries [leaderId=leader127, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Number of entries to be appended = 1 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:32:31,304 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persisting ApplyJournalEntries with index=2 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Log size is now 2 02:32:31,304 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower128, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower128: Lagging 0 entries behind leader leader127 and reached 1 (of expected -1) 02:32:31,304 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: fakeSnapshot purging log to 1 for term 2 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: fakeSnapshot purging log to 0 for term 2 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Persisting ApplyJournalEntries with index=1 02:32:31,304 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendAppendEntries: 2 is present for follower follower128 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): handleAppendEntries: AppendEntries [leaderId=leader127, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Number of entries to be appended = 1 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Append entry to log two 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Log size is now 2 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Commit index set to 2 02:32:31,304 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower128, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:31,305 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower128: Lagging 0 entries behind leader leader127 and reached 2 (of expected -1) 02:32:31,305 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:32:31,305 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Setting last applied to 2 02:32:31,305 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Moving last applied index from 1 to 2 02:32:31,305 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Applying state for log index 2 data two 02:32:31,305 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower128 updated: matchIndex: 2, nextIndex: 3 02:32:31,305 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: applyState called: two 02:32:31,305 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 02:32:31,305 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Persisting ApplyJournalEntries with index=2 02:32:31,406 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower128: Lagging 0 entries behind leader leader127 and reached 2 (of expected -1) 02:32:31,407 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: fakeSnapshot purging log to 1 for term 2 02:32:31,469 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower129 with journal batch size 1000 [WARN] [08/31/2024 02:32:31.469] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower129]: org.opendaylight.controller.cluster.common.actor.Monitor@4acb0ac9 02:32:31,472 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Received ReplicatedLogEntry for recovery: index: 0, size: 174 02:32:31,472 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Updated server config: isVoting: true, peers: [PeerInfo [id=follower128, address=akka://test/user/follower128, votingState=NON_VOTING], PeerInfo [id=leader127, address=akka://test/user/leader127, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 02:32:31,472 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [08/31/2024 02:32:31.475] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader127]: org.opendaylight.controller.cluster.common.actor.Monitor@575ddd81 02:32:31,476 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader127 with journal batch size 1000 02:32:31,479 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Set currentTerm=2, votedFor=leader127 02:32:31,479 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Received ReplicatedLogEntry for recovery: index: 0, size: 174 02:32:31,479 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Updated server config: isVoting: true, peers: [PeerInfo [id=follower128, address=akka://test/user/follower128, votingState=NON_VOTING], PeerInfo [id=follower129, address=akka://test/user/follower129, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 02:32:31,479 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:32:31,907 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.23:25520, Removed) 02:32:31,907 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Follower): Received ElectionTimeout - switching to Candidate 02:32:31,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Candidate): Election: Candidate has following voting peers: [follower129] 02:32:31,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Set currentTerm=3, votedFor=leader127 02:32:31,908 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Candidate): Starting new election term 3 02:32:31,908 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Candidate): Sending RequestVote [term=3, candidateId=leader127, lastLogIndex=-1, lastLogTerm=-1] to peer follower129 02:32:31,908 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 02:32:31,908 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 02:32:31,909 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Cluster state: [] 02:32:31,909 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=leader127, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 02:32:31,909 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Term 3 in "RequestVote [term=3, candidateId=leader127, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 02:32:31,909 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Set currentTerm=3, votedFor=null 02:32:31,909 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): In requestVote: RequestVote [term=3, candidateId=leader127, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 3, votedFor: null, lastIndex: -1, lastTerm: -1 02:32:31,909 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Set currentTerm=3, votedFor=leader127 02:32:31,909 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 02:32:31,916 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 02:32:31,916 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 02:32:31,916 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Election: Leader has following peers: [follower128, follower129, downPeer] 02:32:31,916 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:32:31,916 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower129: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:32:31,917 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 02:32:31,917 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower129: Last sync leader does not match current leader leader127, need to catch up to -1 02:32:31,917 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower129 updated: matchIndex: -1, nextIndex: 0 02:32:31,917 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower129: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/31/2024 02:32:31.917] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower129] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3c0f9f7d 02:32:31,928 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:31,928 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:31,928 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 02:32:31,928 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:32:31,928 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower129: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:32:31,928 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendAppendEntries: 0 is present for follower follower129 02:32:31,928 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Sending AppendEntries to follower follower129: AppendEntries [leaderId=leader127, 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]]] 02:32:31,928 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): handleAppendEntries: AppendEntries [leaderId=leader127, 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]]] 02:32:31,928 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:31,928 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Number of entries to be appended = 1 02:32:31,928 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:32:31,929 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Append entry to log zero-1 02:32:31,929 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:31,929 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:32:31,929 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Log size is now 1 02:32:31,929 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:32:31,929 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:32:31,929 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower129, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:31,929 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower129: Lagging 0 entries behind leader leader127 and reached -1 (of expected -1) 02:32:31,929 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 02:32:31,929 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 [WARN] [08/31/2024 02:32:31.929] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower129] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@87a652d 02:32:31,929 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower129: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:32:31,929 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendAppendEntries: 0 is present for follower follower129 02:32:31,929 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower129 updated: matchIndex: 0, nextIndex: 1 02:32:31,929 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 02:32:31,929 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Setting last applied to 0 02:32:31,929 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Moving last applied index from -1 to 0 02:32:31,929 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Applying state for log index 0 data zero-1 02:32:31,929 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: applyState called: zero-1 02:32:31,930 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower129: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:32:31,930 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendAppendEntries: 1 is present for follower follower129 02:32:31,930 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Sending AppendEntries to follower follower129: AppendEntries [leaderId=leader127, 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]]] 02:32:31,930 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): handleAppendEntries: AppendEntries [leaderId=leader127, 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]]] 02:32:31,930 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persisting ApplyJournalEntries with index=0 02:32:31,930 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Number of entries to be appended = 1 02:32:31,930 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 02:32:31,930 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:32:31,930 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Append entry to log one-1 02:32:31,930 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:32:31,930 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:32:31,930 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Log size is now 2 02:32:31,930 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Commit index set to 0 02:32:31,930 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:32:31,930 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower129, logLastIndex=1, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:31,930 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:32:31,930 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower129: Lagging 0 entries behind leader leader127 and reached 0 (of expected -1) 02:32:31,930 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 02:32:31,930 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Setting last applied to 0 02:32:31,930 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Moving last applied index from -1 to 0 02:32:31,930 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Applying state for log index 0 data zero-1 02:32:31,930 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 02:32:31,930 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:32:31,930 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower129: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:32:31,930 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendAppendEntries: 1 is present for follower follower129 02:32:31,930 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: applyState called: zero-1 02:32:31,930 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower129 updated: matchIndex: 1, nextIndex: 2 02:32:31,931 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 02:32:31,931 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Persisting ApplyJournalEntries with index=0 02:32:31,931 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Setting last applied to 1 02:32:31,931 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Moving last applied index from 0 to 1 02:32:31,931 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Applying state for log index 1 data one-1 02:32:31,931 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: applyState called: one-1 02:32:31,931 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower129: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:32:31,931 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendAppendEntries: 2 is present for follower follower129 02:32:31,931 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Sending AppendEntries to follower follower129: AppendEntries [leaderId=leader127, 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]]] 02:32:31,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): handleAppendEntries: AppendEntries [leaderId=leader127, 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]]] 02:32:31,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Number of entries to be appended = 1 02:32:31,931 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persisting ApplyJournalEntries with index=1 02:32:31,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:32:31,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Append entry to log two-1 02:32:31,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:32:31,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:32:31,931 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:32:31,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Log size is now 3 02:32:31,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Commit index set to 1 02:32:31,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower129, logLastIndex=2, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:31,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower129: Lagging 0 entries behind leader leader127 and reached 1 (of expected -1) 02:32:31,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 2 02:32:31,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Setting last applied to 1 02:32:31,931 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower129 updated: matchIndex: 2, nextIndex: 3 02:32:31,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Moving last applied index from 0 to 1 02:32:31,932 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Applying state for log index 1 data one-1 02:32:31,932 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 02:32:31,932 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Setting last applied to 2 02:32:31,932 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Moving last applied index from 1 to 2 02:32:31,932 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Applying state for log index 2 data two-1 02:32:31,932 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: applyState called: one-1 02:32:31,932 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Persisting ApplyJournalEntries with index=1 02:32:31,932 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: applyState called: two-1 02:32:31,932 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower129: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:32:31,932 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Commit index set to 2 02:32:31,932 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persisting ApplyJournalEntries with index=2 02:32:31,932 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower129: Lagging 0 entries behind leader leader127 and reached 2 (of expected -1) 02:32:31,932 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:32:31,932 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Setting last applied to 2 02:32:31,932 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Moving last applied index from 1 to 2 02:32:31,932 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Applying state for log index 2 data two-1 02:32:31,932 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persist data SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 02:32:31,932 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 02:32:31,932 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: applyState called: two-1 02:32:31,932 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Replicate message: identifier: MockIdentifier{value=three-1}, logIndex: 3, isSendImmediate: true 02:32:31,933 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 02:32:31,933 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower129: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: -1 02:32:31,933 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendAppendEntries: 3 is present for follower follower129 02:32:31,933 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Sending AppendEntries to follower follower129: AppendEntries [leaderId=leader127, 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]]] 02:32:31,933 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 02:32:31,933 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persist data SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 02:32:31,933 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 02:32:31,933 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Replicate message: identifier: MockIdentifier{value=four-1}, logIndex: 4, isSendImmediate: true 02:32:31,933 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Persisting ApplyJournalEntries with index=2 02:32:31,933 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:32:31,933 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower129: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:32:31,933 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): handleAppendEntries: AppendEntries [leaderId=leader127, 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]]] 02:32:31,933 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendAppendEntries: 3 is present for follower follower129 02:32:31,933 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Number of entries to be appended = 1 02:32:31,933 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 02:32:31,933 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Append entry to log three-1 02:32:31,933 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 02:32:31,933 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 02:32:31,933 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 02:32:31,934 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Log size is now 4 02:32:31,934 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower129, logLastIndex=3, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:31,934 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower129: Lagging 0 entries behind leader leader127 and reached 2 (of expected -1) 02:32:31,934 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower129 updated: matchIndex: 3, nextIndex: 4 02:32:31,934 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 02:32:31,934 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Setting last applied to 3 02:32:31,934 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Moving last applied index from 2 to 3 02:32:31,934 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Applying state for log index 3 data three-1 02:32:31,934 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: applyState called: three-1 02:32:31,934 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower129: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:32:31,934 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendAppendEntries: 4 is present for follower follower129 02:32:31,934 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Sending AppendEntries to follower follower129: AppendEntries [leaderId=leader127, 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]]] 02:32:31,934 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): handleAppendEntries: AppendEntries [leaderId=leader127, 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]]] 02:32:31,934 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persisting ApplyJournalEntries with index=3 02:32:31,934 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Number of entries to be appended = 1 02:32:31,934 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 02:32:31,934 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Append entry to log four-1 02:32:31,934 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 02:32:31,934 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 02:32:31,934 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Log size is now 5 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Commit index set to 3 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower129, logLastIndex=4, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower129: Lagging 0 entries behind leader leader127 and reached 3 (of expected -1) 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 4 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Setting last applied to 3 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Moving last applied index from 2 to 3 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Applying state for log index 3 data three-1 02:32:31,935 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower129 updated: matchIndex: 4, nextIndex: 5 02:32:31,935 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 02:32:31,935 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Setting last applied to 4 02:32:31,935 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Moving last applied index from 3 to 4 02:32:31,935 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Applying state for log index 4 data four-1 02:32:31,935 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: applyState called: four-1 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: applyState called: three-1 02:32:31,935 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower129: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Persisting ApplyJournalEntries with index=3 02:32:31,935 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Persisting ApplyJournalEntries with index=4 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Commit index set to 4 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower129: Lagging 0 entries behind leader leader127 and reached 4 (of expected -1) 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 4 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129 (Follower): Setting last applied to 4 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Moving last applied index from 3 to 4 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Applying state for log index 4 data four-1 02:32:31,935 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: applyState called: four-1 02:32:31,936 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower129: Persisting ApplyJournalEntries with index=4 02:32:32,27 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Term 3 in "AppendEntries [leaderId=leader127, 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 02:32:32,28 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Set currentTerm=3, votedFor=null 02:32:32,28 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower128: Lagging -3 entries behind leader leader127 and reached 2 (of expected -1) 02:32:32,28 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): handleAppendEntriesReply: follower follower128 last log term 2 for index 2 conflicts with the leader's 3 - set the follower's next index to 1 02:32:32,28 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: true, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:32:32,28 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendAppendEntries: 1 is present for follower follower128 02:32:32,28 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Sending AppendEntries to follower follower128: AppendEntries [leaderId=leader127, 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]]] 02:32:32,29 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): handleAppendEntries: AppendEntries [leaderId=leader127, 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]]] 02:32:32,29 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (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 02:32:32,29 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=3, success=false, followerId=follower128, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:32:32,29 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower128: Lagging 2 entries behind leader leader127 and reached 2 (of expected -1) 02:32:32,29 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower128, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 02:32:32,29 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): follower follower128 last log term 2 conflicts with the leader's 3 - dec next index to 0 02:32:32,30 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Checking sendAppendEntries for follower follower128: active: true, followerNextIndex: 0, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:32:32,30 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendAppendEntries: 0 is present for follower follower128 02:32:32,30 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Sending AppendEntries to follower follower128: AppendEntries [leaderId=leader127, 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]]] 02:32:32,30 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): handleAppendEntries: AppendEntries [leaderId=leader127, 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]]] 02:32:32,30 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Number of entries to be appended = 5 02:32:32,30 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: -1 02:32:32,30 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] is present: existingEntryTerm: 2 02:32:32,30 AM [test-akka.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:32:32,30 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Removing entries from log starting at 1, commitIndex: 2, lastApplied: 2 02:32:32,30 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Could not remove entries - sending reply to force snapshot 02:32:32,30 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower128: Lagging 2 entries behind leader leader127 and reached 2 (of expected -1) 02:32:32,30 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower128, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 02:32:32,30 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: 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 follower128 02:32:32,30 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: lastSequenceNumber prior to capture: -1 02:32:32,31 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: CaptureSnapshotReply received by actor 02:32:32,31 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: 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=leader127, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower128, isVoting=false], ServerInfo[peerId=follower129, isVoting=true], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=leader127, isVoting=true]]]] 02:32:32,31 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 02:32:32,31 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): sendInstallSnapshot 02:32:32,31 AM [test-akka.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader127 (Leader): Snapshot 390 bytes, total chunks to send: 1 02:32:32,31 AM [test-akka.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader127 (Leader): Next chunk: total length=390, offset=0, size=390, hashCode=-929342248 02:32:32,31 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): next snapshot chunk size for follower follower128: 390 02:32:32,32 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): InstallSnapshot sent to follower Vector(user, follower128), Chunk: 1/1 02:32:32,32 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader127, lastIncludedIndex=4, lastIncludedTerm=3, datasize=390, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower128, isVoting=false], ServerInfo[peerId=follower129, isVoting=true], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=leader127, isVoting=true]]]] 02:32:32,32 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: Snapshot success - sequence number: -1 02:32:32,32 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower128: Lagging 2 entries behind leader leader127 and reached 2 (of expected -1) 02:32:32,32 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:32:32,32 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): Snapshot installed from leader: leader127 02:32:32,32 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127: SnapshotComplete received 02:32:32,33 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: 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=follower128, isVoting=false], ServerInfo[peerId=follower129, isVoting=true], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=leader127, isVoting=true]]]] 02:32:32,33 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 02:32:32,33 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Snapshot success - sequence number: -1 02:32:32,33 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Moving last applied index from 2 to 4 02:32:32,33 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Set currentTerm=3, votedFor=null 02:32:32,33 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: Updated server config: isVoting: false, peers: [PeerInfo [id=leader127, address=akka://test/user/leader127, votingState=VOTING], PeerInfo [id=follower129, address=null, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 02:32:32,33 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: applySnapshot called 02:32:32,34 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower128, chunkIndex=1, success=true] 02:32:32,34 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower128: SnapshotComplete received 02:32:32,34 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower128, chunkIndex=1, success=true] 02:32:32,34 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader127 (Leader): Snapshot successfully installed on follower follower128 (last chunk 1) - matchIndex set to 4, nextIndex set to 5 02:32:32,80 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart ending 02:32:32,80 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower128-collector130#1095836860] 02:32:32,92 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower128] 02:32:32,92 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader127-collector131#1042054119] 02:32:32,93 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader127] 02:32:32,93 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower129-collector132#920953189] 02:32:32,94 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower129] 02:32:32,94 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader127-collector133#-105543712] 02:32:32,94 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader127] [INFO] [08/31/2024 02:32:32.096] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:32:32,96 AM [test-akka.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:32:32,100 AM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.170.23:25520] - Exiting completed 02:32:32,100 AM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.170.23:25520] - Shutting down... 02:32:32,100 AM [test-akka.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [akka://test@10.30.170.23:25520] - Successfully shut down [WARN] [08/31/2024 02:32:32.100] [test-akka.actor.default-dispatcher-12] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.23:25520) [INFO] [08/31/2024 02:32:32.098] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.23:25520] - Exiting completed [INFO] [08/31/2024 02:32:32.098] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.23:25520] - Shutting down... [INFO] [08/31/2024 02:32:32.099] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.23:25520] - Successfully shut down [INFO] [08/31/2024 02:32:32.106] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.23:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [08/31/2024 02:32:32.106] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.23:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 02:32:32,107 AM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 02:32:32,107 AM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/31/2024 02:32:32.110] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.170.23:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [08/31/2024 02:32:32.111] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger 02:32:32,111 AM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.