[DEBUG] [08/02/2025 02:29:13.144] [main] [EventStream(akka://test)] logger log1-TestEventListener started 02:29:13,145 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/02/2025 02:29:13.145] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [08/02/2025 02:29:13.145] [main] [EventStream(akka://test)] Default Loggers started [INFO] [08/02/2025 02:29:13.164] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.126:25520] with UID [-2367973908737486225] 02:29:13,165 AM [test-akka.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.126:25520] with UID [-2367973908737486225] [INFO] [08/02/2025 02:29:13.166] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.126:25520] - Starting up, Akka version [2.6.21] ... 02:29:13,166 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.126:25520] - Starting up, Akka version [2.6.21] ... [INFO] [08/02/2025 02:29:13.170] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.126:25520] - Registered cluster JMX MBean [akka:type=Cluster] 02:29:13,170 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.126:25520] - Registered cluster JMX MBean [akka:type=Cluster] 02:29:13,171 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.126:25520] - Started up successfully 02:29:13,172 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.126:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 02:29:13,172 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.126:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [08/02/2025 02:29:13.170] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.126:25520] - Started up successfully [INFO] [08/02/2025 02:29:13.172] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.126:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [08/02/2025 02:29:13.172] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.126:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 02:29:13,198 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerLeaderStateChanges [WARN] [08/02/2025 02:29:13.207] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower18]: org.opendaylight.controller.cluster.common.actor.Monitor@7071c60b 02:29:13,208 AM [test-akka.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower18] 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:29:13,209 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower18 with journal batch size 1000 02:29:13,211 AM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader17] 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:29:13,212 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader17 with journal batch size 1000 [INFO] [akkaDeadLetter][08/02/2025 02:29:13.207] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower18] 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'. [WARN] [08/02/2025 02:29:13.213] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader17]: org.opendaylight.controller.cluster.common.actor.Monitor@744e5cdd [INFO] [akkaDeadLetter][08/02/2025 02:29:13.211] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader17] 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:29:13,218 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower18: Set currentTerm=1, votedFor=leader17 02:29:13,219 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower18: Received ReplicatedLogEntry for recovery: index: 0, size: 141 02:29:13,219 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower18: Updated server config: isVoting: false, peers: [PeerInfo [id=leader17, address=akka://test/user/leader17, votingState=VOTING]] 02:29:13,219 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower18: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:29:13,223 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader17: Set currentTerm=1, votedFor=leader17 02:29:13,223 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader17: Received ReplicatedLogEntry for recovery: index: 0, size: 141 02:29:13,223 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader17: Updated server config: isVoting: true, peers: [PeerInfo [id=follower18, address=akka://test/user/follower18, votingState=NON_VOTING]] 02:29:13,223 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader17: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:29:13,713 AM [test-akka.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:29:13,713 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader17 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.126:25520, Removed) 02:29:13,713 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader17 (Follower): Received ElectionTimeout - switching to Candidate 02:29:13,713 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader17 (Candidate): Election: Candidate has following voting peers: [] 02:29:13,713 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader17: Set currentTerm=2, votedFor=leader17 02:29:13,713 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader17 (Candidate): Starting new election term 2 02:29:13,714 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader17 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:29:13,719 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader17 (Candidate): Received ElectionTimeout 02:29:13,719 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader17 (Leader): Election: Leader has following peers: [follower18] 02:29:13,719 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader17 (Leader): Checking sendAppendEntries for follower follower18: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:29:13,720 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader17 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:29:13,720 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower18 (Follower): Term 2 in "AppendEntries [leaderId=leader17, 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:29:13,720 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower18: Set currentTerm=2, votedFor=null 02:29:13,720 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower18: Last sync leader does not match current leader leader17, need to catch up to -1 02:29:13,720 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader17 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower18 updated: matchIndex: -1, nextIndex: 0 02:29:13,720 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader17 (Leader): Checking sendAppendEntries for follower follower18: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/02/2025 02:29:13.724] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower18] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@e535106 [INFO] [akkaDeadLetter][08/02/2025 02:29:13.724] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower18] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower18] 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:29:13,724 AM [test-akka.actor.default-dispatcher-7] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower18] 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:29:13,737 AM [test-akka.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:29:14,73 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower18: Lagging 0 entries behind leader leader17 and reached -1 (of expected -1) [WARN] [08/02/2025 02:29:14.074] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower18] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@587fb0f6 [INFO] [akkaDeadLetter][08/02/2025 02:29:14.074] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower18] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower18] 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:29:14,74 AM [test-akka.actor.default-dispatcher-5] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower18] 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:29:14,91 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/roleChangeNotifier20#689573457] 02:29:14,96 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower18-collector21#-1170641694] 02:29:14,97 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower18] 02:29:14,98 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader17-collector22#-766568791] 02:29:14,98 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader17] 02:29:14,117 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart starting [WARN] [08/02/2025 02:29:14.121] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower24]: org.opendaylight.controller.cluster.common.actor.Monitor@659a9532 02:29:14,121 AM [test-akka.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower24] 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/02/2025 02:29:14.121] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower24] 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:29:14,122 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower24 with journal batch size 1000 02:29:14,124 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Set currentTerm=1, votedFor=leader23 02:29:14,124 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Received ReplicatedLogEntry for recovery: index: 0, size: 141 02:29:14,124 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Updated server config: isVoting: false, peers: [PeerInfo [id=leader23, address=akka://test/user/leader23, votingState=VOTING]] 02:29:14,124 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: 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/02/2025 02:29:14.125] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader23]: org.opendaylight.controller.cluster.common.actor.Monitor@55e33e53 02:29:14,125 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader23 with journal batch size 1000 [INFO] [akkaDeadLetter][08/02/2025 02:29:14.125] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader23] 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:29:14,134 AM [test-akka.actor.default-dispatcher-13] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader23] 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:29:14,136 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Set currentTerm=1, votedFor=leader23 02:29:14,136 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Received ReplicatedLogEntry for recovery: index: 0, size: 141 02:29:14,136 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Updated server config: isVoting: true, peers: [PeerInfo [id=follower24, address=akka://test/user/follower24, votingState=NON_VOTING]] 02:29:14,136 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:29:14,603 AM [test-akka.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:29:14,603 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.126:25520, Removed) 02:29:14,603 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Follower): Received ElectionTimeout - switching to Candidate 02:29:14,603 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Candidate): Election: Candidate has following voting peers: [] 02:29:14,603 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Set currentTerm=2, votedFor=leader23 02:29:14,603 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Candidate): Starting new election term 2 02:29:14,604 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:29:14,605 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Candidate): Received ElectionTimeout 02:29:14,605 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Election: Leader has following peers: [follower24] 02:29:14,606 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Checking sendAppendEntries for follower follower24: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:29:14,606 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:29:14,606 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Term 2 in "AppendEntries [leaderId=leader23, 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:29:14,606 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Set currentTerm=2, votedFor=null 02:29:14,607 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower24: Last sync leader does not match current leader leader23, need to catch up to -1 02:29:14,607 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower24 updated: matchIndex: -1, nextIndex: 0 02:29:14,607 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Checking sendAppendEntries for follower follower24: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/02/2025 02:29:14.608] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower24] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7a43ffc [INFO] [akkaDeadLetter][08/02/2025 02:29:14.608] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower24] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower24] 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:29:14,608 AM [test-akka.actor.default-dispatcher-7] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower24] 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:29:14,645 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:14,645 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:14,646 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 02:29:14,646 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Setting last applied to 0 02:29:14,646 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Moving last applied index from -1 to 0 02:29:14,646 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Applying state for log index 0 data zero 02:29:14,646 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: applyState called: zero 02:29:14,647 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Checking sendAppendEntries for follower follower24: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:29:14,647 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): sendAppendEntries: 0 is present for follower follower24 02:29:14,647 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Sending AppendEntries to follower follower24: AppendEntries [leaderId=leader23, 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:29:14,647 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): handleAppendEntries: AppendEntries [leaderId=leader23, 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:29:14,648 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Persisting ApplyJournalEntries with index=0 02:29:14,648 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Number of entries to be appended = 1 02:29:14,648 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:29:14,648 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Append entry to log zero 02:29:14,648 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:14,648 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:14,648 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:14,648 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:14,648 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Log size is now 1 02:29:14,648 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:14,648 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Commit index set to 0 02:29:14,648 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower24, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:14,648 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 02:29:14,648 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower24: Lagging 0 entries behind leader leader23 and reached 0 (of expected -1) 02:29:14,648 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Setting last applied to 1 02:29:14,648 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 02:29:14,648 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Moving last applied index from 0 to 1 02:29:14,648 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Setting last applied to 0 02:29:14,648 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Applying state for log index 1 data one 02:29:14,648 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Moving last applied index from -1 to 0 02:29:14,648 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Applying state for log index 0 data zero 02:29:14,649 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: applyState called: one 02:29:14,649 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: applyState called: zero 02:29:14,649 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Checking sendAppendEntries for follower follower24: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:29:14,649 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): sendAppendEntries: 0 is present for follower follower24 02:29:14,649 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Persisting ApplyJournalEntries with index=0 02:29:14,649 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Sending AppendEntries to follower follower24: AppendEntries [leaderId=leader23, 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:29:14,649 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower24 updated: matchIndex: 0, nextIndex: 1 02:29:14,649 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: fakeSnapshot purging log to 0 for term 2 [WARN] [08/02/2025 02:29:14.649] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower24] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5dd44f29 02:29:14,650 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Checking sendAppendEntries for follower follower24: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:29:14,650 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): sendAppendEntries: 1 is present for follower follower24 02:29:14,650 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Sending AppendEntries to follower follower24: AppendEntries [leaderId=leader23, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] [INFO] [akkaDeadLetter][08/02/2025 02:29:14.650] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower24] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower24] 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:29:14,650 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): handleAppendEntries: AppendEntries [leaderId=leader23, 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:29:14,650 AM [test-akka.actor.default-dispatcher-11] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower24] 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:29:14,650 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Number of entries to be appended = 2 02:29:14,650 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Persisting ApplyJournalEntries with index=1 02:29:14,650 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:29:14,650 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:29:14,650 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Append entry to log one 02:29:14,650 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:14,650 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:14,651 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:14,651 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Log size is now 2 02:29:14,651 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Commit index set to 1 02:29:14,651 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:29:14,651 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower24, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:14,651 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:29:14,651 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower24: Lagging 0 entries behind leader leader23 and reached 1 (of expected -1) 02:29:14,651 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 02:29:14,651 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 02:29:14,651 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Setting last applied to 1 02:29:14,651 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Setting last applied to 2 02:29:14,651 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Moving last applied index from 0 to 1 02:29:14,651 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Applying state for log index 1 data one 02:29:14,651 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Moving last applied index from 1 to 2 02:29:14,651 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Applying state for log index 2 data two 02:29:14,652 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: applyState called: one 02:29:14,652 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: applyState called: two 02:29:14,652 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): handleAppendEntries: AppendEntries [leaderId=leader23, 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:29:14,652 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Checking sendAppendEntries for follower follower24: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 02:29:14,652 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Number of entries to be appended = 1 02:29:14,652 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): sendAppendEntries: 1 is present for follower follower24 02:29:14,652 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:29:14,652 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:29:14,652 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Sending AppendEntries to follower follower24: AppendEntries [leaderId=leader23, 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:29:14,652 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Log size is now 2 02:29:14,652 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower24, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:14,652 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower24: Lagging 0 entries behind leader leader23 and reached 1 (of expected -1) 02:29:14,652 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: fakeSnapshot purging log to 0 for term 2 02:29:14,652 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower24 updated: matchIndex: 1, nextIndex: 2 02:29:14,653 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: fakeSnapshot purging log to 1 for term 2 02:29:14,653 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Persisting ApplyJournalEntries with index=1 02:29:14,653 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Checking sendAppendEntries for follower follower24: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 02:29:14,653 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): sendAppendEntries: 2 is present for follower follower24 02:29:14,653 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Sending AppendEntries to follower follower24: AppendEntries [leaderId=leader23, 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:29:14,653 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): handleAppendEntries: AppendEntries [leaderId=leader23, 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:29:14,653 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Number of entries to be appended = 2 02:29:14,653 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:29:14,653 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:29:14,653 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Append entry to log two 02:29:14,654 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:29:14,654 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:29:14,654 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Persisting ApplyJournalEntries with index=2 02:29:14,654 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Log size is now 2 02:29:14,654 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Commit index set to 2 02:29:14,654 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower24, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:14,654 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower24: Lagging 0 entries behind leader leader23 and reached 2 (of expected -1) 02:29:14,654 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:29:14,654 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Setting last applied to 2 02:29:14,654 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Moving last applied index from 1 to 2 02:29:14,654 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): sendAppendEntries: 2 is present for follower follower24 02:29:14,654 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Applying state for log index 2 data two 02:29:14,654 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:29:14,654 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: applyState called: two 02:29:14,654 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower24 updated: matchIndex: 2, nextIndex: 3 02:29:14,655 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Checking sendAppendEntries for follower follower24: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 02:29:14,655 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): handleAppendEntries: AppendEntries [leaderId=leader23, 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:29:14,655 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Number of entries to be appended = 1 02:29:14,655 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 02:29:14,655 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 02:29:14,655 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Log size is now 2 02:29:14,655 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower24, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:14,655 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower24: Lagging 0 entries behind leader leader23 and reached 2 (of expected -1) 02:29:14,655 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: fakeSnapshot purging log to 1 for term 2 02:29:14,655 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Persisting ApplyJournalEntries with index=2 [WARN] [08/02/2025 02:29:14.712] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader23]: org.opendaylight.controller.cluster.common.actor.Monitor@52b9eb8c 02:29:14,712 AM [test-akka.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader23] to Actor[akka://test/user/termination-monitor] was not delivered. [9] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [akkaDeadLetter][08/02/2025 02:29:14.712] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader23] 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:29:14,714 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader23 with journal batch size 1000 02:29:14,718 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Set currentTerm=1, votedFor=leader23 02:29:14,718 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Received ReplicatedLogEntry for recovery: index: 0, size: 141 02:29:14,718 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Updated server config: isVoting: true, peers: [PeerInfo [id=follower24, address=akka://test/user/follower24, votingState=NON_VOTING]] 02:29:14,719 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Set currentTerm=2, votedFor=leader23 02:29:14,719 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:29:15,213 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.126:25520, Removed) 02:29:15,213 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Follower): Received ElectionTimeout - switching to Candidate 02:29:15,213 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Candidate): Election: Candidate has following voting peers: [] 02:29:15,213 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Set currentTerm=3, votedFor=leader23 02:29:15,213 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Candidate): Starting new election term 3 02:29:15,213 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 02:29:15,215 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Candidate): Received ElectionTimeout 02:29:15,215 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Election: Leader has following peers: [follower24] 02:29:15,215 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Checking sendAppendEntries for follower follower24: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:29:15,215 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 02:29:15,225 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:15,225 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:15,225 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 02:29:15,225 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Setting last applied to 0 02:29:15,225 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Moving last applied index from -1 to 0 02:29:15,225 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Applying state for log index 0 data zero-1 02:29:15,226 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: applyState called: zero-1 02:29:15,226 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Checking sendAppendEntries for follower follower24: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:29:15,227 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Persisting ApplyJournalEntries with index=0 02:29:15,227 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:15,227 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:29:15,227 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:29:15,228 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 02:29:15,228 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Setting last applied to 1 02:29:15,228 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Moving last applied index from 0 to 1 02:29:15,228 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Applying state for log index 1 data one-1 02:29:15,228 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: applyState called: one-1 02:29:15,228 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Checking sendAppendEntries for follower follower24: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:29:15,229 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Persisting ApplyJournalEntries with index=1 02:29:15,229 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:29:15,333 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Term 3 in "AppendEntries [leaderId=leader23, 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:29:15,333 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Set currentTerm=3, votedFor=null 02:29:15,334 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower24: Lagging -3 entries behind leader leader23 and reached 2 (of expected -1) 02:29:15,334 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): handleAppendEntriesReply: follower follower24 lastIndex 2 is ahead of our lastIndex 1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 02:29:15,334 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: 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 follower24 02:29:15,334 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: lastSequenceNumber prior to capture: -1 02:29:15,342 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: CaptureSnapshotReply received by actor 02:29:15,342 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: 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=leader23, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower24, isVoting=false], ServerInfo[peerId=leader23, isVoting=true]]]] 02:29:15,344 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 02:29:15,345 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): sendInstallSnapshot 02:29:15,345 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader23 (Leader): Snapshot 333 bytes, total chunks to send: 1 02:29:15,345 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader23 (Leader): Next chunk: total length=333, offset=0, size=333, hashCode=878051978 02:29:15,345 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): next snapshot chunk size for follower follower24: 333 02:29:15,345 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): InstallSnapshot sent to follower Vector(user, follower24), Chunk: 1/1 02:29:15,345 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: Snapshot success - sequence number: -1 02:29:15,346 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: SnapshotComplete received 02:29:15,345 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader23, lastIncludedIndex=1, lastIncludedTerm=3, datasize=333, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower24, isVoting=false], ServerInfo[peerId=leader23, isVoting=true]]]] 02:29:15,352 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower24: Lagging -1 entries behind leader leader23 and reached 2 (of expected -1) 02:29:15,352 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:29:15,352 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): Snapshot installed from leader: leader23 02:29:15,364 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: 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=follower24, isVoting=false], ServerInfo[peerId=leader23, isVoting=true]]]] 02:29:15,364 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 02:29:15,364 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Snapshot success - sequence number: -1 02:29:15,364 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Moving last applied index from 2 to 1 02:29:15,364 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Set currentTerm=3, votedFor=null 02:29:15,364 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: Updated server config: isVoting: false, peers: [PeerInfo [id=leader23, address=akka://test/user/leader23, votingState=VOTING]] 02:29:15,364 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: applySnapshot called 02:29:15,364 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower24, chunkIndex=1, success=true] 02:29:15,367 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower24: SnapshotComplete received 02:29:15,367 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower24, chunkIndex=1, success=true] 02:29:15,367 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader23 (Leader): Snapshot successfully installed on follower follower24 (last chunk 1) - matchIndex set to 1, nextIndex set to 2 02:29:15,367 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader23: fakeSnapshot purging log to 0 for term 3 02:29:15,376 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart ending 02:29:15,377 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower24-collector26#1682355008] 02:29:15,389 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower24] 02:29:15,389 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader23-collector27#-776616292] 02:29:15,389 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader23] 02:29:15,390 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader23-collector28#-1959653832] 02:29:15,390 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader23] 02:29:15,392 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart starting [WARN] [08/02/2025 02:29:15.395] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower30]: org.opendaylight.controller.cluster.common.actor.Monitor@23cca677 02:29:15,396 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower30 with journal batch size 1000 02:29:15,398 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Set currentTerm=1, votedFor=leader29 02:29:15,399 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Received ReplicatedLogEntry for recovery: index: 0, size: 141 02:29:15,399 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Updated server config: isVoting: false, peers: [PeerInfo [id=leader29, address=akka://test/user/leader29, votingState=VOTING]] 02:29:15,399 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:29:15,400 AM [test-akka.actor.default-dispatcher-16] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower30] 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'. [INFO] [akkaDeadLetter][08/02/2025 02:29:15.400] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower30] to Actor[akka://test/user/termination-monitor] was not delivered. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [WARN] [08/02/2025 02:29:15.498] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader29]: org.opendaylight.controller.cluster.common.actor.Monitor@617b94cc 02:29:15,499 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader29 with journal batch size 1000 02:29:15,503 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Set currentTerm=1, votedFor=leader29 02:29:15,503 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Received ReplicatedLogEntry for recovery: index: 0, size: 141 02:29:15,503 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Updated server config: isVoting: true, peers: [PeerInfo [id=follower30, address=akka://test/user/follower30, votingState=NON_VOTING]] 02:29:15,503 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:29:15,943 AM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:29:15,944 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.126:25520, Removed) 02:29:15,944 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Follower): Received ElectionTimeout - switching to Candidate 02:29:15,944 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Candidate): Election: Candidate has following voting peers: [] 02:29:15,944 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Set currentTerm=2, votedFor=leader29 02:29:15,944 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Candidate): Starting new election term 2 02:29:15,944 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:29:15,946 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Candidate): Received ElectionTimeout 02:29:15,946 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Election: Leader has following peers: [follower30] 02:29:15,946 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Checking sendAppendEntries for follower follower30: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:29:15,947 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:29:15,947 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Term 2 in "AppendEntries [leaderId=leader29, 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:29:15,947 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Set currentTerm=2, votedFor=null 02:29:15,947 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower30: Last sync leader does not match current leader leader29, need to catch up to -1 02:29:15,948 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower30 updated: matchIndex: -1, nextIndex: 0 02:29:15,948 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Checking sendAppendEntries for follower follower30: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/02/2025 02:29:15.948] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower30] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2f547f7b 02:29:15,959 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:15,960 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:15,960 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 02:29:15,960 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Setting last applied to 0 02:29:15,960 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Moving last applied index from -1 to 0 02:29:15,960 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Applying state for log index 0 data zero 02:29:15,960 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: applyState called: zero 02:29:15,960 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Checking sendAppendEntries for follower follower30: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:29:15,960 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): sendAppendEntries: 0 is present for follower follower30 02:29:15,961 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Sending AppendEntries to follower follower30: AppendEntries [leaderId=leader29, 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:29:15,961 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Persisting ApplyJournalEntries with index=0 02:29:15,961 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:15,961 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): handleAppendEntries: AppendEntries [leaderId=leader29, 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:29:15,961 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Number of entries to be appended = 1 02:29:15,961 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:29:15,961 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Append entry to log zero 02:29:15,961 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:15,961 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:15,961 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:15,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Log size is now 1 02:29:15,962 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:15,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Commit index set to 0 02:29:15,962 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 02:29:15,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower30, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:15,962 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Setting last applied to 1 02:29:15,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower30: Lagging 0 entries behind leader leader29 and reached 0 (of expected -1) 02:29:15,962 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Moving last applied index from 0 to 1 02:29:15,962 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Applying state for log index 1 data one 02:29:15,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 02:29:15,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Setting last applied to 0 02:29:15,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Moving last applied index from -1 to 0 02:29:15,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Applying state for log index 0 data zero 02:29:15,962 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: applyState called: one 02:29:15,962 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: applyState called: zero 02:29:15,962 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Checking sendAppendEntries for follower follower30: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:29:15,962 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): sendAppendEntries: 0 is present for follower follower30 02:29:15,962 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Sending AppendEntries to follower follower30: AppendEntries [leaderId=leader29, 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:29:15,963 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Persisting ApplyJournalEntries with index=0 02:29:15,963 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower30 updated: matchIndex: 0, nextIndex: 1 02:29:15,963 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: fakeSnapshot purging log to 0 for term 2 02:29:15,963 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): handleAppendEntries: AppendEntries [leaderId=leader29, 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:29:15,963 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Number of entries to be appended = 2 02:29:15,963 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Checking sendAppendEntries for follower follower30: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:29:15,963 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): sendAppendEntries: 1 is present for follower follower30 02:29:15,963 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:29:15,963 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:29:15,963 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Append entry to log one 02:29:15,963 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Sending AppendEntries to follower follower30: AppendEntries [leaderId=leader29, 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:29:15,963 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:15,963 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:15,964 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Log size is now 2 02:29:15,964 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Commit index set to 1 02:29:15,964 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Persisting ApplyJournalEntries with index=1 02:29:15,964 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:15,964 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:29:15,964 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:29:15,964 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 02:29:15,964 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Setting last applied to 2 02:29:15,964 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Moving last applied index from 1 to 2 02:29:15,964 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Applying state for log index 2 data two 02:29:15,964 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: applyState called: two 02:29:15,965 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Checking sendAppendEntries for follower follower30: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 02:29:15,965 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): sendAppendEntries: 1 is present for follower follower30 02:29:15,965 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Sending AppendEntries to follower follower30: AppendEntries [leaderId=leader29, 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:29:15,965 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Persisting ApplyJournalEntries with index=2 02:29:15,965 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:29:15,964 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower30, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:15,965 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower30 updated: matchIndex: 1, nextIndex: 2 02:29:15,965 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: fakeSnapshot purging log to 1 for term 2 02:29:15,965 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Checking sendAppendEntries for follower follower30: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 02:29:15,965 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): sendAppendEntries: 2 is present for follower follower30 02:29:15,965 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Sending AppendEntries to follower follower30: AppendEntries [leaderId=leader29, 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:29:15,966 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower30: Lagging 0 entries behind leader leader29 and reached 1 (of expected -1) 02:29:15,966 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 02:29:15,966 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Setting last applied to 1 02:29:15,966 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Moving last applied index from 0 to 1 02:29:15,966 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Applying state for log index 1 data one 02:29:15,966 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: applyState called: one 02:29:15,966 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): handleAppendEntries: AppendEntries [leaderId=leader29, 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:29:15,966 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Number of entries to be appended = 1 02:29:15,966 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:29:15,966 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:29:15,966 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Log size is now 2 02:29:15,966 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower30, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:15,966 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower30: Lagging 0 entries behind leader leader29 and reached 1 (of expected -1) 02:29:15,966 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: fakeSnapshot purging log to 0 for term 2 02:29:15,966 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): handleAppendEntries: AppendEntries [leaderId=leader29, 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:29:15,966 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): sendAppendEntries: 2 is present for follower follower30 02:29:15,966 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Number of entries to be appended = 2 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Append entry to log two 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Log size is now 2 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Commit index set to 2 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower30, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower30: Lagging 0 entries behind leader leader29 and reached 2 (of expected -1) 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Setting last applied to 2 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Moving last applied index from 1 to 2 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Applying state for log index 2 data two 02:29:15,967 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower30 updated: matchIndex: 2, nextIndex: 3 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: applyState called: two 02:29:15,967 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Checking sendAppendEntries for follower follower30: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): handleAppendEntries: AppendEntries [leaderId=leader29, 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:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Number of entries to be appended = 1 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Log size is now 2 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower30, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower30: Lagging 0 entries behind leader leader29 and reached 2 (of expected -1) 02:29:15,967 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: fakeSnapshot purging log to 1 for term 2 02:29:15,968 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Persisting ApplyJournalEntries with index=1 02:29:15,968 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Persisting ApplyJournalEntries with index=2 [WARN] [08/02/2025 02:29:15.968] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower30] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4a0c6c7d [WARN] [08/02/2025 02:29:16.025] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader29]: org.opendaylight.controller.cluster.common.actor.Monitor@ec09c9c 02:29:16,26 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader29 with journal batch size 1000 02:29:16,29 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Set currentTerm=1, votedFor=leader29 02:29:16,29 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Received ReplicatedLogEntry for recovery: index: 0, size: 141 02:29:16,29 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Updated server config: isVoting: true, peers: [PeerInfo [id=follower30, address=akka://test/user/follower30, votingState=NON_VOTING]] 02:29:16,29 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Set currentTerm=2, votedFor=leader29 02:29:16,29 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:29:16,463 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.126:25520, Removed) 02:29:16,463 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Follower): Received ElectionTimeout - switching to Candidate 02:29:16,463 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Candidate): Election: Candidate has following voting peers: [] 02:29:16,463 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Set currentTerm=3, votedFor=leader29 02:29:16,463 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Candidate): Starting new election term 3 02:29:16,463 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 02:29:16,465 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Candidate): Received ElectionTimeout 02:29:16,465 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Election: Leader has following peers: [follower30] 02:29:16,466 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Checking sendAppendEntries for follower follower30: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:29:16,466 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 02:29:16,466 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Term 3 in "AppendEntries [leaderId=leader29, 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:29:16,466 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Set currentTerm=3, votedFor=null 02:29:16,467 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower30: Lagging -3 entries behind leader leader29 and reached 2 (of expected -1) 02:29:16,467 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): handleAppendEntriesReply: follower follower30 lastIndex 2 is ahead of our lastIndex -1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 02:29:16,467 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 02:29:16,467 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: 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 follower30 02:29:16,467 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: lastSequenceNumber prior to capture: -1 02:29:16,469 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: CaptureSnapshotReply received by actor 02:29:16,469 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=3, electionVotedFor=leader29, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower30, isVoting=false], ServerInfo[peerId=leader29, isVoting=true]]]] 02:29:16,469 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 02:29:16,469 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): sendInstallSnapshot 02:29:16,469 AM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader29 (Leader): Snapshot 171 bytes, total chunks to send: 1 02:29:16,469 AM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader29 (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 02:29:16,469 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): next snapshot chunk size for follower follower30: 171 02:29:16,470 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): InstallSnapshot sent to follower Vector(user, follower30), Chunk: 1/1 02:29:16,470 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Snapshot success - sequence number: -1 02:29:16,470 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: SnapshotComplete received 02:29:16,470 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader29, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower30, isVoting=false], ServerInfo[peerId=leader29, isVoting=true]]]] 02:29:16,470 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower30: Lagging -3 entries behind leader leader29 and reached 2 (of expected -1) 02:29:16,470 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:29:16,470 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Snapshot installed from leader: leader29 02:29:16,471 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: 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=follower30, isVoting=false], ServerInfo[peerId=leader29, isVoting=true]]]] 02:29:16,471 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 02:29:16,471 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Snapshot success - sequence number: -1 02:29:16,472 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Moving last applied index from 2 to -1 02:29:16,472 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Set currentTerm=3, votedFor=null 02:29:16,472 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Updated server config: isVoting: false, peers: [PeerInfo [id=leader29, address=akka://test/user/leader29, votingState=VOTING]] 02:29:16,472 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: applySnapshot called 02:29:16,472 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower30, chunkIndex=1, success=true] 02:29:16,472 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower30, chunkIndex=1, success=true] 02:29:16,472 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: SnapshotComplete received 02:29:16,472 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Snapshot successfully installed on follower follower30 (last chunk 1) - matchIndex set to -1, nextIndex set to 0 02:29:16,487 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:16,487 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:16,487 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 02:29:16,487 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Setting last applied to 0 02:29:16,487 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Moving last applied index from -1 to 0 02:29:16,487 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Applying state for log index 0 data zero-1 02:29:16,488 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: applyState called: zero-1 02:29:16,488 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Checking sendAppendEntries for follower follower30: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:29:16,488 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): sendAppendEntries: 0 is present for follower follower30 02:29:16,488 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Sending AppendEntries to follower follower30: AppendEntries [leaderId=leader29, 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:29:16,488 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: Persisting ApplyJournalEntries with index=0 02:29:16,488 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:16,488 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): handleAppendEntries: AppendEntries [leaderId=leader29, 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:29:16,489 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Number of entries to be appended = 1 02:29:16,489 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:29:16,489 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Append entry to log zero-1 02:29:16,489 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:16,489 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:16,489 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Log size is now 1 02:29:16,489 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Commit index set to 0 02:29:16,489 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower30, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:16,489 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower30: Lagging 0 entries behind leader leader29 and reached 0 (of expected -1) 02:29:16,489 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 02:29:16,489 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30 (Follower): Setting last applied to 0 02:29:16,489 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower30 updated: matchIndex: 0, nextIndex: 1 02:29:16,489 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Moving last applied index from -1 to 0 02:29:16,489 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Applying state for log index 0 data zero-1 02:29:16,489 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader29 (Leader): Checking sendAppendEntries for follower follower30: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:29:16,489 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: applyState called: zero-1 02:29:16,490 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower30: Persisting ApplyJournalEntries with index=0 02:29:16,538 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart ending 02:29:16,538 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower30-collector32#-412708243] 02:29:16,550 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower30] 02:29:16,551 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader29-collector33#-1677553094] 02:29:16,552 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader29] 02:29:16,552 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader29-collector34#-1950479256] 02:29:16,553 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader29] 02:29:16,555 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart starting [WARN] [08/02/2025 02:29:16.559] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower36]: org.opendaylight.controller.cluster.common.actor.Monitor@1525374a 02:29:16,560 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower36 with journal batch size 1000 02:29:16,563 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Set currentTerm=1, votedFor=leader35 02:29:16,563 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Received ReplicatedLogEntry for recovery: index: 0, size: 141 02:29:16,563 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Updated server config: isVoting: false, peers: [PeerInfo [id=leader35, address=akka://test/user/leader35, votingState=VOTING]] 02:29:16,563 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:29:16,564 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader35 with journal batch size 1000 [WARN] [08/02/2025 02:29:16.564] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader35]: org.opendaylight.controller.cluster.common.actor.Monitor@569c63d5 02:29:16,566 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Set currentTerm=1, votedFor=leader35 02:29:16,566 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Received ReplicatedLogEntry for recovery: index: 0, size: 141 02:29:16,566 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Updated server config: isVoting: true, peers: [PeerInfo [id=follower36, address=akka://test/user/follower36, votingState=NON_VOTING]] 02:29:16,566 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:29:17,13 AM [test-akka.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:29:17,13 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.126:25520, Removed) 02:29:17,13 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Follower): Received ElectionTimeout - switching to Candidate 02:29:17,13 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Candidate): Election: Candidate has following voting peers: [] 02:29:17,13 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Set currentTerm=2, votedFor=leader35 02:29:17,14 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Candidate): Starting new election term 2 02:29:17,14 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:29:17,15 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Candidate): Received ElectionTimeout 02:29:17,16 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Election: Leader has following peers: [follower36] 02:29:17,16 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Checking sendAppendEntries for follower follower36: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:29:17,16 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:29:17,16 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Term 2 in "AppendEntries [leaderId=leader35, 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:29:17,16 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Set currentTerm=2, votedFor=null 02:29:17,16 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower36: Last sync leader does not match current leader leader35, need to catch up to -1 02:29:17,16 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower36 updated: matchIndex: -1, nextIndex: 0 02:29:17,17 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Checking sendAppendEntries for follower follower36: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/02/2025 02:29:17.017] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower36] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@18805e4e 02:29:17,22 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:17,22 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:17,22 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 02:29:17,22 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Setting last applied to 0 02:29:17,22 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Moving last applied index from -1 to 0 02:29:17,22 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Applying state for log index 0 data zero 02:29:17,23 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: applyState called: zero 02:29:17,23 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Checking sendAppendEntries for follower follower36: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:29:17,23 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): sendAppendEntries: 0 is present for follower follower36 02:29:17,23 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Sending AppendEntries to follower follower36: AppendEntries [leaderId=leader35, 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:29:17,24 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Persisting ApplyJournalEntries with index=0 02:29:17,24 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): handleAppendEntries: AppendEntries [leaderId=leader35, 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:29:17,24 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Number of entries to be appended = 1 02:29:17,24 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:17,24 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:29:17,24 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Append entry to log zero 02:29:17,24 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:17,24 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:17,24 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:17,24 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Log size is now 1 02:29:17,24 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:17,24 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Commit index set to 0 02:29:17,24 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 02:29:17,24 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower36, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:17,24 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Setting last applied to 1 02:29:17,24 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower36: Lagging 0 entries behind leader leader35 and reached 0 (of expected -1) 02:29:17,24 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Moving last applied index from 0 to 1 02:29:17,24 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Applying state for log index 1 data one 02:29:17,24 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 02:29:17,24 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Setting last applied to 0 02:29:17,24 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Moving last applied index from -1 to 0 02:29:17,24 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Applying state for log index 0 data zero 02:29:17,24 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: applyState called: one 02:29:17,25 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: applyState called: zero 02:29:17,25 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Checking sendAppendEntries for follower follower36: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:29:17,25 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): sendAppendEntries: 0 is present for follower follower36 02:29:17,25 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Persisting ApplyJournalEntries with index=0 02:29:17,25 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Sending AppendEntries to follower follower36: AppendEntries [leaderId=leader35, 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:29:17,25 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower36 updated: matchIndex: 0, nextIndex: 1 02:29:17,25 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: fakeSnapshot purging log to 0 for term 2 [WARN] [08/02/2025 02:29:17.025] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower36] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1eb9f739 02:29:17,25 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): handleAppendEntries: AppendEntries [leaderId=leader35, 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:29:17,25 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Number of entries to be appended = 2 02:29:17,25 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Checking sendAppendEntries for follower follower36: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:29:17,25 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:29:17,25 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): sendAppendEntries: 1 is present for follower follower36 02:29:17,25 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:29:17,25 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Append entry to log one 02:29:17,25 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:17,25 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Sending AppendEntries to follower follower36: AppendEntries [leaderId=leader35, 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:29:17,25 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Log size is now 2 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Commit index set to 1 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower36, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower36: Lagging 0 entries behind leader leader35 and reached 1 (of expected -1) 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Setting last applied to 1 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Moving last applied index from 0 to 1 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Applying state for log index 1 data one 02:29:17,26 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Persisting ApplyJournalEntries with index=1 02:29:17,26 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: applyState called: one 02:29:17,26 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower36 updated: matchIndex: 1, nextIndex: 2 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): handleAppendEntries: AppendEntries [leaderId=leader35, 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:29:17,26 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Checking sendAppendEntries for follower follower36: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Number of entries to be appended = 1 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Log size is now 2 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower36, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower36: Lagging 0 entries behind leader leader35 and reached 1 (of expected -1) 02:29:17,26 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: fakeSnapshot purging log to 0 for term 2 02:29:17,27 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Persisting ApplyJournalEntries with index=1 [WARN] [08/02/2025 02:29:17.089] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader35]: org.opendaylight.controller.cluster.common.actor.Monitor@52e862cd 02:29:17,91 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader35 with journal batch size 1000 02:29:17,94 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Set currentTerm=1, votedFor=leader35 02:29:17,94 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Received ReplicatedLogEntry for recovery: index: 0, size: 141 02:29:17,94 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Updated server config: isVoting: true, peers: [PeerInfo [id=follower36, address=akka://test/user/follower36, votingState=NON_VOTING]] 02:29:17,94 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Set currentTerm=2, votedFor=leader35 02:29:17,94 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:29:17,552 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.126:25520, Removed) 02:29:17,552 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Follower): Received ElectionTimeout - switching to Candidate 02:29:17,553 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Candidate): Election: Candidate has following voting peers: [] 02:29:17,553 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Set currentTerm=3, votedFor=leader35 02:29:17,553 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Candidate): Starting new election term 3 02:29:17,553 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 02:29:17,555 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Candidate): Received ElectionTimeout 02:29:17,556 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Election: Leader has following peers: [follower36] 02:29:17,556 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Checking sendAppendEntries for follower follower36: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:29:17,556 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 02:29:17,602 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:17,602 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:17,602 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 02:29:17,602 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Setting last applied to 0 02:29:17,602 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Moving last applied index from -1 to 0 02:29:17,602 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Applying state for log index 0 data zero-1 02:29:17,603 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: applyState called: zero-1 02:29:17,603 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Checking sendAppendEntries for follower follower36: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:29:17,603 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Persisting ApplyJournalEntries with index=0 02:29:17,604 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:17,604 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:29:17,604 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:29:17,604 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 02:29:17,604 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Setting last applied to 1 02:29:17,604 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Moving last applied index from 0 to 1 02:29:17,604 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Applying state for log index 1 data one-1 02:29:17,604 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: applyState called: one-1 02:29:17,604 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Checking sendAppendEntries for follower follower36: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:29:17,605 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Persisting ApplyJournalEntries with index=1 02:29:17,605 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:29:17,605 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:29:17,605 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:29:17,605 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 02:29:17,605 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Setting last applied to 2 02:29:17,605 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Moving last applied index from 1 to 2 02:29:17,605 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Applying state for log index 2 data two-1 02:29:17,605 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: applyState called: two-1 02:29:17,606 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Checking sendAppendEntries for follower follower36: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:29:17,606 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Persisting ApplyJournalEntries with index=2 02:29:17,606 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:29:17,673 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Term 3 in "AppendEntries [leaderId=leader35, 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:29:17,673 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Set currentTerm=3, votedFor=null 02:29:17,673 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower36: Lagging -2 entries behind leader leader35 and reached 1 (of expected -1) 02:29:17,673 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): handleAppendEntriesReply: follower follower36 last log term 2 for index 1 conflicts with the leader's 3 - set the follower's next index to 0 02:29:17,674 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Checking sendAppendEntries for follower follower36: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:29:17,674 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): sendAppendEntries: 0 is present for follower follower36 02:29:17,674 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Sending AppendEntries to follower follower36: AppendEntries [leaderId=leader35, 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:29:17,675 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): handleAppendEntries: AppendEntries [leaderId=leader35, 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:29:17,675 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Number of entries to be appended = 3 02:29:17,675 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: 2 02:29:17,675 AM [test-akka.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:29:17,675 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Removing entries from log starting at 0, commitIndex: 1, lastApplied: 1 02:29:17,675 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Could not remove entries - sending reply to force snapshot 02:29:17,675 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower36: Lagging 1 entries behind leader leader35 and reached 1 (of expected -1) 02:29:17,675 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower36, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 02:29:17,675 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: 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 follower36 02:29:17,675 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: lastSequenceNumber prior to capture: -1 02:29:17,676 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: CaptureSnapshotReply received by actor 02:29:17,676 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: 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=leader35, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower36, isVoting=false], ServerInfo[peerId=leader35, isVoting=true]]]] 02:29:17,676 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 02:29:17,676 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): sendInstallSnapshot 02:29:17,677 AM [test-akka.actor.default-dispatcher-13] [DEBUG] LeaderInstallSnapshotState - leader35 (Leader): Snapshot 351 bytes, total chunks to send: 1 02:29:17,677 AM [test-akka.actor.default-dispatcher-13] [DEBUG] LeaderInstallSnapshotState - leader35 (Leader): Next chunk: total length=351, offset=0, size=351, hashCode=236499276 02:29:17,677 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): next snapshot chunk size for follower follower36: 351 02:29:17,677 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): InstallSnapshot sent to follower Vector(user, follower36), Chunk: 1/1 02:29:17,677 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: Snapshot success - sequence number: -1 02:29:17,677 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: SnapshotComplete received 02:29:17,677 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader35, lastIncludedIndex=2, lastIncludedTerm=3, datasize=351, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower36, isVoting=false], ServerInfo[peerId=leader35, isVoting=true]]]] 02:29:17,677 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower36: Lagging 1 entries behind leader leader35 and reached 1 (of expected -1) 02:29:17,678 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:29:17,678 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): Snapshot installed from leader: leader35 02:29:17,679 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: 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=follower36, isVoting=false], ServerInfo[peerId=leader35, isVoting=true]]]] 02:29:17,679 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 02:29:17,679 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Snapshot success - sequence number: -1 02:29:17,679 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Moving last applied index from 1 to 2 02:29:17,679 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Set currentTerm=3, votedFor=null 02:29:17,679 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: Updated server config: isVoting: false, peers: [PeerInfo [id=leader35, address=akka://test/user/leader35, votingState=VOTING]] 02:29:17,679 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: applySnapshot called 02:29:17,680 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower36, chunkIndex=1, success=true] 02:29:17,680 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower36, chunkIndex=1, success=true] 02:29:17,680 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower36: SnapshotComplete received 02:29:17,680 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader35 (Leader): Snapshot successfully installed on follower follower36 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 02:29:17,680 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader35: fakeSnapshot purging log to 1 for term 3 02:29:17,706 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart ending 02:29:17,706 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower36-collector38#594885597] 02:29:17,709 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower36] 02:29:17,709 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader35-collector39#2049681217] 02:29:17,710 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader35] 02:29:17,710 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader35-collector40#1265064800] 02:29:17,711 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader35] 02:29:17,712 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart starting [WARN] [08/02/2025 02:29:17.716] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower42]: org.opendaylight.controller.cluster.common.actor.Monitor@499e114b 02:29:17,716 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower42 with journal batch size 1000 02:29:17,720 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Set currentTerm=1, votedFor=leader41 02:29:17,720 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Received ReplicatedLogEntry for recovery: index: 0, size: 141 02:29:17,720 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Updated server config: isVoting: false, peers: [PeerInfo [id=leader41, address=akka://test/user/leader41, votingState=VOTING]] 02:29:17,720 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: 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/02/2025 02:29:17.721] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader41]: org.opendaylight.controller.cluster.common.actor.Monitor@5886544 02:29:17,722 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader41 with journal batch size 1000 02:29:17,724 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Set currentTerm=1, votedFor=leader41 02:29:17,724 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Received ReplicatedLogEntry for recovery: index: 0, size: 141 02:29:17,724 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Updated server config: isVoting: true, peers: [PeerInfo [id=follower42, address=akka://test/user/follower42, votingState=NON_VOTING]] 02:29:17,724 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:29:18,233 AM [test-akka.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:29:18,233 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.126:25520, Removed) 02:29:18,233 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Follower): Received ElectionTimeout - switching to Candidate 02:29:18,233 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Candidate): Election: Candidate has following voting peers: [] 02:29:18,233 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Set currentTerm=2, votedFor=leader41 02:29:18,233 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Candidate): Starting new election term 2 02:29:18,233 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:29:18,235 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Candidate): Received ElectionTimeout 02:29:18,235 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Election: Leader has following peers: [follower42] 02:29:18,235 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:29:18,235 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:29:18,235 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Term 2 in "AppendEntries [leaderId=leader41, 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:29:18,236 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Set currentTerm=2, votedFor=null 02:29:18,236 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower42: Last sync leader does not match current leader leader41, need to catch up to -1 02:29:18,236 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower42 updated: matchIndex: -1, nextIndex: 0 02:29:18,237 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/02/2025 02:29:18.237] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower42] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@647e0946 02:29:18,281 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:18,281 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:18,281 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 02:29:18,281 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Setting last applied to 0 02:29:18,281 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Moving last applied index from -1 to 0 02:29:18,281 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Applying state for log index 0 data zero 02:29:18,282 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: applyState called: zero 02:29:18,282 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:29:18,282 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): sendAppendEntries: 0 is present for follower follower42 02:29:18,282 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Sending AppendEntries to follower follower42: AppendEntries [leaderId=leader41, 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:29:18,282 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persisting ApplyJournalEntries with index=0 02:29:18,282 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): handleAppendEntries: AppendEntries [leaderId=leader41, 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:29:18,283 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Number of entries to be appended = 1 02:29:18,283 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:29:18,283 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:18,283 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Append entry to log zero 02:29:18,283 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:18,283 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:29:18,283 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Log size is now 1 02:29:18,283 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:18,283 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Commit index set to 0 02:29:18,283 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:18,283 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower42, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:18,283 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 02:29:18,283 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower42: Lagging 0 entries behind leader leader41 and reached 0 (of expected -1) 02:29:18,283 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Setting last applied to 1 02:29:18,283 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 02:29:18,283 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Moving last applied index from 0 to 1 02:29:18,283 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Setting last applied to 0 02:29:18,283 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Applying state for log index 1 data one 02:29:18,283 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Moving last applied index from -1 to 0 02:29:18,283 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Applying state for log index 0 data zero 02:29:18,283 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: applyState called: one 02:29:18,283 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: applyState called: zero 02:29:18,283 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:29:18,283 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): sendAppendEntries: 0 is present for follower follower42 02:29:18,284 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Sending AppendEntries to follower follower42: AppendEntries [leaderId=leader41, 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:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Persisting ApplyJournalEntries with index=0 02:29:18,284 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower42 updated: matchIndex: 0, nextIndex: 1 02:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): handleAppendEntries: AppendEntries [leaderId=leader41, 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:29:18,284 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: fakeSnapshot purging log to 0 for term 2 02:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Number of entries to be appended = 2 02:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Append entry to log one 02:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:18,284 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:18,284 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): sendAppendEntries: 1 is present for follower follower42 02:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Log size is now 2 02:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Commit index set to 1 02:29:18,284 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Sending AppendEntries to follower follower42: AppendEntries [leaderId=leader41, 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:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower42, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower42: Lagging 0 entries behind leader leader41 and reached 1 (of expected -1) 02:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 02:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Setting last applied to 1 02:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Moving last applied index from 0 to 1 02:29:18,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Applying state for log index 1 data one 02:29:18,284 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persisting ApplyJournalEntries with index=1 02:29:18,285 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: applyState called: one 02:29:18,285 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:29:18,285 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): handleAppendEntries: AppendEntries [leaderId=leader41, 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:29:18,285 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Number of entries to be appended = 1 02:29:18,285 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower42 updated: matchIndex: 1, nextIndex: 2 02:29:18,285 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:29:18,285 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:29:18,285 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Log size is now 2 02:29:18,285 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower42, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:18,286 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower42: Lagging 0 entries behind leader leader41 and reached 1 (of expected -1) 02:29:18,286 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:29:18,286 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: fakeSnapshot purging log to 0 for term 2 02:29:18,286 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Persisting ApplyJournalEntries with index=1 [WARN] [08/02/2025 02:29:18.286] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower42] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7291fab3 02:29:18,286 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:29:18,286 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:29:18,286 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 02:29:18,286 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Setting last applied to 2 02:29:18,286 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Moving last applied index from 1 to 2 02:29:18,286 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Applying state for log index 2 data two 02:29:18,286 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: applyState called: two 02:29:18,287 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 02:29:18,287 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): sendAppendEntries: 2 is present for follower follower42 02:29:18,287 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Sending AppendEntries to follower follower42: AppendEntries [leaderId=leader41, 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:29:18,287 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): handleAppendEntries: AppendEntries [leaderId=leader41, 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:29:18,287 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Number of entries to be appended = 1 02:29:18,287 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persisting ApplyJournalEntries with index=2 02:29:18,287 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:29:18,287 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Append entry to log two 02:29:18,287 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:29:18,287 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:29:18,287 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:29:18,287 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Log size is now 2 02:29:18,287 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Commit index set to 2 02:29:18,287 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower42, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:18,287 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: fakeSnapshot purging log to 1 for term 2 02:29:18,287 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower42: Lagging 0 entries behind leader leader41 and reached 2 (of expected -1) 02:29:18,287 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:29:18,287 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Setting last applied to 2 02:29:18,287 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Moving last applied index from 1 to 2 02:29:18,287 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Applying state for log index 2 data two 02:29:18,288 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower42 updated: matchIndex: 2, nextIndex: 3 02:29:18,288 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: applyState called: two 02:29:18,288 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Persisting ApplyJournalEntries with index=2 02:29:18,288 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 02:29:18,473 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower42: Lagging 0 entries behind leader leader41 and reached 2 (of expected -1) 02:29:18,473 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: fakeSnapshot purging log to 1 for term 2 [WARN] [08/02/2025 02:29:18.491] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower43]: org.opendaylight.controller.cluster.common.actor.Monitor@7f9b8fae 02:29:18,492 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower43 with journal batch size 1000 02:29:18,494 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Received ReplicatedLogEntry for recovery: index: 0, size: 171 02:29:18,494 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Updated server config: isVoting: true, peers: [PeerInfo [id=follower42, address=akka://test/user/follower42, votingState=NON_VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING], PeerInfo [id=leader41, address=akka://test/user/leader41, votingState=VOTING]] 02:29:18,495 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: 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/02/2025 02:29:18.497] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader41]: org.opendaylight.controller.cluster.common.actor.Monitor@15e51294 02:29:18,497 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader41 with journal batch size 1000 02:29:18,499 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Set currentTerm=2, votedFor=leader41 02:29:18,499 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Received ReplicatedLogEntry for recovery: index: 0, size: 171 02:29:18,499 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Updated server config: isVoting: true, peers: [PeerInfo [id=follower43, address=akka://test/user/follower43, votingState=VOTING], PeerInfo [id=follower42, address=akka://test/user/follower42, votingState=NON_VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 02:29:18,499 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:29:19,13 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.126:25520, Removed) 02:29:19,13 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Follower): Received ElectionTimeout - switching to Candidate 02:29:19,13 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Candidate): Election: Candidate has following voting peers: [follower43] 02:29:19,13 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Set currentTerm=3, votedFor=leader41 02:29:19,14 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Candidate): Starting new election term 3 02:29:19,14 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Candidate): Sending RequestVote [term=3, candidateId=leader41, lastLogIndex=-1, lastLogTerm=-1] to peer follower43 02:29:19,14 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 02:29:19,14 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 02:29:19,14 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Cluster state: [] 02:29:19,14 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=leader41, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 02:29:19,15 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Term 3 in "RequestVote [term=3, candidateId=leader41, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 02:29:19,15 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Set currentTerm=3, votedFor=null 02:29:19,15 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): In requestVote: RequestVote [term=3, candidateId=leader41, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 3, votedFor: null, lastIndex: -1, lastTerm: -1 02:29:19,15 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Set currentTerm=3, votedFor=leader41 02:29:19,15 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 02:29:19,17 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 02:29:19,17 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 02:29:19,18 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Election: Leader has following peers: [follower43, follower42, downPeer] 02:29:19,18 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower43: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:29:19,18 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:29:19,18 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower43: Last sync leader does not match current leader leader41, need to catch up to -1 02:29:19,19 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 [WARN] [08/02/2025 02:29:19.019] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower43] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@66b1e99e 02:29:19,19 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower43 updated: matchIndex: -1, nextIndex: 0 02:29:19,20 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower43: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:29:19,57 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:19,57 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:19,57 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 02:29:19,58 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower43: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:29:19,58 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): sendAppendEntries: 0 is present for follower follower43 02:29:19,58 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Sending AppendEntries to follower follower43: AppendEntries [leaderId=leader41, 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:29:19,58 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:29:19,58 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): handleAppendEntries: AppendEntries [leaderId=leader41, 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:29:19,58 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:19,58 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Number of entries to be appended = 1 02:29:19,58 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:29:19,58 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Append entry to log zero-1 02:29:19,58 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:29:19,58 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:19,58 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:29:19,58 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:29:19,58 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Log size is now 1 02:29:19,58 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 02:29:19,58 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower43, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:19,59 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower43: Lagging 0 entries behind leader leader41 and reached -1 (of expected -1) 02:29:19,59 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower43: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:29:19,59 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): sendAppendEntries: 0 is present for follower follower43 02:29:19,59 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:29:19,59 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower43 updated: matchIndex: 0, nextIndex: 1 02:29:19,59 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 02:29:19,59 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Setting last applied to 0 02:29:19,59 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Moving last applied index from -1 to 0 02:29:19,59 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Applying state for log index 0 data zero-1 [WARN] [08/02/2025 02:29:19.059] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower43] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@52e18966 02:29:19,60 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: applyState called: zero-1 02:29:19,60 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower43: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:29:19,60 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): sendAppendEntries: 1 is present for follower follower43 02:29:19,60 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Sending AppendEntries to follower follower43: AppendEntries [leaderId=leader41, 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:29:19,60 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:29:19,60 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persisting ApplyJournalEntries with index=0 02:29:19,60 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): handleAppendEntries: AppendEntries [leaderId=leader41, 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:29:19,60 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Number of entries to be appended = 1 02:29:19,60 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 02:29:19,60 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Append entry to log one-1 02:29:19,60 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:29:19,60 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:29:19,60 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Log size is now 2 02:29:19,60 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Commit index set to 0 02:29:19,60 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower43, logLastIndex=1, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:19,61 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower43: Lagging 0 entries behind leader leader41 and reached 0 (of expected -1) 02:29:19,61 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 02:29:19,61 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Setting last applied to 0 02:29:19,61 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Moving last applied index from -1 to 0 02:29:19,61 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Applying state for log index 0 data zero-1 02:29:19,61 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower43 updated: matchIndex: 1, nextIndex: 2 02:29:19,61 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 02:29:19,61 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Setting last applied to 1 02:29:19,61 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Moving last applied index from 0 to 1 02:29:19,61 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Applying state for log index 1 data one-1 02:29:19,61 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: applyState called: zero-1 02:29:19,61 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: applyState called: one-1 02:29:19,61 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Persisting ApplyJournalEntries with index=0 02:29:19,61 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower43: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:29:19,61 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persisting ApplyJournalEntries with index=1 02:29:19,61 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Commit index set to 1 02:29:19,61 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower43: Lagging 0 entries behind leader leader41 and reached 1 (of expected -1) 02:29:19,61 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:29:19,61 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 02:29:19,61 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:29:19,61 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Setting last applied to 1 02:29:19,61 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Moving last applied index from 0 to 1 02:29:19,62 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Applying state for log index 1 data one-1 02:29:19,62 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 02:29:19,62 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: applyState called: one-1 02:29:19,62 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower43: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:29:19,62 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): sendAppendEntries: 2 is present for follower follower43 02:29:19,62 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Sending AppendEntries to follower follower43: AppendEntries [leaderId=leader41, 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:29:19,62 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Persisting ApplyJournalEntries with index=1 02:29:19,62 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:29:19,62 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): handleAppendEntries: AppendEntries [leaderId=leader41, 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:29:19,62 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Number of entries to be appended = 1 02:29:19,62 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:29:19,62 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Append entry to log two-1 02:29:19,62 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:29:19,62 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:29:19,62 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Log size is now 3 02:29:19,62 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower43, logLastIndex=2, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:19,62 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower43: Lagging 0 entries behind leader leader41 and reached 1 (of expected -1) 02:29:19,62 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): sendAppendEntries: 2 is present for follower follower43 02:29:19,63 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower43 updated: matchIndex: 2, nextIndex: 3 02:29:19,63 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower43: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:29:19,63 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:29:19,63 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 02:29:19,63 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Setting last applied to 2 02:29:19,63 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Moving last applied index from 1 to 2 02:29:19,63 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Applying state for log index 2 data two-1 02:29:19,63 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: applyState called: two-1 02:29:19,63 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persisting ApplyJournalEntries with index=2 02:29:19,63 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persist data SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 02:29:19,63 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 02:29:19,63 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Replicate message: identifier: MockIdentifier{value=three-1}, logIndex: 3, isSendImmediate: true 02:29:19,63 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower43: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: -1 02:29:19,63 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): sendAppendEntries: 3 is present for follower follower43 02:29:19,63 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Sending AppendEntries to follower follower43: AppendEntries [leaderId=leader41, 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:29:19,64 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 02:29:19,64 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): handleAppendEntries: AppendEntries [leaderId=leader41, 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:29:19,64 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Number of entries to be appended = 1 02:29:19,64 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 02:29:19,64 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Append entry to log three-1 02:29:19,64 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 02:29:19,64 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 02:29:19,64 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 02:29:19,64 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Log size is now 4 02:29:19,64 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Commit index set to 2 02:29:19,64 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower43, logLastIndex=3, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:19,64 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persist data SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 02:29:19,64 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower43: Lagging 0 entries behind leader leader41 and reached 2 (of expected -1) 02:29:19,64 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 02:29:19,64 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 3 02:29:19,64 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Setting last applied to 2 02:29:19,64 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Moving last applied index from 1 to 2 02:29:19,64 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Applying state for log index 2 data two-1 02:29:19,64 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Replicate message: identifier: MockIdentifier{value=four-1}, logIndex: 4, isSendImmediate: true 02:29:19,64 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower43: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:29:19,64 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: applyState called: two-1 02:29:19,64 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): sendAppendEntries: 3 is present for follower follower43 02:29:19,64 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:29:19,64 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Persisting ApplyJournalEntries with index=2 02:29:19,65 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower43 updated: matchIndex: 3, nextIndex: 4 02:29:19,65 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 02:29:19,65 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Setting last applied to 3 02:29:19,65 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Moving last applied index from 2 to 3 02:29:19,65 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Applying state for log index 3 data three-1 02:29:19,65 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: applyState called: three-1 02:29:19,65 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower43: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:29:19,65 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): sendAppendEntries: 4 is present for follower follower43 02:29:19,65 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Sending AppendEntries to follower follower43: AppendEntries [leaderId=leader41, 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:29:19,65 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persisting ApplyJournalEntries with index=3 02:29:19,65 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): handleAppendEntries: AppendEntries [leaderId=leader41, 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:29:19,65 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 02:29:19,65 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Number of entries to be appended = 1 02:29:19,65 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 02:29:19,65 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Append entry to log four-1 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Log size is now 5 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Commit index set to 3 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower43, logLastIndex=4, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower43: Lagging 0 entries behind leader leader41 and reached 3 (of expected -1) 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 4 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Setting last applied to 3 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Moving last applied index from 2 to 3 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Applying state for log index 3 data three-1 02:29:19,66 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower43 updated: matchIndex: 4, nextIndex: 5 02:29:19,66 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 02:29:19,66 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Setting last applied to 4 02:29:19,66 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Moving last applied index from 3 to 4 02:29:19,66 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Applying state for log index 4 data four-1 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: applyState called: three-1 02:29:19,66 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: applyState called: four-1 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Persisting ApplyJournalEntries with index=3 02:29:19,66 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower43: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:29:19,66 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Persisting ApplyJournalEntries with index=4 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Commit index set to 4 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower43: Lagging 0 entries behind leader leader41 and reached 4 (of expected -1) 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 4 02:29:19,66 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43 (Follower): Setting last applied to 4 02:29:19,67 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Moving last applied index from 3 to 4 02:29:19,67 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Applying state for log index 4 data four-1 02:29:19,67 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: applyState called: four-1 02:29:19,67 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower43: Persisting ApplyJournalEntries with index=4 02:29:19,134 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Term 3 in "AppendEntries [leaderId=leader41, 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:29:19,134 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Set currentTerm=3, votedFor=null 02:29:19,134 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower42: Lagging -3 entries behind leader leader41 and reached 2 (of expected -1) 02:29:19,135 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): handleAppendEntriesReply: follower follower42 last log term 2 for index 2 conflicts with the leader's 3 - set the follower's next index to 1 02:29:19,135 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: true, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:29:19,135 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): sendAppendEntries: 1 is present for follower follower42 02:29:19,135 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Sending AppendEntries to follower follower42: AppendEntries [leaderId=leader41, 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:29:19,136 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): handleAppendEntries: AppendEntries [leaderId=leader41, 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:29:19,136 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (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:29:19,136 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=3, success=false, followerId=follower42, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:29:19,136 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower42: Lagging 2 entries behind leader leader41 and reached 2 (of expected -1) 02:29:19,136 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower42, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 02:29:19,136 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): follower follower42 last log term 2 conflicts with the leader's 3 - dec next index to 0 02:29:19,137 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Checking sendAppendEntries for follower follower42: active: true, followerNextIndex: 0, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:29:19,137 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): sendAppendEntries: 0 is present for follower follower42 02:29:19,137 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Sending AppendEntries to follower follower42: AppendEntries [leaderId=leader41, 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:29:19,137 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): handleAppendEntries: AppendEntries [leaderId=leader41, 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:29:19,137 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Number of entries to be appended = 5 02:29:19,137 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: -1 02:29:19,137 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] is present: existingEntryTerm: 2 02:29:19,137 AM [test-akka.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:29:19,137 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Removing entries from log starting at 1, commitIndex: 2, lastApplied: 2 02:29:19,137 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Could not remove entries - sending reply to force snapshot 02:29:19,137 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower42: Lagging 2 entries behind leader leader41 and reached 2 (of expected -1) 02:29:19,137 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower42, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 02:29:19,138 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: 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 follower42 02:29:19,138 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: lastSequenceNumber prior to capture: -1 02:29:19,138 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: CaptureSnapshotReply received by actor 02:29:19,139 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: 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=leader41, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower43, isVoting=true], ServerInfo[peerId=follower42, isVoting=false], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=leader41, isVoting=true]]]] 02:29:19,139 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 02:29:19,139 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): sendInstallSnapshot 02:29:19,139 AM [test-akka.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader41 (Leader): Snapshot 390 bytes, total chunks to send: 1 02:29:19,139 AM [test-akka.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader41 (Leader): Next chunk: total length=390, offset=0, size=390, hashCode=-929342248 02:29:19,139 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): next snapshot chunk size for follower follower42: 390 02:29:19,139 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): InstallSnapshot sent to follower Vector(user, follower42), Chunk: 1/1 02:29:19,139 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader41, lastIncludedIndex=4, lastIncludedTerm=3, datasize=390, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower43, isVoting=true], ServerInfo[peerId=follower42, isVoting=false], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=leader41, isVoting=true]]]] 02:29:19,139 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower42: Lagging 2 entries behind leader leader41 and reached 2 (of expected -1) 02:29:19,139 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: Snapshot success - sequence number: -1 02:29:19,139 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:29:19,140 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): Snapshot installed from leader: leader41 02:29:19,140 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41: SnapshotComplete received 02:29:19,140 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: 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=follower43, isVoting=true], ServerInfo[peerId=follower42, isVoting=false], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=leader41, isVoting=true]]]] 02:29:19,140 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 02:29:19,140 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Snapshot success - sequence number: -1 02:29:19,140 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Moving last applied index from 2 to 4 02:29:19,140 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Set currentTerm=3, votedFor=null 02:29:19,140 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: Updated server config: isVoting: false, peers: [PeerInfo [id=follower43, address=null, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING], PeerInfo [id=leader41, address=akka://test/user/leader41, votingState=VOTING]] 02:29:19,140 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: applySnapshot called 02:29:19,141 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower42, chunkIndex=1, success=true] 02:29:19,141 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower42: SnapshotComplete received 02:29:19,141 AM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower42, chunkIndex=1, success=true] 02:29:19,141 AM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader41 (Leader): Snapshot successfully installed on follower follower42 (last chunk 1) - matchIndex set to 4, nextIndex set to 5 02:29:19,159 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart ending 02:29:19,159 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower42-collector44#-1318406138] 02:29:19,171 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower42] 02:29:19,172 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader41-collector45#36428108] 02:29:19,172 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader41] 02:29:19,172 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower43-collector46#-113136090] 02:29:19,173 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower43] 02:29:19,173 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader41-collector47#118079418] 02:29:19,174 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader41] 02:29:19,175 AM [test-akka.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [08/02/2025 02:29:19.175] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/02/2025 02:29:19.177] [test-akka.actor.default-dispatcher-11] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.126:25520) [INFO] [08/02/2025 02:29:19.178] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.126:25520] - Exiting completed [INFO] [08/02/2025 02:29:19.178] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.126:25520] - Shutting down... [INFO] [08/02/2025 02:29:19.178] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.126:25520] - Successfully shut down 02:29:19,179 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.126:25520] - Exiting completed 02:29:19,179 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.126:25520] - Shutting down... 02:29:19,179 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.126:25520] - Successfully shut down 02:29:19,182 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 02:29:19,182 AM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/02/2025 02:29:19.180] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.126:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [08/02/2025 02:29:19.181] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.126:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 02:29:19,185 AM [test-akka.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [08/02/2025 02:29:19.185] [test-akka.remote.default-remote-dispatcher-6] [akka://test@10.30.170.126:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [08/02/2025 02:29:19.186] [test-akka.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger