[DEBUG] [08/01/2024 12:31:16.550] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 12:31:16,551 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/01/2024 12:31:16.551] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/01/2024 12:31:16.551] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/01/2024 12:31:16.564] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.103:17355] with UID [856889694618579235] 12:31:16,566 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.103:17355] with UID [856889694618579235] [INFO] [08/01/2024 12:31:16.566] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - Starting up, Pekko version [1.0.3] ... 12:31:16,567 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [08/01/2024 12:31:16.569] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/01/2024 12:31:16.569] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - Started up successfully 12:31:16,569 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 12:31:16,569 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - Started up successfully [INFO] [08/01/2024 12:31:16.574] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/01/2024 12:31:16.574] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 12:31:16,578 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerLeaderStateChanges 12:31:16,581 PM [test-pekko.actor.default-dispatcher-10] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 12:31:16,581 PM [test-pekko.actor.default-dispatcher-10] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [WARN] [08/01/2024 12:31:16.581] [test-pekko.actor.default-dispatcher-10] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower84]: org.opendaylight.controller.cluster.common.actor.Monitor@2162c944 [INFO] [pekkoDeadLetter][08/01/2024 12:31:16.582] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower84] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:16,582 PM [test-pekko.actor.default-dispatcher-13] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower84] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:16,584 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower84 with journal batch size 1000 [WARN] [08/01/2024 12:31:16.585] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader83]: org.opendaylight.controller.cluster.common.actor.Monitor@6d5aca6c [INFO] [pekkoDeadLetter][08/01/2024 12:31:16.585] [test-pekko.actor.default-dispatcher-10] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader83] to Actor[pekko://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:16,585 PM [test-pekko.actor.default-dispatcher-10] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader83] to Actor[pekko://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:16,585 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader83 with journal batch size 1000 12:31:16,592 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83: Set currentTerm=1, votedFor=leader83 12:31:16,592 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83: Received ReplicatedLogEntry for recovery: index: 0, size: 141 12:31:16,592 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83: Updated server config: isVoting: true, peers: [PeerInfo [id=follower84, address=pekko://test/user/follower84, votingState=NON_VOTING]] 12:31:16,592 PM [test-pekko.actor.default-dispatcher-6] [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:31:16,593 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower84: Set currentTerm=1, votedFor=leader83 12:31:16,593 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower84: Received ReplicatedLogEntry for recovery: index: 0, size: 141 12:31:16,593 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower84: Updated server config: isVoting: false, peers: [PeerInfo [id=leader83, address=pekko://test/user/leader83, votingState=VOTING]] 12:31:16,593 PM [test-pekko.actor.default-dispatcher-5] [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 12:31:17,17 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:31:17,18 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.103:17355, Removed) 12:31:17,18 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Follower): Received ElectionTimeout - switching to Candidate 12:31:17,18 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Candidate): Election: Candidate has following voting peers: [] 12:31:17,18 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83: Set currentTerm=2, votedFor=leader83 12:31:17,18 PM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Candidate): Starting new election term 2 12:31:17,18 PM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:31:17,19 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Candidate): Received ElectionTimeout 12:31:17,20 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Leader): Election: Leader has following peers: [follower84] 12:31:17,20 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Leader): Checking sendAppendEntries for follower follower84: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:17,20 PM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:31:17,20 PM [test-pekko.actor.default-dispatcher-10] [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:31:17,20 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower84: Set currentTerm=2, votedFor=null 12:31:17,20 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] SyncStatusTracker - follower84: Last sync leader does not match current leader leader83, need to catch up to -1 12:31:17,20 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower84 updated: matchIndex: -1, nextIndex: 0 12:31:17,21 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Leader): Checking sendAppendEntries for follower follower84: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:17.021] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower84] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@54b68363 12:31:17,21 PM [test-pekko.actor.default-dispatcher-10] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower84] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/01/2024 12:31:17.021] [test-pekko.actor.default-dispatcher-10] [pekko://test/user/follower84] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower84] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:17,55 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:31:17,379 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] SyncStatusTracker - follower84: Lagging 0 entries behind leader leader83 and reached -1 (of expected -1) [WARN] [08/01/2024 12:31:17.379] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/follower84] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@639d39b7 [INFO] [pekkoDeadLetter][08/01/2024 12:31:17.379] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower84] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower84] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:17,379 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower84] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:17,411 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/roleChangeNotifier86#728809797] 12:31:17,423 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower84-collector87#-1264057295] 12:31:17,423 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower84] 12:31:17,424 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader83-collector88#1722940721] 12:31:17,424 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader83] 12:31:17,426 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart starting 12:31:17,428 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower90] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [08/01/2024 12:31:17.428] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower90]: org.opendaylight.controller.cluster.common.actor.Monitor@2096bbae [INFO] [pekkoDeadLetter][08/01/2024 12:31:17.428] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower90] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:17,429 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower90 with journal batch size 1000 12:31:17,431 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Set currentTerm=1, votedFor=leader89 12:31:17,431 PM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader89] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:17,432 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Received ReplicatedLogEntry for recovery: index: 0, size: 141 12:31:17,432 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Updated server config: isVoting: false, peers: [PeerInfo [id=leader89, address=pekko://test/user/leader89, votingState=VOTING]] 12:31:17,432 PM [test-pekko.actor.default-dispatcher-17] [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:31:17,432 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader89 with journal batch size 1000 12:31:17,434 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Set currentTerm=1, votedFor=leader89 12:31:17,434 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Received ReplicatedLogEntry for recovery: index: 0, size: 141 [WARN] [08/01/2024 12:31:17.434] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader89]: org.opendaylight.controller.cluster.common.actor.Monitor@6f6c4bf7 12:31:17,434 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Updated server config: isVoting: true, peers: [PeerInfo [id=follower90, address=pekko://test/user/follower90, votingState=NON_VOTING]] [INFO] [pekkoDeadLetter][08/01/2024 12:31:17.431] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader89] to Actor[pekko://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:17,434 PM [test-pekko.actor.default-dispatcher-5] [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:31:17,908 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:31:17,908 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.103:17355, Removed) 12:31:17,909 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower): Received ElectionTimeout - switching to Candidate 12:31:17,909 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Election: Candidate has following voting peers: [] 12:31:17,909 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Set currentTerm=2, votedFor=leader89 12:31:17,909 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Starting new election term 2 12:31:17,909 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:31:17,910 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Received ElectionTimeout 12:31:17,910 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Election: Leader has following peers: [follower90] 12:31:17,910 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:17,910 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:31:17,910 PM [test-pekko.actor.default-dispatcher-5] [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:31:17,911 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Set currentTerm=2, votedFor=null 12:31:17,911 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower90: Last sync leader does not match current leader leader89, need to catch up to -1 12:31:17,911 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower90 updated: matchIndex: -1, nextIndex: 0 12:31:17,912 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:17,912 PM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower90] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [08/01/2024 12:31:17.912] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower90] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7fcd4e4f [INFO] [pekkoDeadLetter][08/01/2024 12:31:17.912] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower90] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower90] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:17,944 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:17,945 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:17,945 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:31:17,945 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Setting last applied to 0 12:31:17,945 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Moving last applied index from -1 to 0 12:31:17,945 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Applying state for log index 0 data zero 12:31:17,945 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: applyState called: zero 12:31:17,945 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:17,945 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): sendAppendEntries: 0 is present for follower follower90 12:31:17,945 PM [test-pekko.actor.default-dispatcher-17] [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:31:17,945 PM [test-pekko.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:31:17,946 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Number of entries to be appended = 1 12:31:17,946 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:31:17,946 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Append entry to log zero 12:31:17,946 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:17,946 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:17,946 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Log size is now 1 12:31:17,946 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Commit index set to 0 12:31:17,946 PM [test-pekko.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:31:17,946 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower90: Lagging 0 entries behind leader leader89 and reached 0 (of expected -1) 12:31:17,946 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 12:31:17,946 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Setting last applied to 0 12:31:17,946 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Moving last applied index from -1 to 0 12:31:17,946 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Applying state for log index 0 data zero 12:31:17,946 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: applyState called: zero 12:31:17,946 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Persisting ApplyJournalEntries with index=0 [WARN] [08/01/2024 12:31:17.947] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/follower90] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1912841e [INFO] [pekkoDeadLetter][08/01/2024 12:31:17.947] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/follower90] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower90] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:17,947 PM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower90] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:17,947 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting ApplyJournalEntries with index=0 12:31:17,947 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower90 updated: matchIndex: 0, nextIndex: 1 12:31:17,947 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:17,947 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:17,947 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:17,947 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Setting last applied to 1 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Moving last applied index from 0 to 1 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Applying state for log index 1 data one 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: applyState called: one 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): sendAppendEntries: 1 is present for follower follower90 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [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:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [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:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Number of entries to be appended = 1 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Append entry to log one 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Log size is now 2 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Commit index set to 1 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [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:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower90: Lagging 0 entries behind leader leader89 and reached 1 (of expected -1) 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Setting last applied to 1 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Moving last applied index from 0 to 1 12:31:17,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Applying state for log index 1 data one 12:31:17,949 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: applyState called: one 12:31:17,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Persisting ApplyJournalEntries with index=1 12:31:17,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting ApplyJournalEntries with index=1 12:31:17,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:17,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: fakeSnapshot purging log to 0 for term 2 12:31:17,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower90 updated: matchIndex: 1, nextIndex: 2 12:31:17,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 12:31:17,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:31:17,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:31:17,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 12:31:17,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Setting last applied to 2 12:31:17,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Moving last applied index from 1 to 2 12:31:17,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Applying state for log index 2 data two 12:31:17,949 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: applyState called: two 12:31:17,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:31:17,950 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): sendAppendEntries: 2 is present for follower follower90 12:31:17,950 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Sending AppendEntries to follower follower90: AppendEntries [leaderId=leader89, 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:31:17,950 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting ApplyJournalEntries with index=2 12:31:17,950 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:31:17,950 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: fakeSnapshot purging log to 1 for term 2 12:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries: AppendEntries [leaderId=leader89, 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:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Number of entries to be appended = 1 12:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Append entry to log two 12:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Log size is now 3 12:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Commit index set to 2 12:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [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:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower90: Lagging 0 entries behind leader leader89 and reached 2 (of expected -1) 12:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Setting last applied to 2 12:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Moving last applied index from 1 to 2 12:31:17,950 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower90 updated: matchIndex: 2, nextIndex: 3 12:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Applying state for log index 2 data two 12:31:17,950 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 12:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: applyState called: two 12:31:17,950 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: fakeSnapshot purging log to 0 for term 2 12:31:17,951 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Persisting ApplyJournalEntries with index=2 12:31:18,9 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader89 with journal batch size 1000 [WARN] [08/01/2024 12:31:18.009] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader89]: org.opendaylight.controller.cluster.common.actor.Monitor@7c43fe41 12:31:18,10 PM [test-pekko.actor.default-dispatcher-17] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader89] to Actor[pekko://test/user/termination-monitor] was not delivered. [9] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:18,11 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Set currentTerm=1, votedFor=leader89 12:31:18,11 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Received ReplicatedLogEntry for recovery: index: 0, size: 141 12:31:18,12 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Updated server config: isVoting: true, peers: [PeerInfo [id=follower90, address=pekko://test/user/follower90, votingState=NON_VOTING]] 12:31:18,12 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Set currentTerm=2, votedFor=leader89 12:31:18,12 PM [test-pekko.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 [INFO] [pekkoDeadLetter][08/01/2024 12:31:18.010] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader89] to Actor[pekko://test/user/termination-monitor] was not delivered. [9] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:18,448 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.103:17355, Removed) 12:31:18,449 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower): Received ElectionTimeout - switching to Candidate 12:31:18,449 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Election: Candidate has following voting peers: [] 12:31:18,449 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Set currentTerm=3, votedFor=leader89 12:31:18,449 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Starting new election term 3 12:31:18,449 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 12:31:18,450 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Received ElectionTimeout 12:31:18,450 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Election: Leader has following peers: [follower90] 12:31:18,451 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:18,451 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 12:31:18,466 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:18,466 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:18,466 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 12:31:18,466 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Setting last applied to 0 12:31:18,466 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Moving last applied index from -1 to 0 12:31:18,466 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Applying state for log index 0 data zero-1 12:31:18,466 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: applyState called: zero-1 12:31:18,466 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:18,467 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting ApplyJournalEntries with index=0 12:31:18,467 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:18,467 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:31:18,467 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:31:18,467 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 12:31:18,467 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Setting last applied to 1 12:31:18,467 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Moving last applied index from 0 to 1 12:31:18,467 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Applying state for log index 1 data one-1 12:31:18,467 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: applyState called: one-1 12:31:18,467 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:18,467 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting ApplyJournalEntries with index=1 12:31:18,467 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:31:18,568 PM [test-pekko.actor.default-dispatcher-5] [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:31:18,568 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Set currentTerm=3, votedFor=null 12:31:18,569 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower90: Lagging -3 entries behind leader leader89 and reached 2 (of expected -1) 12:31:18,569 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleAppendEntriesReply: follower follower90 lastIndex 2 is ahead of our lastIndex 1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 12:31:18,569 PM [test-pekko.actor.default-dispatcher-17] [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:31:18,569 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: lastSequenceNumber prior to capture: -1 12:31:18,571 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: CaptureSnapshotReply received by actor 12:31:18,572 PM [test-pekko.actor.default-dispatcher-17] [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:31:18,573 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 12:31:18,574 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): sendInstallSnapshot 12:31:18,574 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader89 (Leader): Snapshot 333 bytes, total chunks to send: 1 12:31:18,574 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader89 (Leader): Next chunk: total length=333, offset=0, size=333, hashCode=878051978 12:31:18,574 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): next snapshot chunk size for follower follower90: 333 12:31:18,574 PM [test-pekko.actor.default-dispatcher-13] [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:31:18,579 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower90: Lagging -1 entries behind leader leader89 and reached 2 (of expected -1) 12:31:18,580 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:31:18,580 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Snapshot installed from leader: leader89 12:31:18,577 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): InstallSnapshot sent to follower Vector(user, follower90), Chunk: 1/1 12:31:18,581 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Snapshot success - sequence number: -1 12:31:18,581 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: SnapshotComplete received 12:31:18,583 PM [test-pekko.actor.default-dispatcher-13] [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:31:18,583 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 12:31:18,583 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Snapshot success - sequence number: -1 12:31:18,583 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Moving last applied index from 2 to 1 12:31:18,583 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Set currentTerm=3, votedFor=null 12:31:18,583 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Updated server config: isVoting: false, peers: [PeerInfo [id=leader89, address=pekko://test/user/leader89, votingState=VOTING]] 12:31:18,583 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: applySnapshot called 12:31:18,583 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower90, chunkIndex=1, success=true] 12:31:18,586 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: SnapshotComplete received 12:31:18,586 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower90, chunkIndex=1, success=true] 12:31:18,586 PM [test-pekko.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:31:18,586 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: fakeSnapshot purging log to 0 for term 3 12:31:18,617 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart ending 12:31:18,618 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower90-collector92#-1105046656] 12:31:18,629 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower90] 12:31:18,630 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader89-collector93#985888896] 12:31:18,630 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader89] 12:31:18,631 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader89-collector94#-2016565061] 12:31:18,631 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader89] 12:31:18,633 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart starting [WARN] [08/01/2024 12:31:18.635] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower96]: org.opendaylight.controller.cluster.common.actor.Monitor@5932ea09 12:31:18,635 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower96 with journal batch size 1000 12:31:18,635 PM [test-pekko.actor.default-dispatcher-16] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower96] to Actor[pekko://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[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/01/2024 12:31:18.635] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower96] to Actor[pekko://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[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:18,637 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Set currentTerm=1, votedFor=leader95 12:31:18,638 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Received ReplicatedLogEntry for recovery: index: 0, size: 141 12:31:18,638 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Updated server config: isVoting: false, peers: [PeerInfo [id=leader95, address=pekko://test/user/leader95, votingState=VOTING]] 12:31:18,638 PM [test-pekko.actor.default-dispatcher-6] [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 [WARN] [08/01/2024 12:31:18.638] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader95]: org.opendaylight.controller.cluster.common.actor.Monitor@1eed9292 12:31:18,639 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader95 with journal batch size 1000 12:31:18,640 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Set currentTerm=1, votedFor=leader95 12:31:18,640 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Received ReplicatedLogEntry for recovery: index: 0, size: 141 12:31:18,640 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Updated server config: isVoting: true, peers: [PeerInfo [id=follower96, address=pekko://test/user/follower96, votingState=NON_VOTING]] 12:31:18,640 PM [test-pekko.actor.default-dispatcher-13] [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:31:19,148 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:31:19,148 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.103:17355, Removed) 12:31:19,148 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower): Received ElectionTimeout - switching to Candidate 12:31:19,148 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Election: Candidate has following voting peers: [] 12:31:19,148 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Set currentTerm=2, votedFor=leader95 12:31:19,148 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Starting new election term 2 12:31:19,148 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:31:19,149 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Received ElectionTimeout 12:31:19,150 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Election: Leader has following peers: [follower96] 12:31:19,150 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:19,150 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:31:19,150 PM [test-pekko.actor.default-dispatcher-12] [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:31:19,150 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Set currentTerm=2, votedFor=null 12:31:19,150 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower96: Last sync leader does not match current leader leader95, need to catch up to -1 12:31:19,151 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower96 updated: matchIndex: -1, nextIndex: 0 12:31:19,151 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:19.151] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/follower96] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@726f9b5d 12:31:19,196 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:19,197 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:19,197 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:31:19,197 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Setting last applied to 0 12:31:19,197 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Moving last applied index from -1 to 0 12:31:19,197 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Applying state for log index 0 data zero 12:31:19,197 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: applyState called: zero 12:31:19,197 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:19,197 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 0 is present for follower follower96 12:31:19,197 PM [test-pekko.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:31:19,198 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persisting ApplyJournalEntries with index=0 12:31:19,198 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:19,198 PM [test-pekko.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:31:19,198 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:19,198 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:19,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Number of entries to be appended = 1 12:31:19,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:31:19,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Append entry to log zero 12:31:19,198 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:31:19,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:19,198 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Setting last applied to 1 12:31:19,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:19,198 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Moving last applied index from 0 to 1 12:31:19,198 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Applying state for log index 1 data one 12:31:19,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Log size is now 1 12:31:19,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Commit index set to 0 12:31:19,198 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: applyState called: one 12:31:19,198 PM [test-pekko.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:31:19,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower96: Lagging 0 entries behind leader leader95 and reached 0 (of expected -1) 12:31:19,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 12:31:19,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Setting last applied to 0 12:31:19,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Moving last applied index from -1 to 0 12:31:19,198 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:19,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Applying state for log index 0 data zero 12:31:19,198 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 0 is present for follower follower96 12:31:19,198 PM [test-pekko.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:31:19,198 PM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: applyState called: zero 12:31:19,198 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persisting ApplyJournalEntries with index=1 12:31:19,198 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Persisting ApplyJournalEntries with index=0 12:31:19,198 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower96 updated: matchIndex: 0, nextIndex: 1 12:31:19,198 PM [test-pekko.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:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: fakeSnapshot purging log to 0 for term 2 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Number of entries to be appended = 2 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Append entry to log one 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 1 is present for follower follower96 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Log size is now 2 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Commit index set to 1 12:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [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:31:19,199 PM [test-pekko.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:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower96: Lagging 0 entries behind leader leader95 and reached 1 (of expected -1) 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Setting last applied to 1 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Moving last applied index from 0 to 1 12:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Applying state for log index 1 data one 12:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower96 updated: matchIndex: 1, nextIndex: 2 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: applyState called: one 12:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 12:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [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:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Number of entries to be appended = 1 12:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Setting last applied to 2 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 12:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Moving last applied index from 1 to 2 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 12:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Applying state for log index 2 data two 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Log size is now 2 12:31:19,199 PM [test-pekko.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:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower96: Lagging 0 entries behind leader leader95 and reached 1 (of expected -1) 12:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: applyState called: two 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: fakeSnapshot purging log to 0 for term 2 12:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:31:19,199 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 2 is present for follower follower96 12:31:19,199 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Persisting ApplyJournalEntries with index=1 12:31:19,200 PM [test-pekko.actor.default-dispatcher-5] [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:31:19,200 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: fakeSnapshot purging log to 1 for term 2 12:31:19,200 PM [test-pekko.actor.default-dispatcher-12] [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]]] [WARN] [08/01/2024 12:31:19.200] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower96] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4f7068e7 12:31:19,200 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 2 is present for follower follower96 12:31:19,200 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Number of entries to be appended = 1 12:31:19,200 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:31:19,200 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Append entry to log two 12:31:19,200 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:31:19,200 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:31:19,200 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persisting ApplyJournalEntries with index=2 12:31:19,200 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Log size is now 2 12:31:19,200 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Commit index set to 2 12:31:19,200 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:31:19,200 PM [test-pekko.actor.default-dispatcher-12] [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:31:19,200 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower96: Lagging 0 entries behind leader leader95 and reached 2 (of expected -1) 12:31:19,200 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:31:19,200 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Setting last applied to 2 12:31:19,200 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Moving last applied index from 1 to 2 12:31:19,200 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Applying state for log index 2 data two 12:31:19,200 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower96 updated: matchIndex: 2, nextIndex: 3 12:31:19,200 PM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: applyState called: two 12:31:19,201 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 12:31:19,201 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Persisting ApplyJournalEntries with index=2 [WARN] [08/01/2024 12:31:19.260] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader95]: org.opendaylight.controller.cluster.common.actor.Monitor@7537f45c 12:31:19,261 PM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader95 with journal batch size 1000 12:31:19,263 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Set currentTerm=1, votedFor=leader95 12:31:19,264 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Received ReplicatedLogEntry for recovery: index: 0, size: 141 12:31:19,264 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Updated server config: isVoting: true, peers: [PeerInfo [id=follower96, address=pekko://test/user/follower96, votingState=NON_VOTING]] 12:31:19,264 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Set currentTerm=2, votedFor=leader95 12:31:19,264 PM [test-pekko.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:31:19,718 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.103:17355, Removed) 12:31:19,718 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower): Received ElectionTimeout - switching to Candidate 12:31:19,718 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Election: Candidate has following voting peers: [] 12:31:19,718 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Set currentTerm=3, votedFor=leader95 12:31:19,718 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Starting new election term 3 12:31:19,718 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 12:31:19,719 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Received ElectionTimeout 12:31:19,720 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Election: Leader has following peers: [follower96] 12:31:19,720 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:19,720 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 12:31:19,720 PM [test-pekko.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:31:19,720 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Set currentTerm=3, votedFor=null 12:31:19,720 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower96: Lagging -3 entries behind leader leader95 and reached 2 (of expected -1) 12:31:19,720 PM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply: follower follower96 lastIndex 2 is ahead of our lastIndex -1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 12:31:19,721 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 12:31:19,721 PM [test-pekko.actor.default-dispatcher-12] [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:31:19,721 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: lastSequenceNumber prior to capture: -1 12:31:19,721 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: CaptureSnapshotReply received by actor 12:31:19,721 PM [test-pekko.actor.default-dispatcher-12] [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:31:19,722 PM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 12:31:19,722 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendInstallSnapshot 12:31:19,722 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader95 (Leader): Snapshot 171 bytes, total chunks to send: 1 12:31:19,722 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] LeaderInstallSnapshotState - leader95 (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 12:31:19,722 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): next snapshot chunk size for follower follower96: 171 12:31:19,722 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): InstallSnapshot sent to follower Vector(user, follower96), Chunk: 1/1 12:31:19,722 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Snapshot success - sequence number: -1 12:31:19,722 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: SnapshotComplete received 12:31:19,722 PM [test-pekko.actor.default-dispatcher-13] [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:31:19,722 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower96: Lagging -3 entries behind leader leader95 and reached 2 (of expected -1) 12:31:19,722 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:31:19,722 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Snapshot installed from leader: leader95 12:31:19,723 PM [test-pekko.actor.default-dispatcher-13] [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:31:19,723 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 12:31:19,723 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Snapshot success - sequence number: -1 12:31:19,723 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Moving last applied index from 2 to -1 12:31:19,723 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Set currentTerm=3, votedFor=null 12:31:19,723 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Updated server config: isVoting: false, peers: [PeerInfo [id=leader95, address=pekko://test/user/leader95, votingState=VOTING]] 12:31:19,723 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: applySnapshot called 12:31:19,723 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower96, chunkIndex=1, success=true] 12:31:19,723 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: SnapshotComplete received 12:31:19,723 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower96, chunkIndex=1, success=true] 12:31:19,724 PM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Snapshot successfully installed on follower follower96 (last chunk 1) - matchIndex set to -1, nextIndex set to 0 12:31:19,768 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:19,768 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:19,768 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 12:31:19,769 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Setting last applied to 0 12:31:19,769 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Moving last applied index from -1 to 0 12:31:19,769 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Applying state for log index 0 data zero-1 12:31:19,769 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: applyState called: zero-1 12:31:19,769 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:19,769 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 0 is present for follower follower96 12:31:19,769 PM [test-pekko.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=3, payload=zero-1]]] 12:31:19,769 PM [test-pekko.actor.default-dispatcher-17] [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:31:19,769 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Number of entries to be appended = 1 12:31:19,769 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:31:19,769 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Append entry to log zero-1 12:31:19,769 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:19,769 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:19,769 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Log size is now 1 12:31:19,769 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Commit index set to 0 12:31:19,769 PM [test-pekko.actor.default-dispatcher-17] [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:31:19,769 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower96: Lagging 0 entries behind leader leader95 and reached 0 (of expected -1) 12:31:19,769 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 12:31:19,769 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Setting last applied to 0 12:31:19,769 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Moving last applied index from -1 to 0 12:31:19,769 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Applying state for log index 0 data zero-1 12:31:19,769 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: applyState called: zero-1 12:31:19,770 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Persisting ApplyJournalEntries with index=0 12:31:19,770 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persisting ApplyJournalEntries with index=0 12:31:19,770 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower96 updated: matchIndex: 0, nextIndex: 1 12:31:19,770 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:19,770 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:19,819 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart ending 12:31:19,819 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower96-collector98#-1560450653] 12:31:19,830 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower96] 12:31:19,831 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader95-collector99#1434129290] 12:31:19,831 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader95] 12:31:19,831 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader95-collector100#1083421343] 12:31:19,831 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader95] 12:31:19,833 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart starting [WARN] [08/01/2024 12:31:19.835] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower102]: org.opendaylight.controller.cluster.common.actor.Monitor@67edca2c 12:31:19,836 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower102 with journal batch size 1000 [WARN] [08/01/2024 12:31:19.838] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader101]: org.opendaylight.controller.cluster.common.actor.Monitor@27cef6e2 12:31:19,839 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Set currentTerm=1, votedFor=leader101 12:31:19,839 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader101 with journal batch size 1000 12:31:19,839 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Received ReplicatedLogEntry for recovery: index: 0, size: 143 12:31:19,839 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Updated server config: isVoting: false, peers: [PeerInfo [id=leader101, address=pekko://test/user/leader101, votingState=VOTING]] 12:31:19,839 PM [test-pekko.actor.default-dispatcher-16] [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 12:31:19,841 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Set currentTerm=1, votedFor=leader101 12:31:19,841 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Received ReplicatedLogEntry for recovery: index: 0, size: 143 12:31:19,841 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Updated server config: isVoting: true, peers: [PeerInfo [id=follower102, address=pekko://test/user/follower102, votingState=NON_VOTING]] 12:31:19,841 PM [test-pekko.actor.default-dispatcher-10] [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:31:20,288 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:31:20,288 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.103:17355, Removed) 12:31:20,288 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower): Received ElectionTimeout - switching to Candidate 12:31:20,288 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Election: Candidate has following voting peers: [] 12:31:20,288 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Set currentTerm=2, votedFor=leader101 12:31:20,288 PM [test-pekko.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Starting new election term 2 12:31:20,288 PM [test-pekko.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:31:20,290 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Received ElectionTimeout 12:31:20,290 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Election: Leader has following peers: [follower102] 12:31:20,290 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:20,290 PM [test-pekko.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:31:20,290 PM [test-pekko.actor.default-dispatcher-5] [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:31:20,290 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Set currentTerm=2, votedFor=null 12:31:20,290 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower102: Last sync leader does not match current leader leader101, need to catch up to -1 12:31:20,290 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower102 updated: matchIndex: -1, nextIndex: 0 12:31:20,291 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:20.291] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower102] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@df56cd4 12:31:20,295 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:20,295 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:20,295 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:31:20,295 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Setting last applied to 0 12:31:20,295 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Moving last applied index from -1 to 0 12:31:20,295 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Applying state for log index 0 data zero 12:31:20,295 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: applyState called: zero 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): sendAppendEntries: 0 is present for follower follower102 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [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:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting ApplyJournalEntries with index=0 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [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:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Number of entries to be appended = 1 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Append entry to log zero 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Log size is now 1 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Commit index set to 0 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [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:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower102: Lagging 0 entries behind leader leader101 and reached 0 (of expected -1) 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Setting last applied to 0 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Moving last applied index from -1 to 0 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Applying state for log index 0 data zero 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: applyState called: zero 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Persisting ApplyJournalEntries with index=0 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower102 updated: matchIndex: 0, nextIndex: 1 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:20,296 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Setting last applied to 1 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Moving last applied index from 0 to 1 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Applying state for log index 1 data one 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: applyState called: one 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): sendAppendEntries: 1 is present for follower follower102 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Sending AppendEntries to follower follower102: AppendEntries [leaderId=leader101, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] [WARN] [08/01/2024 12:31:20.297] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower102] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4f5c1e06 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleAppendEntries: AppendEntries [leaderId=leader101, 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:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Number of entries to be appended = 1 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Append entry to log one 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Log size is now 2 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Commit index set to 1 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [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:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower102: Lagging 0 entries behind leader leader101 and reached 1 (of expected -1) 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Setting last applied to 1 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Moving last applied index from 0 to 1 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Applying state for log index 1 data one 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: applyState called: one 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Persisting ApplyJournalEntries with index=1 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting ApplyJournalEntries with index=1 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: fakeSnapshot purging log to 0 for term 2 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower102 updated: matchIndex: 1, nextIndex: 2 12:31:20,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 [WARN] [08/01/2024 12:31:20.359] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader101]: org.opendaylight.controller.cluster.common.actor.Monitor@1d274fc9 12:31:20,360 PM [test-pekko.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader101 with journal batch size 1000 12:31:20,362 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Set currentTerm=1, votedFor=leader101 12:31:20,362 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Received ReplicatedLogEntry for recovery: index: 0, size: 143 12:31:20,362 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Updated server config: isVoting: true, peers: [PeerInfo [id=follower102, address=pekko://test/user/follower102, votingState=NON_VOTING]] 12:31:20,362 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Set currentTerm=2, votedFor=leader101 12:31:20,363 PM [test-pekko.actor.default-dispatcher-10] [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:31:20,868 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.103:17355, Removed) 12:31:20,868 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower): Received ElectionTimeout - switching to Candidate 12:31:20,868 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Election: Candidate has following voting peers: [] 12:31:20,868 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Set currentTerm=3, votedFor=leader101 12:31:20,869 PM [test-pekko.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Starting new election term 3 12:31:20,869 PM [test-pekko.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 12:31:20,870 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Received ElectionTimeout 12:31:20,870 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Election: Leader has following peers: [follower102] 12:31:20,870 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:20,870 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 12:31:20,870 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:20,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:20,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 12:31:20,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Setting last applied to 0 12:31:20,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Moving last applied index from -1 to 0 12:31:20,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Applying state for log index 0 data zero-1 12:31:20,871 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: applyState called: zero-1 12:31:20,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:20,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting ApplyJournalEntries with index=0 12:31:20,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:20,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:31:20,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:31:20,872 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 12:31:20,872 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Setting last applied to 1 12:31:20,872 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Moving last applied index from 0 to 1 12:31:20,872 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Applying state for log index 1 data one-1 12:31:20,872 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: applyState called: one-1 12:31:20,872 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:20,872 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting ApplyJournalEntries with index=1 12:31:20,872 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:31:20,872 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:31:20,872 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:31:20,872 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 12:31:20,872 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Setting last applied to 2 12:31:20,872 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Moving last applied index from 1 to 2 12:31:20,872 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Applying state for log index 2 data two-1 12:31:20,872 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: applyState called: two-1 12:31:20,872 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:31:20,872 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting ApplyJournalEntries with index=2 12:31:20,873 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:31:20,988 PM [test-pekko.actor.default-dispatcher-16] [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:31:20,989 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Set currentTerm=3, votedFor=null 12:31:20,989 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower102: Lagging -2 entries behind leader leader101 and reached 1 (of expected -1) 12:31:20,990 PM [test-pekko.actor.default-dispatcher-13] [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:31:20,990 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:31:20,990 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): sendAppendEntries: 0 is present for follower follower102 12:31:20,990 PM [test-pekko.actor.default-dispatcher-13] [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:31:20,990 PM [test-pekko.actor.default-dispatcher-5] [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:31:20,990 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Number of entries to be appended = 3 12:31:20,990 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: 2 12:31:20,990 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:31:20,990 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Removing entries from log starting at 0, commitIndex: 1, lastApplied: 1 12:31:20,990 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Could not remove entries - sending reply to force snapshot 12:31:20,990 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower102: Lagging 1 entries behind leader leader101 and reached 1 (of expected -1) 12:31:20,991 PM [test-pekko.actor.default-dispatcher-13] [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:31:20,991 PM [test-pekko.actor.default-dispatcher-13] [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:31:20,991 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: lastSequenceNumber prior to capture: -1 12:31:20,991 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: CaptureSnapshotReply received by actor 12:31:20,991 PM [test-pekko.actor.default-dispatcher-13] [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:31:20,991 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 12:31:20,991 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): sendInstallSnapshot 12:31:20,992 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] LeaderInstallSnapshotState - leader101 (Leader): Snapshot 351 bytes, total chunks to send: 1 12:31:20,992 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] LeaderInstallSnapshotState - leader101 (Leader): Next chunk: total length=351, offset=0, size=351, hashCode=236499276 12:31:20,992 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): next snapshot chunk size for follower follower102: 351 12:31:20,992 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): InstallSnapshot sent to follower Vector(user, follower102), Chunk: 1/1 12:31:20,992 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Snapshot success - sequence number: -1 12:31:20,992 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: SnapshotComplete received 12:31:20,992 PM [test-pekko.actor.default-dispatcher-16] [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:31:20,992 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower102: Lagging 1 entries behind leader leader101 and reached 1 (of expected -1) 12:31:20,992 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:31:20,992 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Snapshot installed from leader: leader101 12:31:20,993 PM [test-pekko.actor.default-dispatcher-16] [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:31:20,993 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 12:31:20,993 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Snapshot success - sequence number: -1 12:31:20,993 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Moving last applied index from 1 to 2 12:31:20,993 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Set currentTerm=3, votedFor=null 12:31:20,993 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Updated server config: isVoting: false, peers: [PeerInfo [id=leader101, address=pekko://test/user/leader101, votingState=VOTING]] 12:31:20,993 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: applySnapshot called 12:31:20,993 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower102, chunkIndex=1, success=true] 12:31:20,993 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: SnapshotComplete received 12:31:20,993 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower102, chunkIndex=1, success=true] 12:31:20,993 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Snapshot successfully installed on follower follower102 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 12:31:20,993 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: fakeSnapshot purging log to 1 for term 3 12:31:21,23 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart ending 12:31:21,23 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower102-collector104#-925765337] 12:31:21,34 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower102] 12:31:21,35 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader101-collector105#-1679807096] 12:31:21,35 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader101] 12:31:21,35 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader101-collector106#-1779426031] 12:31:21,36 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader101] 12:31:21,37 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart starting [WARN] [08/01/2024 12:31:21.040] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower108]: org.opendaylight.controller.cluster.common.actor.Monitor@64259140 12:31:21,40 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower108 with journal batch size 1000 12:31:21,43 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader107 with journal batch size 1000 12:31:21,43 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Set currentTerm=1, votedFor=leader107 12:31:21,43 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Received ReplicatedLogEntry for recovery: index: 0, size: 143 12:31:21,43 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Updated server config: isVoting: false, peers: [PeerInfo [id=leader107, address=pekko://test/user/leader107, votingState=VOTING]] 12:31:21,43 PM [test-pekko.actor.default-dispatcher-5] [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 [WARN] [08/01/2024 12:31:21.044] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader107]: org.opendaylight.controller.cluster.common.actor.Monitor@775327c1 12:31:21,45 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Set currentTerm=1, votedFor=leader107 12:31:21,45 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Received ReplicatedLogEntry for recovery: index: 0, size: 143 12:31:21,45 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Updated server config: isVoting: true, peers: [PeerInfo [id=follower108, address=pekko://test/user/follower108, votingState=NON_VOTING]] 12:31:21,45 PM [test-pekko.actor.default-dispatcher-16] [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:31:21,538 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:31:21,538 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.103:17355, Removed) 12:31:21,538 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower): Received ElectionTimeout - switching to Candidate 12:31:21,538 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Election: Candidate has following voting peers: [] 12:31:21,538 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Set currentTerm=2, votedFor=leader107 12:31:21,538 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Starting new election term 2 12:31:21,539 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:31:21,540 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Received ElectionTimeout 12:31:21,540 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Election: Leader has following peers: [follower108] 12:31:21,540 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:21,540 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:31:21,540 PM [test-pekko.actor.default-dispatcher-16] [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:31:21,541 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Set currentTerm=2, votedFor=null 12:31:21,541 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower108: Last sync leader does not match current leader leader107, need to catch up to -1 12:31:21,541 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower108 updated: matchIndex: -1, nextIndex: 0 12:31:21,541 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:21.541] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower108] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@8b4039a 12:31:21,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:21,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:21,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:31:21,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 0 12:31:21,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from -1 to 0 12:31:21,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 0 data zero 12:31:21,552 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: zero 12:31:21,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:21,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 0 is present for follower follower108 12:31:21,552 PM [test-pekko.actor.default-dispatcher-13] [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:31:21,553 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=0 12:31:21,553 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:21,553 PM [test-pekko.actor.default-dispatcher-16] [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:31:21,553 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:21,553 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:21,553 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 1 12:31:21,553 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:31:21,553 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:31:21,553 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Append entry to log zero 12:31:21,553 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:21,553 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 1 12:31:21,553 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 0 to 1 12:31:21,553 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 12:31:21,553 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 1 data one 12:31:21,553 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Log size is now 1 12:31:21,553 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Commit index set to 0 12:31:21,553 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: one 12:31:21,553 PM [test-pekko.actor.default-dispatcher-16] [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:31:21,553 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 0 (of expected -1) 12:31:21,553 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 12:31:21,553 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Setting last applied to 0 12:31:21,553 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:21,553 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Moving last applied index from -1 to 0 12:31:21,553 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 0 is present for follower follower108 12:31:21,553 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Applying state for log index 0 data zero 12:31:21,553 PM [test-pekko.actor.default-dispatcher-13] [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:31:21,553 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: applyState called: zero 12:31:21,553 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=1 12:31:21,553 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower108 updated: matchIndex: 0, nextIndex: 1 12:31:21,554 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: fakeSnapshot purging log to 0 for term 2 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [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:31:21,554 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 2 12:31:21,554 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 1 is present for follower follower108 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Append entry to log one 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:21,554 PM [test-pekko.actor.default-dispatcher-13] [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:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Log size is now 2 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Commit index set to 1 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [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:31:21,554 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 1 (of expected -1) 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Setting last applied to 1 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Moving last applied index from 0 to 1 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Applying state for log index 1 data one 12:31:21,554 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower108 updated: matchIndex: 1, nextIndex: 2 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: applyState called: one 12:31:21,554 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 12:31:21,554 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:31:21,554 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Persisting ApplyJournalEntries with index=0 12:31:21,554 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 12:31:21,554 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 2 12:31:21,554 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 1 to 2 12:31:21,554 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 2 data two 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [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:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 1 12:31:21,554 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: two 12:31:21,554 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 12:31:21,555 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 12:31:21,555 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Log size is now 2 12:31:21,555 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:31:21,555 PM [test-pekko.actor.default-dispatcher-16] [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:31:21,555 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 2 is present for follower follower108 12:31:21,555 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 1 (of expected -1) 12:31:21,555 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: fakeSnapshot purging log to 0 for term 2 12:31:21,555 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower108: AppendEntries [leaderId=leader107, 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:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Persisting ApplyJournalEntries with index=1 12:31:21,555 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=2 12:31:21,555 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: fakeSnapshot purging log to 1 for term 2 12:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, 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:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 1 12:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Append entry to log two 12:31:21,555 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 2 is present for follower follower108 12:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:31:21,555 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 12:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Log size is now 2 12:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Commit index set to 2 12:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [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:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 2 (of expected -1) 12:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Setting last applied to 2 12:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Moving last applied index from 1 to 2 12:31:21,555 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower108 updated: matchIndex: 2, nextIndex: 3 12:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Applying state for log index 2 data two 12:31:21,555 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: applyState called: two 12:31:21,555 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 12:31:21,556 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Persisting ApplyJournalEntries with index=2 [WARN] [08/01/2024 12:31:21.556] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower108] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4b0a4cb1 12:31:21,659 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 2 (of expected -1) 12:31:21,659 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: fakeSnapshot purging log to 1 for term 2 [WARN] [08/01/2024 12:31:21.708] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower109]: org.opendaylight.controller.cluster.common.actor.Monitor@775aef00 12:31:21,709 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower109 with journal batch size 1000 12:31:21,711 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Received ReplicatedLogEntry for recovery: index: 0, size: 174 12:31:21,711 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Updated server config: isVoting: true, peers: [PeerInfo [id=leader107, address=pekko://test/user/leader107, votingState=VOTING], PeerInfo [id=follower108, address=pekko://test/user/follower108, votingState=NON_VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 12:31:21,711 PM [test-pekko.actor.default-dispatcher-13] [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:31:21,713 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader107 with journal batch size 1000 [WARN] [08/01/2024 12:31:21.713] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader107]: org.opendaylight.controller.cluster.common.actor.Monitor@538b56f3 12:31:21,717 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Set currentTerm=2, votedFor=leader107 12:31:21,717 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Received ReplicatedLogEntry for recovery: index: 0, size: 174 12:31:21,717 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Updated server config: isVoting: true, peers: [PeerInfo [id=follower109, address=pekko://test/user/follower109, votingState=VOTING], PeerInfo [id=follower108, address=pekko://test/user/follower108, votingState=NON_VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 12:31:21,717 PM [test-pekko.actor.default-dispatcher-17] [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:31:22,168 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.103:17355, Removed) 12:31:22,168 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower): Received ElectionTimeout - switching to Candidate 12:31:22,168 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Election: Candidate has following voting peers: [follower109] 12:31:22,168 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Set currentTerm=3, votedFor=leader107 12:31:22,168 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Starting new election term 3 12:31:22,168 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Sending RequestVote [term=3, candidateId=leader107, lastLogIndex=-1, lastLogTerm=-1] to peer follower109 12:31:22,168 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 12:31:22,168 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:31:22,168 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Cluster state: [] 12:31:22,168 PM [test-pekko.actor.default-dispatcher-13] [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:31:22,169 PM [test-pekko.actor.default-dispatcher-13] [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:31:22,169 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Set currentTerm=3, votedFor=null 12:31:22,169 PM [test-pekko.actor.default-dispatcher-13] [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:31:22,169 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Set currentTerm=3, votedFor=leader107 12:31:22,169 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 12:31:22,169 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 12:31:22,169 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 12:31:22,170 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Election: Leader has following peers: [follower109, follower108, downPeer] 12:31:22,170 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:22,170 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:22,170 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower109: Last sync leader does not match current leader leader107, need to catch up to -1 12:31:22,170 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 12:31:22,170 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: -1, nextIndex: 0 12:31:22,171 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:22.170] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower109] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@712f4f1 12:31:22,174 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:22,174 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:22,174 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 12:31:22,174 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:22,174 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 0 is present for follower follower109 12:31:22,174 PM [test-pekko.actor.default-dispatcher-13] [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:31:22,174 PM [test-pekko.actor.default-dispatcher-5] [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:31:22,174 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 1 12:31:22,174 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:31:22,174 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log zero-1 12:31:22,174 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:22,175 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:22,175 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 1 12:31:22,175 PM [test-pekko.actor.default-dispatcher-5] [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:31:22,175 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached -1 (of expected -1) [WARN] [08/01/2024 12:31:22.175] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower109] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2a56ca78 12:31:22,175 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:22,175 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 0, nextIndex: 1 12:31:22,175 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:22,175 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 12:31:22,175 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 12:31:22,175 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 0 12:31:22,175 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from -1 to 0 12:31:22,175 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 0 data zero-1 12:31:22,176 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: zero-1 12:31:22,176 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=0 12:31:22,176 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:31:22,176 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:31:22,176 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 12:31:22,176 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:22,176 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 1 is present for follower follower109 12:31:22,176 PM [test-pekko.actor.default-dispatcher-13] [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:31:22,176 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:22,176 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:31:22,176 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:31:22,176 PM [test-pekko.actor.default-dispatcher-16] [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:31:22,176 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:31:22,176 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 1 12:31:22,176 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 12:31:22,176 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:31:22,176 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log one-1 12:31:22,176 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:31:22,176 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:31:22,176 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 1 is present for follower follower109 12:31:22,177 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 12:31:22,177 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:31:22,177 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 2 12:31:22,177 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 0 12:31:22,177 PM [test-pekko.actor.default-dispatcher-16] [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:31:22,177 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:31:22,177 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 0 (of expected -1) 12:31:22,177 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 12:31:22,177 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 0 12:31:22,177 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from -1 to 0 12:31:22,177 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 0 data zero-1 12:31:22,177 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 1, nextIndex: 2 12:31:22,177 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 12:31:22,177 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 1 12:31:22,177 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 0 to 1 12:31:22,177 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: zero-1 12:31:22,177 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 1 data one-1 12:31:22,177 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: one-1 12:31:22,177 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=0 12:31:22,177 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:31:22,177 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 2 is present for follower follower109 12:31:22,177 PM [test-pekko.actor.default-dispatcher-13] [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]]] 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [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]]] 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log two-1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 3 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower109, logLastIndex=2, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 1 (of expected -1) 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 2 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from 0 to 1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 1 data one-1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: one-1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 2, nextIndex: 3 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 2 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 1 to 2 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 2 data two-1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: two-1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=2 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 2 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 2 (of expected -1) 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 2 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from 1 to 2 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 2 data two-1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: two-1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=2 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=three-1}, logIndex: 3, isSendImmediate: true 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: -1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 3 is present for follower follower109 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower109: AppendEntries [leaderId=leader107, prevLogIndex=2, prevLogTerm=3, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=3, payload=three-1]]] 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, prevLogIndex=2, prevLogTerm=3, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=3, payload=three-1]]] 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log three-1 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 12:31:22,178 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 4 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [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:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 2 (of expected -1) 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 3, nextIndex: 4 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 3 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 2 to 3 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 3 data three-1 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: three-1 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: -1 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=3 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=four-1}, logIndex: 4, isSendImmediate: true 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 4 is present for follower follower109 12:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [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:31:22,179 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:31:22,179 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 3 12:31:22,179 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 3 (of expected -1) 12:31:22,179 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 12:31:22,179 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 12:31:22,179 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 3 12:31:22,179 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from 2 to 3 12:31:22,179 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 3 data three-1 12:31:22,179 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 4 is present for follower follower109 12:31:22,179 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: three-1 12:31:22,179 PM [test-pekko.actor.default-dispatcher-5] [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:31:22,179 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 1 12:31:22,179 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 12:31:22,179 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log four-1 12:31:22,179 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 12:31:22,179 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 12:31:22,179 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 5 12:31:22,179 PM [test-pekko.actor.default-dispatcher-5] [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:31:22,180 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 3 (of expected -1) 12:31:22,180 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=3 12:31:22,180 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 4, nextIndex: 5 12:31:22,180 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 12:31:22,180 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 4 12:31:22,180 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 3 to 4 12:31:22,180 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 4 data four-1 12:31:22,180 PM [test-pekko.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: four-1 12:31:22,180 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:31:22,180 PM [test-pekko.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=4 12:31:22,180 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 4 12:31:22,180 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 4 (of expected -1) 12:31:22,180 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 4 12:31:22,180 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 4 12:31:22,180 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from 3 to 4 12:31:22,180 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 4 data four-1 12:31:22,180 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: four-1 12:31:22,180 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=4 12:31:22,288 PM [test-pekko.actor.default-dispatcher-16] [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:31:22,288 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Set currentTerm=3, votedFor=null 12:31:22,288 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 4 (of expected -1) 12:31:22,289 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower108: Lagging -3 entries behind leader leader107 and reached 2 (of expected -1) 12:31:22,289 PM [test-pekko.actor.default-dispatcher-13] [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:31:22,289 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:31:22,289 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 1 is present for follower follower108 12:31:22,289 PM [test-pekko.actor.default-dispatcher-13] [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:31:22,290 PM [test-pekko.actor.default-dispatcher-5] [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:31:22,290 PM [test-pekko.actor.default-dispatcher-5] [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:31:22,290 PM [test-pekko.actor.default-dispatcher-5] [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:31:22,290 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower108: Lagging 2 entries behind leader leader107 and reached 2 (of expected -1) 12:31:22,290 PM [test-pekko.actor.default-dispatcher-13] [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:31:22,290 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): follower follower108 last log term 2 conflicts with the leader's 3 - dec next index to 0 12:31:22,290 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 0, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:31:22,290 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 0 is present for follower follower108 12:31:22,290 PM [test-pekko.actor.default-dispatcher-13] [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:31:22,290 PM [test-pekko.actor.default-dispatcher-16] [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:31:22,290 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 5 12:31:22,290 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: -1 12:31:22,290 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] is present: existingEntryTerm: 2 12:31:22,290 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:31:22,290 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Removing entries from log starting at 1, commitIndex: 2, lastApplied: 2 12:31:22,290 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Could not remove entries - sending reply to force snapshot 12:31:22,291 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower108: Lagging 2 entries behind leader leader107 and reached 2 (of expected -1) 12:31:22,291 PM [test-pekko.actor.default-dispatcher-13] [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:31:22,291 PM [test-pekko.actor.default-dispatcher-13] [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:31:22,291 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: lastSequenceNumber prior to capture: -1 12:31:22,291 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: CaptureSnapshotReply received by actor 12:31:22,291 PM [test-pekko.actor.default-dispatcher-13] [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:31:22,291 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 12:31:22,291 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendInstallSnapshot 12:31:22,292 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] LeaderInstallSnapshotState - leader107 (Leader): Snapshot 390 bytes, total chunks to send: 1 12:31:22,292 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] LeaderInstallSnapshotState - leader107 (Leader): Next chunk: total length=390, offset=0, size=390, hashCode=-929342248 12:31:22,292 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): next snapshot chunk size for follower follower108: 390 12:31:22,292 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): InstallSnapshot sent to follower Vector(user, follower108), Chunk: 1/1 12:31:22,292 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Snapshot success - sequence number: -1 12:31:22,292 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: SnapshotComplete received 12:31:22,292 PM [test-pekko.actor.default-dispatcher-12] [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:31:22,292 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower108: Lagging 2 entries behind leader leader107 and reached 2 (of expected -1) 12:31:22,292 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:31:22,292 PM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Snapshot installed from leader: leader107 12:31:22,293 PM [test-pekko.actor.default-dispatcher-12] [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:31:22,293 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 12:31:22,293 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Snapshot success - sequence number: -1 12:31:22,293 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Moving last applied index from 2 to 4 12:31:22,293 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Set currentTerm=3, votedFor=null 12:31:22,293 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Updated server config: isVoting: false, peers: [PeerInfo [id=follower109, address=null, votingState=VOTING], PeerInfo [id=leader107, address=pekko://test/user/leader107, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 12:31:22,293 PM [test-pekko.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: applySnapshot called 12:31:22,293 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower108, chunkIndex=1, success=true] 12:31:22,294 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: SnapshotComplete received 12:31:22,294 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower108, chunkIndex=1, success=true] 12:31:22,294 PM [test-pekko.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Snapshot successfully installed on follower follower108 (last chunk 1) - matchIndex set to 4, nextIndex set to 5 12:31:22,325 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart ending 12:31:22,325 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower108-collector110#-286231081] 12:31:22,336 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower108] 12:31:22,337 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader107-collector111#1603467993] 12:31:22,337 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader107] 12:31:22,337 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower109-collector112#1641843659] 12:31:22,337 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower109] 12:31:22,337 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader107-collector113#1952667704] 12:31:22,338 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader107] 12:31:22,338 PM [test-pekko.actor.default-dispatcher-13] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [08/01/2024 12:31:22.338] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/01/2024 12:31:22.339] [test-pekko.actor.default-dispatcher-13] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.103:17355) [INFO] [08/01/2024 12:31:22.340] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - Exiting completed [INFO] [08/01/2024 12:31:22.340] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - Shutting down... 12:31:22,340 PM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - Exiting completed 12:31:22,340 PM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - Shutting down... [INFO] [08/01/2024 12:31:22.340] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - Successfully shut down 12:31:22,340 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - Successfully shut down [INFO] [08/01/2024 12:31:22.342] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.103:17355/system/remoting-terminator] Shutting down remote daemon. 12:31:22,342 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [08/01/2024 12:31:22.342] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.103:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 12:31:22,342 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports.