[DEBUG] [01/21/2025 00:43:11.415] [main] [EventStream(akka://test)] logger log1-TestEventListener started 12:43:11,415 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [01/21/2025 00:43:11.416] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [01/21/2025 00:43:11.416] [main] [EventStream(akka://test)] Default Loggers started [INFO] [01/21/2025 00:43:11.437] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.224:25520] with UID [2771084312168244475] 12:43:11,438 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.224:25520] with UID [2771084312168244475] [INFO] [01/21/2025 00:43:11.439] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.224:25520] - Starting up, Akka version [2.6.21] ... 12:43:11,439 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.224:25520] - Starting up, Akka version [2.6.21] ... [INFO] [01/21/2025 00:43:11.442] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.224:25520] - Registered cluster JMX MBean [akka:type=Cluster] 12:43:11,442 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.224:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [01/21/2025 00:43:11.442] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.224:25520] - Started up successfully 12:43:11,442 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.224:25520] - Started up successfully [INFO] [01/21/2025 00:43:11.443] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.224:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [01/21/2025 00:43:11.443] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.224:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 12:43:11,443 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.224:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 12:43:11,443 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.224:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 12:43:11,454 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerLeaderStateChanges [WARN] [01/21/2025 00:43:11.458] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower84]: org.opendaylight.controller.cluster.common.actor.Monitor@2ad30e17 [INFO] [akkaDeadLetter][01/21/2025 00:43:11.457] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower84] 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'. 12:43:11,458 AM [test-akka.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower84] 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'. 12:43:11,459 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower84 with journal batch size 1000 12:43:11,463 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower84: Set currentTerm=1, votedFor=leader83 12:43:11,463 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower84: Received ReplicatedLogEntry for recovery: index: 0, size: 141 12:43:11,463 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower84: Updated server config: isVoting: false, peers: [PeerInfo [id=leader83, address=akka://test/user/leader83, votingState=VOTING]] 12:43:11,463 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower84: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [01/21/2025 00:43:11.558] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader83]: org.opendaylight.controller.cluster.common.actor.Monitor@70ac34d 12:43:11,558 AM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader83] to Actor[akka://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [akkaDeadLetter][01/21/2025 00:43:11.558] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader83] 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'. 12:43:11,559 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader83 with journal batch size 1000 12:43:11,562 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83: Set currentTerm=1, votedFor=leader83 12:43:11,562 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83: Received ReplicatedLogEntry for recovery: index: 0, size: 141 12:43:11,562 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83: Updated server config: isVoting: true, peers: [PeerInfo [id=follower84, address=akka://test/user/follower84, votingState=NON_VOTING]] 12:43:11,562 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader83: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:43:11,999 AM [test-akka.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:43:11,999 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.224:25520, Removed) 12:43:12,0 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Follower): Received ElectionTimeout - switching to Candidate 12:43:12,0 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Candidate): Election: Candidate has following voting peers: [] 12:43:12,0 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83: Set currentTerm=2, votedFor=leader83 12:43:12,0 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Candidate): Starting new election term 2 12:43:12,0 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:43:12,1 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Candidate): Received ElectionTimeout 12:43:12,1 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Leader): Election: Leader has following peers: [follower84] 12:43:12,1 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Leader): Checking sendAppendEntries for follower follower84: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:43:12,2 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:43:12,2 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower84 (Follower): Term 2 in "AppendEntries [leaderId=leader83, 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 12:43:12,2 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower84: Set currentTerm=2, votedFor=null 12:43:12,2 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower84: Last sync leader does not match current leader leader83, need to catch up to -1 12:43:12,2 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower84 updated: matchIndex: -1, nextIndex: 0 12:43:12,2 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Leader): Checking sendAppendEntries for follower follower84: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [01/21/2025 00:43:12.003] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower84] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@698a9626 [INFO] [akkaDeadLetter][01/21/2025 00:43:12.003] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower84] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower84] 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'. 12:43:12,3 AM [test-akka.actor.default-dispatcher-12] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower84] 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'. 12:43:12,19 AM [test-akka.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:43:12,359 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower84: Lagging 0 entries behind leader leader83 and reached -1 (of expected -1) [WARN] [01/21/2025 00:43:12.360] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower84] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@846d150 [INFO] [akkaDeadLetter][01/21/2025 00:43:12.360] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower84] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower84] 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'. 12:43:12,360 AM [test-akka.actor.default-dispatcher-13] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower84] 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'. 12:43:12,371 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/roleChangeNotifier86#-840759862] 12:43:12,384 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower84-collector87#-1169162346] 12:43:12,385 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower84] 12:43:12,385 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader83-collector88#1270404597] 12:43:12,385 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader83] 12:43:12,387 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart starting 12:43:12,390 AM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower90] 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'. [WARN] [01/21/2025 00:43:12.390] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower90]: org.opendaylight.controller.cluster.common.actor.Monitor@6371ac99 [INFO] [akkaDeadLetter][01/21/2025 00:43:12.390] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower90] 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'. 12:43:12,391 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower90 with journal batch size 1000 12:43:12,393 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Set currentTerm=1, votedFor=leader89 12:43:12,393 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Received ReplicatedLogEntry for recovery: index: 0, size: 141 12:43:12,393 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Updated server config: isVoting: false, peers: [PeerInfo [id=leader89, address=akka://test/user/leader89, votingState=VOTING]] 12:43:12,393 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:43:12,394 AM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader89] to Actor[akka://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [WARN] [01/21/2025 00:43:12.394] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader89]: org.opendaylight.controller.cluster.common.actor.Monitor@32e71a3b [INFO] [akkaDeadLetter][01/21/2025 00:43:12.394] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader89] 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'. 12:43:12,394 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader89 with journal batch size 1000 12:43:12,396 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Set currentTerm=1, votedFor=leader89 12:43:12,396 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Received ReplicatedLogEntry for recovery: index: 0, size: 141 12:43:12,396 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Updated server config: isVoting: true, peers: [PeerInfo [id=follower90, address=akka://test/user/follower90, votingState=NON_VOTING]] 12:43:12,396 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:43:12,908 AM [test-akka.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:43:12,909 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.224:25520, Removed) 12:43:12,909 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower): Received ElectionTimeout - switching to Candidate 12:43:12,909 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Election: Candidate has following voting peers: [] 12:43:12,909 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Set currentTerm=2, votedFor=leader89 12:43:12,909 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Starting new election term 2 12:43:12,909 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:43:12,910 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Received ElectionTimeout 12:43:12,910 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Election: Leader has following peers: [follower90] 12:43:12,911 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:43:12,911 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:43:12,911 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Term 2 in "AppendEntries [leaderId=leader89, 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 12:43:12,911 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Set currentTerm=2, votedFor=null 12:43:12,911 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower90: Last sync leader does not match current leader leader89, need to catch up to -1 12:43:12,912 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower90 updated: matchIndex: -1, nextIndex: 0 12:43:12,912 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [01/21/2025 00:43:12.912] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower90] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@71e452f5 [INFO] [akkaDeadLetter][01/21/2025 00:43:12.912] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower90] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower90] 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'. 12:43:12,912 AM [test-akka.actor.default-dispatcher-13] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower90] 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'. 12:43:12,951 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:12,951 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:12,951 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:43:12,951 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Setting last applied to 0 12:43:12,952 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Moving last applied index from -1 to 0 12:43:12,952 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Applying state for log index 0 data zero 12:43:12,952 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: applyState called: zero 12:43:12,952 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:43:12,952 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): sendAppendEntries: 0 is present for follower follower90 12:43:12,952 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Sending AppendEntries to follower follower90: AppendEntries [leaderId=leader89, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 12:43:12,952 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries: AppendEntries [leaderId=leader89, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 12:43:12,952 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Number of entries to be appended = 1 12:43:12,952 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:43:12,952 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Append entry to log zero 12:43:12,952 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:12,952 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:12,952 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Log size is now 1 12:43:12,952 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Commit index set to 0 12:43:12,952 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower90, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:12,952 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower90: Lagging 0 entries behind leader leader89 and reached 0 (of expected -1) 12:43:12,952 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 12:43:12,952 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Setting last applied to 0 12:43:12,952 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Moving last applied index from -1 to 0 12:43:12,952 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Applying state for log index 0 data zero 12:43:12,953 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: applyState called: zero 12:43:12,953 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Persisting ApplyJournalEntries with index=0 [WARN] [01/21/2025 00:43:12.953] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower90] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6f41a044 12:43:12,953 AM [test-akka.actor.default-dispatcher-13] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower90] 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'. [INFO] [akkaDeadLetter][01/21/2025 00:43:12.953] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower90] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower90] 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'. 12:43:12,953 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting ApplyJournalEntries with index=0 12:43:12,953 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower90 updated: matchIndex: 0, nextIndex: 1 12:43:12,953 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:43:12,954 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:12,954 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:12,954 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:12,954 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:43:12,954 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Setting last applied to 1 12:43:12,954 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Moving last applied index from 0 to 1 12:43:12,954 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Applying state for log index 1 data one 12:43:12,954 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: applyState called: one 12:43:12,954 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:43:12,954 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): sendAppendEntries: 1 is present for follower follower90 12:43:12,954 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Sending AppendEntries to follower follower90: AppendEntries [leaderId=leader89, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 12:43:12,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting ApplyJournalEntries with index=1 12:43:12,954 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries: AppendEntries [leaderId=leader89, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Number of entries to be appended = 1 12:43:12,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Append entry to log one 12:43:12,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: fakeSnapshot purging log to 0 for term 2 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Log size is now 2 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Commit index set to 1 12:43:12,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:43:12,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower90, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower90: Lagging 0 entries behind leader leader89 and reached 1 (of expected -1) 12:43:12,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:43:12,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Setting last applied to 2 12:43:12,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Moving last applied index from 1 to 2 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Setting last applied to 1 12:43:12,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Applying state for log index 2 data two 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Moving last applied index from 0 to 1 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Applying state for log index 1 data one 12:43:12,955 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: applyState called: two 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: applyState called: one 12:43:12,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:43:12,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): sendAppendEntries: 1 is present for follower follower90 12:43:12,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Sending AppendEntries to follower follower90: AppendEntries [leaderId=leader89, 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]]] 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Persisting ApplyJournalEntries with index=1 12:43:12,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower90 updated: matchIndex: 1, nextIndex: 2 12:43:12,955 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: fakeSnapshot purging log to 1 for term 2 12:43:12,955 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries: AppendEntries [leaderId=leader89, 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]]] 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Number of entries to be appended = 2 12:43:12,956 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 12:43:12,956 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): sendAppendEntries: 2 is present for follower follower90 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 12:43:12,956 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Sending AppendEntries to follower follower90: AppendEntries [leaderId=leader89, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Append entry to log two 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Log size is now 3 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Commit index set to 2 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower90, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:12,956 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting ApplyJournalEntries with index=2 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower90: Lagging 0 entries behind leader leader89 and reached 2 (of expected -1) 12:43:12,956 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Setting last applied to 2 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Moving last applied index from 1 to 2 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Applying state for log index 2 data two 12:43:12,956 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower90 updated: matchIndex: 2, nextIndex: 3 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: applyState called: two 12:43:12,956 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: fakeSnapshot purging log to 0 for term 2 12:43:12,956 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 12:43:12,956 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries: AppendEntries [leaderId=leader89, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 12:43:12,956 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Number of entries to be appended = 1 12:43:12,956 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 12:43:12,956 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 12:43:12,956 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Log size is now 2 12:43:12,956 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower90, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:12,957 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower90: Lagging 0 entries behind leader leader89 and reached 2 (of expected -1) 12:43:12,957 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: fakeSnapshot purging log to 1 for term 2 12:43:12,957 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Persisting ApplyJournalEntries with index=2 12:43:13,15 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader89 with journal batch size 1000 [WARN] [01/21/2025 00:43:13.016] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader89]: org.opendaylight.controller.cluster.common.actor.Monitor@6c27b2d7 [INFO] [akkaDeadLetter][01/21/2025 00:43:13.016] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader89] 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'. 12:43:13,17 AM [test-akka.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader89] 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'. 12:43:13,19 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Set currentTerm=1, votedFor=leader89 12:43:13,19 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Received ReplicatedLogEntry for recovery: index: 0, size: 141 12:43:13,19 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Updated server config: isVoting: true, peers: [PeerInfo [id=follower90, address=akka://test/user/follower90, votingState=NON_VOTING]] 12:43:13,19 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Set currentTerm=2, votedFor=leader89 12:43:13,19 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:43:13,499 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.224:25520, Removed) 12:43:13,499 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower): Received ElectionTimeout - switching to Candidate 12:43:13,499 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Election: Candidate has following voting peers: [] 12:43:13,499 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Set currentTerm=3, votedFor=leader89 12:43:13,499 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Starting new election term 3 12:43:13,499 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 12:43:13,500 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Received ElectionTimeout 12:43:13,501 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Election: Leader has following peers: [follower90] 12:43:13,501 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:43:13,501 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 12:43:13,523 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:13,523 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:13,524 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 12:43:13,524 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Setting last applied to 0 12:43:13,524 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Moving last applied index from -1 to 0 12:43:13,524 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Applying state for log index 0 data zero-1 12:43:13,524 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: applyState called: zero-1 12:43:13,524 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:43:13,524 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting ApplyJournalEntries with index=0 12:43:13,525 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:13,525 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:43:13,525 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:43:13,525 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 12:43:13,525 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Setting last applied to 1 12:43:13,525 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Moving last applied index from 0 to 1 12:43:13,525 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Applying state for log index 1 data one-1 12:43:13,525 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: applyState called: one-1 12:43:13,525 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:43:13,526 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting ApplyJournalEntries with index=1 12:43:13,526 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:43:13,620 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Term 3 in "AppendEntries [leaderId=leader89, 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 12:43:13,620 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Set currentTerm=3, votedFor=null 12:43:13,620 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower90: Lagging -3 entries behind leader leader89 and reached 2 (of expected -1) 12:43:13,621 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleAppendEntriesReply: follower follower90 lastIndex 2 is ahead of our lastIndex 1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 12:43:13,621 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: 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 follower90 12:43:13,621 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: lastSequenceNumber prior to capture: -1 12:43:13,623 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: CaptureSnapshotReply received by actor 12:43:13,623 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: 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=leader89, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower90, isVoting=false], ServerInfo[peerId=leader89, isVoting=true]]]] 12:43:13,625 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 12:43:13,626 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): sendInstallSnapshot 12:43:13,626 AM [test-akka.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader89 (Leader): Snapshot 333 bytes, total chunks to send: 1 12:43:13,626 AM [test-akka.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader89 (Leader): Next chunk: total length=333, offset=0, size=333, hashCode=878051978 12:43:13,626 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): next snapshot chunk size for follower follower90: 333 12:43:13,627 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): InstallSnapshot sent to follower Vector(user, follower90), Chunk: 1/1 12:43:13,628 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Snapshot success - sequence number: -1 12:43:13,629 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: SnapshotComplete received 12:43:13,626 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader89, lastIncludedIndex=1, lastIncludedTerm=3, datasize=333, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower90, isVoting=false], ServerInfo[peerId=leader89, isVoting=true]]]] 12:43:13,631 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower90: Lagging -1 entries behind leader leader89 and reached 2 (of expected -1) 12:43:13,631 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:43:13,631 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Snapshot installed from leader: leader89 12:43:13,636 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: 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=follower90, isVoting=false], ServerInfo[peerId=leader89, isVoting=true]]]] 12:43:13,636 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 12:43:13,636 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Snapshot success - sequence number: -1 12:43:13,636 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Moving last applied index from 2 to 1 12:43:13,636 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Set currentTerm=3, votedFor=null 12:43:13,636 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Updated server config: isVoting: false, peers: [PeerInfo [id=leader89, address=akka://test/user/leader89, votingState=VOTING]] 12:43:13,636 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: applySnapshot called 12:43:13,636 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower90, chunkIndex=1, success=true] 12:43:13,639 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: SnapshotComplete received 12:43:13,639 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower90, chunkIndex=1, success=true] 12:43:13,639 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Snapshot successfully installed on follower follower90 (last chunk 1) - matchIndex set to 1, nextIndex set to 2 12:43:13,639 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: fakeSnapshot purging log to 0 for term 3 12:43:13,674 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart ending 12:43:13,675 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower90-collector92#-704504142] 12:43:13,686 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower90] 12:43:13,686 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader89-collector93#1578238307] 12:43:13,687 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader89] 12:43:13,687 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader89-collector94#-1461216590] 12:43:13,688 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader89] 12:43:13,689 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart starting [WARN] [01/21/2025 00:43:13.692] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower96]: org.opendaylight.controller.cluster.common.actor.Monitor@1d1c2ea6 [INFO] [akkaDeadLetter][01/21/2025 00:43:13.692] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower96] 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'. 12:43:13,692 AM [test-akka.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower96] 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'. 12:43:13,692 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower96 with journal batch size 1000 [WARN] [01/21/2025 00:43:13.694] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader95]: org.opendaylight.controller.cluster.common.actor.Monitor@209f411c 12:43:13,694 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Set currentTerm=1, votedFor=leader95 12:43:13,695 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Received ReplicatedLogEntry for recovery: index: 0, size: 141 12:43:13,695 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Updated server config: isVoting: false, peers: [PeerInfo [id=leader95, address=akka://test/user/leader95, votingState=VOTING]] 12:43:13,695 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:43:13,695 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader95 with journal batch size 1000 12:43:13,696 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Set currentTerm=1, votedFor=leader95 12:43:13,697 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Received ReplicatedLogEntry for recovery: index: 0, size: 141 12:43:13,697 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Updated server config: isVoting: true, peers: [PeerInfo [id=follower96, address=akka://test/user/follower96, votingState=NON_VOTING]] 12:43:13,697 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:43:14,149 AM [test-akka.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:43:14,149 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.224:25520, Removed) 12:43:14,149 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower): Received ElectionTimeout - switching to Candidate 12:43:14,149 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Election: Candidate has following voting peers: [] 12:43:14,149 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Set currentTerm=2, votedFor=leader95 12:43:14,149 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Starting new election term 2 12:43:14,149 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:43:14,150 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Received ElectionTimeout 12:43:14,151 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Election: Leader has following peers: [follower96] 12:43:14,151 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:43:14,151 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:43:14,151 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Term 2 in "AppendEntries [leaderId=leader95, 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 12:43:14,151 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Set currentTerm=2, votedFor=null 12:43:14,151 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower96: Last sync leader does not match current leader leader95, need to catch up to -1 12:43:14,152 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower96 updated: matchIndex: -1, nextIndex: 0 [WARN] [01/21/2025 00:43:14.152] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower96] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2334b836 12:43:14,152 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:43:14,152 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:14,152 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:14,152 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Setting last applied to 0 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Moving last applied index from -1 to 0 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Applying state for log index 0 data zero 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: applyState called: zero 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 0 is present for follower follower96 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Sending AppendEntries to follower follower96: AppendEntries [leaderId=leader95, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persisting ApplyJournalEntries with index=0 12:43:14,153 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries: AppendEntries [leaderId=leader95, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:14,153 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Number of entries to be appended = 1 12:43:14,153 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:43:14,153 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Append entry to log zero 12:43:14,153 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:14,153 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:14,153 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Log size is now 1 12:43:14,153 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Commit index set to 0 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Setting last applied to 1 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Moving last applied index from 0 to 1 12:43:14,153 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower96, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Applying state for log index 1 data one 12:43:14,153 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower96: Lagging 0 entries behind leader leader95 and reached 0 (of expected -1) 12:43:14,153 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 12:43:14,153 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Setting last applied to 0 12:43:14,153 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Moving last applied index from -1 to 0 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: applyState called: one 12:43:14,153 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Applying state for log index 0 data zero 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:43:14,153 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: applyState called: zero 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 0 is present for follower follower96 12:43:14,153 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Sending AppendEntries to follower follower96: AppendEntries [leaderId=leader95, 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]]] 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Persisting ApplyJournalEntries with index=0 12:43:14,154 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower96 updated: matchIndex: 0, nextIndex: 1 12:43:14,154 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: fakeSnapshot purging log to 0 for term 2 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries: AppendEntries [leaderId=leader95, 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]]] 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Number of entries to be appended = 2 12:43:14,154 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 12:43:14,154 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 1 is present for follower follower96 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Append entry to log one 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Log size is now 2 12:43:14,154 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Sending AppendEntries to follower follower96: AppendEntries [leaderId=leader95, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Commit index set to 1 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower96, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower96: Lagging 0 entries behind leader leader95 and reached 1 (of expected -1) 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Setting last applied to 1 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Moving last applied index from 0 to 1 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Applying state for log index 1 data one 12:43:14,154 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: applyState called: one 12:43:14,154 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persisting ApplyJournalEntries with index=1 12:43:14,154 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:14,154 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries: AppendEntries [leaderId=leader95, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 12:43:14,154 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Number of entries to be appended = 1 12:43:14,154 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 12:43:14,154 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 12:43:14,155 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Log size is now 2 12:43:14,155 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower96, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:14,155 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower96: Lagging 0 entries behind leader leader95 and reached 1 (of expected -1) 12:43:14,155 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower96 updated: matchIndex: 1, nextIndex: 2 12:43:14,155 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: fakeSnapshot purging log to 0 for term 2 12:43:14,155 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 12:43:14,155 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Persisting ApplyJournalEntries with index=1 12:43:14,155 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:43:14,155 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:43:14,155 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 12:43:14,155 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Setting last applied to 2 12:43:14,155 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Moving last applied index from 1 to 2 12:43:14,155 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Applying state for log index 2 data two 12:43:14,155 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: applyState called: two 12:43:14,155 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:43:14,155 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 2 is present for follower follower96 12:43:14,155 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Sending AppendEntries to follower follower96: AppendEntries [leaderId=leader95, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 12:43:14,155 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persisting ApplyJournalEntries with index=2 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: fakeSnapshot purging log to 1 for term 2 [WARN] [01/21/2025 00:43:14.156] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower96] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4c0eda1 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries: AppendEntries [leaderId=leader95, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Number of entries to be appended = 1 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Append entry to log two 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Log size is now 2 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Commit index set to 2 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower96, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower96: Lagging 0 entries behind leader leader95 and reached 2 (of expected -1) 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Setting last applied to 2 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Moving last applied index from 1 to 2 12:43:14,156 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower96 updated: matchIndex: 2, nextIndex: 3 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Applying state for log index 2 data two 12:43:14,156 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 12:43:14,156 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: applyState called: two 12:43:14,157 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Persisting ApplyJournalEntries with index=2 [WARN] [01/21/2025 00:43:14.218] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader95]: org.opendaylight.controller.cluster.common.actor.Monitor@32663b39 12:43:14,219 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader95 with journal batch size 1000 12:43:14,221 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Set currentTerm=1, votedFor=leader95 12:43:14,222 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Received ReplicatedLogEntry for recovery: index: 0, size: 141 12:43:14,222 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Updated server config: isVoting: true, peers: [PeerInfo [id=follower96, address=akka://test/user/follower96, votingState=NON_VOTING]] 12:43:14,222 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Set currentTerm=2, votedFor=leader95 12:43:14,222 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:43:14,679 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.224:25520, Removed) 12:43:14,679 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower): Received ElectionTimeout - switching to Candidate 12:43:14,679 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Election: Candidate has following voting peers: [] 12:43:14,679 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Set currentTerm=3, votedFor=leader95 12:43:14,679 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Starting new election term 3 12:43:14,679 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 12:43:14,681 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Received ElectionTimeout 12:43:14,681 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Election: Leader has following peers: [follower96] 12:43:14,681 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:43:14,681 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 12:43:14,681 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Term 3 in "AppendEntries [leaderId=leader95, 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 12:43:14,681 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Set currentTerm=3, votedFor=null 12:43:14,682 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower96: Lagging -3 entries behind leader leader95 and reached 2 (of expected -1) 12:43:14,682 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply: follower follower96 lastIndex 2 is ahead of our lastIndex -1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 12:43:14,682 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 12:43:14,682 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: 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 follower96 12:43:14,682 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: lastSequenceNumber prior to capture: -1 12:43:14,683 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: CaptureSnapshotReply received by actor 12:43:14,683 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=3, electionVotedFor=leader95, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower96, isVoting=false], ServerInfo[peerId=leader95, isVoting=true]]]] 12:43:14,683 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 12:43:14,683 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendInstallSnapshot 12:43:14,683 AM [test-akka.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader95 (Leader): Snapshot 171 bytes, total chunks to send: 1 12:43:14,683 AM [test-akka.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader95 (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 12:43:14,683 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): next snapshot chunk size for follower follower96: 171 12:43:14,684 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader95, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower96, isVoting=false], ServerInfo[peerId=leader95, isVoting=true]]]] 12:43:14,684 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower96: Lagging -3 entries behind leader leader95 and reached 2 (of expected -1) 12:43:14,684 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:43:14,684 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Snapshot installed from leader: leader95 12:43:14,684 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): InstallSnapshot sent to follower Vector(user, follower96), Chunk: 1/1 12:43:14,684 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Snapshot success - sequence number: -1 12:43:14,684 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: SnapshotComplete received 12:43:14,684 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: 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=follower96, isVoting=false], ServerInfo[peerId=leader95, isVoting=true]]]] 12:43:14,684 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 12:43:14,685 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Snapshot success - sequence number: -1 12:43:14,685 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Moving last applied index from 2 to -1 12:43:14,685 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Set currentTerm=3, votedFor=null 12:43:14,685 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Updated server config: isVoting: false, peers: [PeerInfo [id=leader95, address=akka://test/user/leader95, votingState=VOTING]] 12:43:14,685 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: applySnapshot called 12:43:14,685 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower96, chunkIndex=1, success=true] 12:43:14,685 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: SnapshotComplete received 12:43:14,685 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower96, chunkIndex=1, success=true] 12:43:14,685 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Snapshot successfully installed on follower follower96 (last chunk 1) - matchIndex set to -1, nextIndex set to 0 12:43:14,726 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:14,726 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:14,726 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 12:43:14,726 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Setting last applied to 0 12:43:14,726 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Moving last applied index from -1 to 0 12:43:14,726 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Applying state for log index 0 data zero-1 12:43:14,726 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: applyState called: zero-1 12:43:14,726 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:43:14,726 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 0 is present for follower follower96 12:43:14,726 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Sending AppendEntries to follower follower96: AppendEntries [leaderId=leader95, 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]]] 12:43:14,726 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persisting ApplyJournalEntries with index=0 12:43:14,727 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries: AppendEntries [leaderId=leader95, 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]]] 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Number of entries to be appended = 1 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Append entry to log zero-1 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Log size is now 1 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Commit index set to 0 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower96, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower96: Lagging 0 entries behind leader leader95 and reached 0 (of expected -1) 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Setting last applied to 0 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Moving last applied index from -1 to 0 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Applying state for log index 0 data zero-1 12:43:14,727 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower96 updated: matchIndex: 0, nextIndex: 1 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: applyState called: zero-1 12:43:14,727 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:43:14,727 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Persisting ApplyJournalEntries with index=0 12:43:14,776 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart ending 12:43:14,776 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower96-collector98#-1165059433] 12:43:14,788 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower96] 12:43:14,788 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader95-collector99#1046054016] 12:43:14,789 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader95] 12:43:14,789 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader95-collector100#573388316] 12:43:14,789 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader95] 12:43:14,791 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart starting [WARN] [01/21/2025 00:43:14.793] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower102]: org.opendaylight.controller.cluster.common.actor.Monitor@7738bca6 12:43:14,794 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower102 with journal batch size 1000 12:43:14,796 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Set currentTerm=1, votedFor=leader101 12:43:14,797 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Received ReplicatedLogEntry for recovery: index: 0, size: 143 12:43:14,797 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Updated server config: isVoting: false, peers: [PeerInfo [id=leader101, address=akka://test/user/leader101, votingState=VOTING]] 12:43:14,797 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [01/21/2025 00:43:14.797] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader101]: org.opendaylight.controller.cluster.common.actor.Monitor@360c532f 12:43:14,797 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader101 with journal batch size 1000 12:43:14,800 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Set currentTerm=1, votedFor=leader101 12:43:14,800 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Received ReplicatedLogEntry for recovery: index: 0, size: 143 12:43:14,800 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Updated server config: isVoting: true, peers: [PeerInfo [id=follower102, address=akka://test/user/follower102, votingState=NON_VOTING]] 12:43:14,800 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:43:15,279 AM [test-akka.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:43:15,279 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.224:25520, Removed) 12:43:15,280 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower): Received ElectionTimeout - switching to Candidate 12:43:15,280 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Election: Candidate has following voting peers: [] 12:43:15,280 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Set currentTerm=2, votedFor=leader101 12:43:15,280 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Starting new election term 2 12:43:15,280 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:43:15,282 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Received ElectionTimeout 12:43:15,282 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Election: Leader has following peers: [follower102] 12:43:15,282 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:43:15,283 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:43:15,283 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Term 2 in "AppendEntries [leaderId=leader101, 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 12:43:15,283 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Set currentTerm=2, votedFor=null 12:43:15,283 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower102: Last sync leader does not match current leader leader101, need to catch up to -1 12:43:15,283 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower102 updated: matchIndex: -1, nextIndex: 0 12:43:15,284 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [01/21/2025 00:43:15.284] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower102] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@83b9f4f 12:43:15,306 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:15,306 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:15,306 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:43:15,306 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Setting last applied to 0 12:43:15,306 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Moving last applied index from -1 to 0 12:43:15,306 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Applying state for log index 0 data zero 12:43:15,306 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: applyState called: zero 12:43:15,306 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:43:15,306 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): sendAppendEntries: 0 is present for follower follower102 12:43:15,307 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Sending AppendEntries to follower follower102: AppendEntries [leaderId=leader101, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 12:43:15,307 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting ApplyJournalEntries with index=0 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleAppendEntries: AppendEntries [leaderId=leader101, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 12:43:15,307 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Number of entries to be appended = 1 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Append entry to log zero 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:15,307 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:15,307 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Log size is now 1 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Commit index set to 0 12:43:15,307 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower102, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:15,307 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Setting last applied to 1 12:43:15,307 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Moving last applied index from 0 to 1 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower102: Lagging 0 entries behind leader leader101 and reached 0 (of expected -1) 12:43:15,307 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Applying state for log index 1 data one 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Setting last applied to 0 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Moving last applied index from -1 to 0 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Applying state for log index 0 data zero 12:43:15,307 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: applyState called: one 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: applyState called: zero 12:43:15,307 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Persisting ApplyJournalEntries with index=0 12:43:15,308 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:43:15,308 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): sendAppendEntries: 0 is present for follower follower102 12:43:15,308 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Sending AppendEntries to follower follower102: AppendEntries [leaderId=leader101, 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]]] 12:43:15,308 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower102 updated: matchIndex: 0, nextIndex: 1 [WARN] [01/21/2025 00:43:15.308] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower102] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@157696a6 12:43:15,308 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleAppendEntries: AppendEntries [leaderId=leader101, 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]]] 12:43:15,308 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: fakeSnapshot purging log to 0 for term 2 12:43:15,308 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Number of entries to be appended = 2 12:43:15,308 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 12:43:15,308 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 12:43:15,308 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 12:43:15,308 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): sendAppendEntries: 1 is present for follower follower102 12:43:15,308 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Append entry to log one 12:43:15,308 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:15,308 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Sending AppendEntries to follower follower102: AppendEntries [leaderId=leader101, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 12:43:15,308 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:15,308 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Log size is now 2 12:43:15,308 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Commit index set to 1 12:43:15,308 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower102, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:15,308 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting ApplyJournalEntries with index=1 12:43:15,308 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower102: Lagging 0 entries behind leader leader101 and reached 1 (of expected -1) 12:43:15,308 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:43:15,308 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Setting last applied to 1 12:43:15,308 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:15,308 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Moving last applied index from 0 to 1 12:43:15,308 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Applying state for log index 1 data one 12:43:15,309 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower102 updated: matchIndex: 1, nextIndex: 2 12:43:15,309 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 12:43:15,309 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: applyState called: one 12:43:15,309 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleAppendEntries: AppendEntries [leaderId=leader101, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 12:43:15,309 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Number of entries to be appended = 1 12:43:15,309 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 12:43:15,309 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 12:43:15,309 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Log size is now 2 12:43:15,309 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower102, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:15,309 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower102: Lagging 0 entries behind leader leader101 and reached 1 (of expected -1) 12:43:15,309 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: fakeSnapshot purging log to 0 for term 2 12:43:15,309 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Persisting ApplyJournalEntries with index=1 12:43:15,372 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader101 with journal batch size 1000 [WARN] [01/21/2025 00:43:15.372] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader101]: org.opendaylight.controller.cluster.common.actor.Monitor@1e05b170 12:43:15,375 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Set currentTerm=1, votedFor=leader101 12:43:15,375 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Received ReplicatedLogEntry for recovery: index: 0, size: 143 12:43:15,375 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Updated server config: isVoting: true, peers: [PeerInfo [id=follower102, address=akka://test/user/follower102, votingState=NON_VOTING]] 12:43:15,375 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Set currentTerm=2, votedFor=leader101 12:43:15,376 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:43:15,819 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.224:25520, Removed) 12:43:15,819 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower): Received ElectionTimeout - switching to Candidate 12:43:15,819 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Election: Candidate has following voting peers: [] 12:43:15,819 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Set currentTerm=3, votedFor=leader101 12:43:15,819 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Starting new election term 3 12:43:15,819 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 12:43:15,821 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Received ElectionTimeout 12:43:15,821 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Election: Leader has following peers: [follower102] 12:43:15,822 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:43:15,822 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 12:43:15,831 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:15,831 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:15,831 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 12:43:15,831 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Setting last applied to 0 12:43:15,831 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Moving last applied index from -1 to 0 12:43:15,831 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Applying state for log index 0 data zero-1 12:43:15,832 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: applyState called: zero-1 12:43:15,832 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:43:15,832 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting ApplyJournalEntries with index=0 12:43:15,832 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:15,832 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:43:15,832 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:43:15,832 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 12:43:15,832 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Setting last applied to 1 12:43:15,832 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Moving last applied index from 0 to 1 12:43:15,832 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Applying state for log index 1 data one-1 12:43:15,832 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: applyState called: one-1 12:43:15,832 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:43:15,833 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting ApplyJournalEntries with index=1 12:43:15,833 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:43:15,833 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:43:15,833 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:43:15,833 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 12:43:15,833 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Setting last applied to 2 12:43:15,833 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Moving last applied index from 1 to 2 12:43:15,833 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Applying state for log index 2 data two-1 12:43:15,833 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: applyState called: two-1 12:43:15,833 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:43:15,834 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting ApplyJournalEntries with index=2 12:43:15,834 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:43:15,939 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Term 3 in "AppendEntries [leaderId=leader101, 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 12:43:15,939 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Set currentTerm=3, votedFor=null 12:43:15,940 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower102: Lagging -2 entries behind leader leader101 and reached 1 (of expected -1) 12:43:15,940 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleAppendEntriesReply: follower follower102 last log term 2 for index 1 conflicts with the leader's 3 - set the follower's next index to 0 12:43:15,940 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:43:15,940 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): sendAppendEntries: 0 is present for follower follower102 12:43:15,940 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Sending AppendEntries to follower follower102: AppendEntries [leaderId=leader101, 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]]] 12:43:15,942 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleAppendEntries: AppendEntries [leaderId=leader101, 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]]] 12:43:15,942 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Number of entries to be appended = 3 12:43:15,942 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: 2 12:43:15,942 AM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:43:15,942 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Removing entries from log starting at 0, commitIndex: 1, lastApplied: 1 12:43:15,942 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Could not remove entries - sending reply to force snapshot 12:43:15,943 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower102: Lagging 1 entries behind leader leader101 and reached 1 (of expected -1) 12:43:15,943 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower102, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 12:43:15,943 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: 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 follower102 12:43:15,943 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: lastSequenceNumber prior to capture: -1 12:43:15,943 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: CaptureSnapshotReply received by actor 12:43:15,943 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: 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=leader101, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower102, isVoting=false], ServerInfo[peerId=leader101, isVoting=true]]]] 12:43:15,943 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 12:43:15,943 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): sendInstallSnapshot 12:43:15,944 AM [test-akka.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader101 (Leader): Snapshot 351 bytes, total chunks to send: 1 12:43:15,944 AM [test-akka.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader101 (Leader): Next chunk: total length=351, offset=0, size=351, hashCode=236499276 12:43:15,944 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): next snapshot chunk size for follower follower102: 351 12:43:15,944 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): InstallSnapshot sent to follower Vector(user, follower102), Chunk: 1/1 12:43:15,944 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Snapshot success - sequence number: -1 12:43:15,944 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: SnapshotComplete received 12:43:15,944 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader101, lastIncludedIndex=2, lastIncludedTerm=3, datasize=351, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower102, isVoting=false], ServerInfo[peerId=leader101, isVoting=true]]]] 12:43:15,944 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower102: Lagging 1 entries behind leader leader101 and reached 1 (of expected -1) 12:43:15,944 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:43:15,944 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Snapshot installed from leader: leader101 12:43:15,945 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: 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=follower102, isVoting=false], ServerInfo[peerId=leader101, isVoting=true]]]] 12:43:15,945 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 12:43:15,945 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Snapshot success - sequence number: -1 12:43:15,945 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Moving last applied index from 1 to 2 12:43:15,945 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Set currentTerm=3, votedFor=null 12:43:15,945 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Updated server config: isVoting: false, peers: [PeerInfo [id=leader101, address=akka://test/user/leader101, votingState=VOTING]] 12:43:15,945 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: applySnapshot called 12:43:15,945 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower102, chunkIndex=1, success=true] 12:43:15,945 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: SnapshotComplete received 12:43:15,945 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower102, chunkIndex=1, success=true] 12:43:15,945 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Snapshot successfully installed on follower follower102 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 12:43:15,945 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: fakeSnapshot purging log to 1 for term 3 12:43:15,982 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart ending 12:43:15,982 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower102-collector104#-394660850] 12:43:15,994 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower102] 12:43:15,995 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader101-collector105#87522667] 12:43:15,995 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader101] 12:43:15,995 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader101-collector106#-491944337] 12:43:15,996 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader101] 12:43:15,998 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart starting [WARN] [01/21/2025 00:43:16.001] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower108]: org.opendaylight.controller.cluster.common.actor.Monitor@514a6461 12:43:16,2 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower108 with journal batch size 1000 [WARN] [01/21/2025 00:43:16.003] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader107]: org.opendaylight.controller.cluster.common.actor.Monitor@6c8bc852 12:43:16,3 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader107 with journal batch size 1000 12:43:16,4 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Set currentTerm=1, votedFor=leader107 12:43:16,4 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Received ReplicatedLogEntry for recovery: index: 0, size: 143 12:43:16,4 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Updated server config: isVoting: false, peers: [PeerInfo [id=leader107, address=akka://test/user/leader107, votingState=VOTING]] 12:43:16,4 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:43:16,5 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Set currentTerm=1, votedFor=leader107 12:43:16,5 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Received ReplicatedLogEntry for recovery: index: 0, size: 143 12:43:16,5 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Updated server config: isVoting: true, peers: [PeerInfo [id=follower108, address=akka://test/user/follower108, votingState=NON_VOTING]] 12:43:16,5 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:43:16,519 AM [test-akka.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:43:16,519 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.224:25520, Removed) 12:43:16,519 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower): Received ElectionTimeout - switching to Candidate 12:43:16,519 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Election: Candidate has following voting peers: [] 12:43:16,519 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Set currentTerm=2, votedFor=leader107 12:43:16,519 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Starting new election term 2 12:43:16,519 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:43:16,521 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Received ElectionTimeout 12:43:16,521 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Election: Leader has following peers: [follower108] 12:43:16,521 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:43:16,521 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:43:16,521 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Term 2 in "AppendEntries [leaderId=leader107, 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 12:43:16,521 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Set currentTerm=2, votedFor=null 12:43:16,522 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower108: Last sync leader does not match current leader leader107, need to catch up to -1 12:43:16,522 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower108 updated: matchIndex: -1, nextIndex: 0 12:43:16,522 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [01/21/2025 00:43:16.523] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower108] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3680f7af 12:43:16,561 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:16,561 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:16,561 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:43:16,561 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 0 12:43:16,561 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from -1 to 0 12:43:16,561 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 0 data zero 12:43:16,561 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: zero 12:43:16,561 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:43:16,561 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 0 is present for follower follower108 12:43:16,561 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower108: AppendEntries [leaderId=leader107, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 12:43:16,561 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=0 12:43:16,561 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:16,561 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:16,561 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:43:16,562 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 1 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 1 12:43:16,562 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 0 to 1 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 1 data one 12:43:16,562 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Append entry to log zero 12:43:16,562 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: one 12:43:16,562 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:43:16,562 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Log size is now 1 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 0 is present for follower follower108 12:43:16,562 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Commit index set to 0 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower108: AppendEntries [leaderId=leader107, 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]]] 12:43:16,562 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower108, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:16,562 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 0 (of expected -1) 12:43:16,562 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=1 12:43:16,562 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Setting last applied to 0 12:43:16,562 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Moving last applied index from -1 to 0 12:43:16,562 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Applying state for log index 0 data zero 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower108 updated: matchIndex: 0, nextIndex: 1 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: fakeSnapshot purging log to 0 for term 2 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 1 is present for follower follower108 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower108: AppendEntries [leaderId=leader107, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 12:43:16,562 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: applyState called: zero 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 2 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 1 to 2 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 2 data two 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: two 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:43:16,562 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 1 is present for follower follower108 12:43:16,563 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower108: AppendEntries [leaderId=leader107, 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]]] 12:43:16,563 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=2 12:43:16,563 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, 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]]] 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 2 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Append entry to log one 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Log size is now 2 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Commit index set to 1 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower108, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 1 (of expected -1) 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Setting last applied to 1 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Moving last applied index from 0 to 1 12:43:16,563 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower108 updated: matchIndex: 1, nextIndex: 2 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Applying state for log index 1 data one 12:43:16,563 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: fakeSnapshot purging log to 1 for term 2 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: applyState called: one 12:43:16,563 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 12:43:16,563 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 2 is present for follower follower108 12:43:16,563 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower108: AppendEntries [leaderId=leader107, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 12:43:16,563 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 12:43:16,564 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 1 12:43:16,564 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 12:43:16,564 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 12:43:16,564 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Log size is now 2 12:43:16,564 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower108, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:16,564 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 1 (of expected -1) 12:43:16,564 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: fakeSnapshot purging log to 0 for term 2 12:43:16,564 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Persisting ApplyJournalEntries with index=0 12:43:16,564 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 2 is present for follower follower108 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, 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]]] 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 2 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Append entry to log two 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Log size is now 2 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Commit index set to 2 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower108, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 2 (of expected -1) 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Setting last applied to 2 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Moving last applied index from 1 to 2 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Applying state for log index 2 data two 12:43:16,564 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower108 updated: matchIndex: 2, nextIndex: 3 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: applyState called: two 12:43:16,564 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Persisting ApplyJournalEntries with index=1 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 1 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Log size is now 2 12:43:16,564 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower108, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:16,565 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 2 (of expected -1) 12:43:16,565 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: fakeSnapshot purging log to 1 for term 2 12:43:16,565 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Persisting ApplyJournalEntries with index=2 [WARN] [01/21/2025 00:43:16.565] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower108] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@8f3448f 12:43:16,759 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 2 (of expected -1) [WARN] [01/21/2025 00:43:16.768] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower109]: org.opendaylight.controller.cluster.common.actor.Monitor@6a26bb8e 12:43:16,768 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower109 with journal batch size 1000 12:43:16,770 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Received ReplicatedLogEntry for recovery: index: 0, size: 174 12:43:16,771 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Updated server config: isVoting: true, peers: [PeerInfo [id=leader107, address=akka://test/user/leader107, votingState=VOTING], PeerInfo [id=follower108, address=akka://test/user/follower108, votingState=NON_VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 12:43:16,771 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:43:16,773 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader107 with journal batch size 1000 [WARN] [01/21/2025 00:43:16.774] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader107]: org.opendaylight.controller.cluster.common.actor.Monitor@6810382b 12:43:16,775 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Set currentTerm=2, votedFor=leader107 12:43:16,776 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Received ReplicatedLogEntry for recovery: index: 0, size: 174 12:43:16,776 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Updated server config: isVoting: true, peers: [PeerInfo [id=follower109, address=akka://test/user/follower109, votingState=VOTING], PeerInfo [id=follower108, address=akka://test/user/follower108, votingState=NON_VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 12:43:16,776 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:43:17,218 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.224:25520, Removed) 12:43:17,219 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower): Received ElectionTimeout - switching to Candidate 12:43:17,219 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Election: Candidate has following voting peers: [follower109] 12:43:17,219 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Set currentTerm=3, votedFor=leader107 12:43:17,219 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Starting new election term 3 12:43:17,219 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Sending RequestVote [term=3, candidateId=leader107, lastLogIndex=-1, lastLogTerm=-1] to peer follower109 12:43:17,219 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 12:43:17,219 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:43:17,219 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Cluster state: [] 12:43:17,219 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=leader107, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 12:43:17,219 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Term 3 in "RequestVote [term=3, candidateId=leader107, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 12:43:17,219 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Set currentTerm=3, votedFor=null 12:43:17,220 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): In requestVote: RequestVote [term=3, candidateId=leader107, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 3, votedFor: null, lastIndex: -1, lastTerm: -1 12:43:17,220 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Set currentTerm=3, votedFor=leader107 12:43:17,220 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 12:43:17,220 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 12:43:17,221 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 12:43:17,221 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Election: Leader has following peers: [follower109, follower108, downPeer] 12:43:17,221 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:43:17,221 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower109: Last sync leader does not match current leader leader107, need to catch up to -1 [WARN] [01/21/2025 00:43:17.221] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower109] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@323e3e3f 12:43:17,222 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:43:17,222 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 12:43:17,222 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: -1, nextIndex: 0 12:43:17,223 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:43:17,229 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:17,229 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:17,229 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 12:43:17,230 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:43:17,230 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 0 is present for follower follower109 12:43:17,230 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower109: AppendEntries [leaderId=leader107, 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]]] 12:43:17,230 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:43:17,230 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, 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]]] 12:43:17,230 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:17,230 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 1 12:43:17,230 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:43:17,230 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log zero-1 12:43:17,230 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:17,230 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:43:17,230 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 1 12:43:17,230 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower109, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:17,230 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached -1 (of expected -1) 12:43:17,230 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 0, nextIndex: 1 12:43:17,230 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 12:43:17,230 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 0 12:43:17,230 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from -1 to 0 12:43:17,230 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 0 data zero-1 [WARN] [01/21/2025 00:43:17.230] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower109] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@34afe944 12:43:17,231 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: zero-1 12:43:17,231 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:43:17,231 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=0 12:43:17,231 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:43:17,231 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:43:17,231 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 12:43:17,231 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 0 12:43:17,231 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:43:17,231 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 0 (of expected -1) 12:43:17,231 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 1 is present for follower follower109 12:43:17,231 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 12:43:17,231 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 0 12:43:17,231 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower109: AppendEntries [leaderId=leader107, 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]]] 12:43:17,231 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from -1 to 0 12:43:17,231 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 0 data zero-1 12:43:17,231 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:43:17,231 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: zero-1 12:43:17,231 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 1 is present for follower follower109 12:43:17,231 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:43:17,232 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, 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]]] 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 1 is present for follower follower109 12:43:17,232 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 1 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:43:17,232 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:43:17,232 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log one-1 12:43:17,232 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:43:17,232 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:43:17,232 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 2 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 12:43:17,232 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower109, logLastIndex=1, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:17,232 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 0 (of expected -1) 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=three-1}, logIndex: 3, isSendImmediate: true 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 1, leaderLastIndex: 3, leaderSnapShotIndex: -1 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 1 is present for follower follower109 12:43:17,232 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=0 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 1, nextIndex: 2 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 1 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 0 to 1 12:43:17,232 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 1 data one-1 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: one-1 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: -1 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 2 is present for follower follower109 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower109: AppendEntries [leaderId=leader107, 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], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1]]] 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=1 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, 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], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1]]] 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 2 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=four-1}, logIndex: 4, isSendImmediate: true 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log two-1 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log three-1 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 2 is present for follower follower109 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 4 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 1 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower109, logLastIndex=3, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 1 (of expected -1) 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 3 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 3, nextIndex: 4 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 1 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 1 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from 0 to 1 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 2 12:43:17,233 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 1 data one-1 12:43:17,233 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 1 to 2 12:43:17,234 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 2 data two-1 12:43:17,234 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: one-1 12:43:17,234 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: two-1 12:43:17,234 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 3 12:43:17,234 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 2 to 3 12:43:17,234 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 3 data three-1 12:43:17,234 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=1 12:43:17,234 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: three-1 12:43:17,234 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:43:17,234 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 4 is present for follower follower109 12:43:17,234 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower109: AppendEntries [leaderId=leader107, 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]]] 12:43:17,234 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 12:43:17,234 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=3 12:43:17,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, 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]]] 12:43:17,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 1 12:43:17,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 12:43:17,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log four-1 12:43:17,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 12:43:17,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 12:43:17,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 5 12:43:17,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 3 12:43:17,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower109, logLastIndex=4, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:17,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 3 (of expected -1) 12:43:17,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 1, lastIndex(): 4 12:43:17,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 2 12:43:17,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from 1 to 2 12:43:17,234 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 2 data two-1 12:43:17,234 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 4, nextIndex: 5 12:43:17,235 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: two-1 12:43:17,235 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 12:43:17,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 3 12:43:17,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from 2 to 3 12:43:17,235 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 4 12:43:17,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 3 data three-1 12:43:17,235 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 3 to 4 12:43:17,235 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 4 data four-1 12:43:17,235 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: three-1 12:43:17,235 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: four-1 12:43:17,235 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:43:17,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=3 12:43:17,235 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=4 12:43:17,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 4 12:43:17,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 4 (of expected -1) 12:43:17,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 4 12:43:17,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 4 12:43:17,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from 3 to 4 12:43:17,235 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 4 data four-1 12:43:17,235 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: four-1 12:43:17,235 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=4 12:43:17,339 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Term 3 in "AppendEntries [leaderId=leader107, 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 12:43:17,339 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 4 (of expected -1) 12:43:17,339 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Set currentTerm=3, votedFor=null 12:43:17,339 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower108: Lagging -3 entries behind leader leader107 and reached 2 (of expected -1) 12:43:17,339 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply: follower follower108 last log term 2 for index 2 conflicts with the leader's 3 - set the follower's next index to 1 12:43:17,339 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:43:17,339 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 1 is present for follower follower108 12:43:17,339 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower108: AppendEntries [leaderId=leader107, 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]]] 12:43:17,340 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, 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]]] 12:43:17,340 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (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 12:43:17,340 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=3, success=false, followerId=follower108, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:43:17,340 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower108: Lagging 2 entries behind leader leader107 and reached 2 (of expected -1) 12:43:17,340 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower108, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 12:43:17,340 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): follower follower108 last log term 2 conflicts with the leader's 3 - dec next index to 0 12:43:17,341 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 0, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:43:17,341 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 0 is present for follower follower108 12:43:17,341 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower108: AppendEntries [leaderId=leader107, 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]]] 12:43:17,341 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, 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]]] 12:43:17,341 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 5 12:43:17,341 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: -1 12:43:17,341 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] is present: existingEntryTerm: 2 12:43:17,341 AM [test-akka.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:43:17,341 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Removing entries from log starting at 1, commitIndex: 2, lastApplied: 2 12:43:17,341 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Could not remove entries - sending reply to force snapshot 12:43:17,341 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower108: Lagging 2 entries behind leader leader107 and reached 2 (of expected -1) 12:43:17,341 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower108, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 12:43:17,341 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: 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 follower108 12:43:17,341 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: lastSequenceNumber prior to capture: -1 12:43:17,342 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: CaptureSnapshotReply received by actor 12:43:17,342 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: 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=leader107, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower109, isVoting=true], ServerInfo[peerId=follower108, isVoting=false], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=leader107, isVoting=true]]]] 12:43:17,343 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 12:43:17,343 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendInstallSnapshot 12:43:17,343 AM [test-akka.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader107 (Leader): Snapshot 390 bytes, total chunks to send: 1 12:43:17,343 AM [test-akka.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader107 (Leader): Next chunk: total length=390, offset=0, size=390, hashCode=-929342248 12:43:17,343 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): next snapshot chunk size for follower follower108: 390 12:43:17,343 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader107, lastIncludedIndex=4, lastIncludedTerm=3, datasize=390, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower109, isVoting=true], ServerInfo[peerId=follower108, isVoting=false], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=leader107, isVoting=true]]]] 12:43:17,344 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower108: Lagging 2 entries behind leader leader107 and reached 2 (of expected -1) 12:43:17,344 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:43:17,344 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Snapshot installed from leader: leader107 12:43:17,344 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: 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=follower109, isVoting=true], ServerInfo[peerId=follower108, isVoting=false], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=leader107, isVoting=true]]]] 12:43:17,345 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 12:43:17,345 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Snapshot success - sequence number: -1 12:43:17,345 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Moving last applied index from 2 to 4 12:43:17,345 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Set currentTerm=3, votedFor=null 12:43:17,345 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Updated server config: isVoting: false, peers: [PeerInfo [id=follower109, address=null, votingState=VOTING], PeerInfo [id=leader107, address=akka://test/user/leader107, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 12:43:17,345 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: applySnapshot called 12:43:17,345 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower108, chunkIndex=1, success=true] 12:43:17,345 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: SnapshotComplete received 12:43:17,346 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): InstallSnapshot sent to follower Vector(user, follower108), Chunk: 1/1 12:43:17,346 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower108, chunkIndex=1, success=true] 12:43:17,346 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Snapshot successfully installed on follower follower108 (last chunk 1) - matchIndex set to 4, nextIndex set to 5 12:43:17,346 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Snapshot success - sequence number: -1 12:43:17,346 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: SnapshotComplete received 12:43:17,381 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart ending 12:43:17,381 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower108-collector110#1351390287] 12:43:17,392 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower108] 12:43:17,392 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader107-collector111#-337562196] 12:43:17,393 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader107] 12:43:17,393 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower109-collector112#-1617734107] 12:43:17,393 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower109] 12:43:17,394 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader107-collector113#-1950213975] 12:43:17,394 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader107] [INFO] [01/21/2025 00:43:17.395] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 12:43:17,396 AM [test-akka.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [01/21/2025 00:43:17.397] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.224:25520)