[DEBUG] [02/27/2024 11:14:38.145] [main] [EventStream(akka://test)] logger log1-TestEventListener started 11:14:38,146 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [02/27/2024 11:14:38.146] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [02/27/2024 11:14:38.146] [main] [EventStream(akka://test)] Default Loggers started 11:14:38,163 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.238:25520] with UID [5352295529208546532] 11:14:38,163 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - Starting up, Akka version [2.6.21] ... 11:14:38,173 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerLeaderStateChanges 11:14:38,173 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - Registered cluster JMX MBean [akka:type=Cluster] 11:14:38,173 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - Started up successfully 11:14:38,173 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 11:14:38,173 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [02/27/2024 11:14:38.161] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.238:25520] with UID [5352295529208546532] [INFO] [02/27/2024 11:14:38.162] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - Starting up, Akka version [2.6.21] ... [INFO] [02/27/2024 11:14:38.164] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [02/27/2024 11:14:38.164] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - Started up successfully [INFO] [02/27/2024 11:14:38.165] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [02/27/2024 11:14:38.165] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [WARN] [02/27/2024 11:14:38.176] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower647]: org.opendaylight.controller.cluster.common.actor.Monitor@7d9cff4e 11:14:38,178 AM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower647 with journal batch size 1000 [INFO] [akkaDeadLetter][02/27/2024 11:14:38.179] [test-akka.actor.default-dispatcher-10] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower647] to Actor[akka://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:38,186 AM [test-akka.actor.default-dispatcher-10] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower647] to Actor[akka://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:38,191 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower647: Set currentTerm=1, votedFor=leader646 11:14:38,191 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower647: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:14:38,191 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower647: Updated server config: isVoting: false, peers: [PeerInfo [id=leader646, address=akka://test/user/leader646, votingState=VOTING]] 11:14:38,191 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower647: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [02/27/2024 11:14:38.281] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader646]: org.opendaylight.controller.cluster.common.actor.Monitor@c9be1c7 [INFO] [akkaDeadLetter][02/27/2024 11:14:38.281] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader646] to Actor[akka://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:38,281 AM [test-akka.actor.default-dispatcher-13] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader646] to Actor[akka://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:38,281 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader646 with journal batch size 1000 11:14:38,283 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader646: Set currentTerm=1, votedFor=leader646 11:14:38,283 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader646: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:14:38,284 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader646: Updated server config: isVoting: true, peers: [PeerInfo [id=follower647, address=akka://test/user/follower647, votingState=NON_VOTING]] 11:14:38,284 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader646: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:14:38,738 AM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:38,738 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader646 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.238:25520, Removed) 11:14:38,738 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader646 (Follower): Received ElectionTimeout - switching to Candidate 11:14:38,738 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader646 (Candidate): Election: Candidate has following voting peers: [] 11:14:38,738 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader646: Set currentTerm=2, votedFor=leader646 11:14:38,738 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader646 (Candidate): Starting new election term 2 11:14:38,738 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader646 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:14:38,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader646 (Candidate): Received ElectionTimeout 11:14:38,739 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader646 (Leader): Election: Leader has following peers: [follower647] 11:14:38,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader646 (Leader): Checking sendAppendEntries for follower follower647: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:14:38,740 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader646 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:14:38,740 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower647 (Follower): Term 2 in "AppendEntries [leaderId=leader646, 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 11:14:38,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower647: Set currentTerm=2, votedFor=null 11:14:38,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower647: Last sync leader does not match current leader leader646, need to catch up to -1 11:14:38,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader646 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower647 updated: matchIndex: -1, nextIndex: 0 11:14:38,740 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader646 (Leader): Checking sendAppendEntries for follower follower647: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [02/27/2024 11:14:38.741] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower647] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5da9d59f [INFO] [akkaDeadLetter][02/27/2024 11:14:38.741] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower647] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower647] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:38,741 AM [test-akka.actor.default-dispatcher-15] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower647] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:38,785 AM [test-akka.actor.default-dispatcher-13] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:39,99 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower647: Lagging 0 entries behind leader leader646 and reached -1 (of expected -1) [WARN] [02/27/2024 11:14:39.099] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower647] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1471bb5a [INFO] [akkaDeadLetter][02/27/2024 11:14:39.099] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower647] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower647] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:39,99 AM [test-akka.actor.default-dispatcher-5] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower647] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:39,138 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/roleChangeNotifier649#-1410023133] 11:14:39,149 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower647-collector650#-1730594496] 11:14:39,149 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower647] 11:14:39,150 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader646-collector651#282601536] 11:14:39,150 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader646] 11:14:39,151 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart starting 11:14:39,154 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower653 with journal batch size 1000 [WARN] [02/27/2024 11:14:39.154] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower653]: org.opendaylight.controller.cluster.common.actor.Monitor@5476fb45 [INFO] [akkaDeadLetter][02/27/2024 11:14:39.155] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower653] to Actor[akka://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:39,155 AM [test-akka.actor.default-dispatcher-13] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower653] to Actor[akka://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:39,158 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Set currentTerm=1, votedFor=leader652 11:14:39,158 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:14:39,158 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Updated server config: isVoting: false, peers: [PeerInfo [id=leader652, address=akka://test/user/leader652, votingState=VOTING]] 11:14:39,158 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:14:39,257 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader652 with journal batch size 1000 [WARN] [02/27/2024 11:14:39.257] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader652]: org.opendaylight.controller.cluster.common.actor.Monitor@6ce9b102 [INFO] [akkaDeadLetter][02/27/2024 11:14:39.257] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader652] to Actor[akka://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:39,258 AM [test-akka.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader652] to Actor[akka://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:39,260 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Set currentTerm=1, votedFor=leader652 11:14:39,260 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:14:39,260 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Updated server config: isVoting: true, peers: [PeerInfo [id=follower653, address=akka://test/user/follower653, votingState=NON_VOTING]] 11:14:39,260 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:14:39,688 AM [test-akka.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:39,688 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.238:25520, Removed) 11:14:39,688 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Follower): Received ElectionTimeout - switching to Candidate 11:14:39,688 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Candidate): Election: Candidate has following voting peers: [] 11:14:39,688 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Set currentTerm=2, votedFor=leader652 11:14:39,689 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Candidate): Starting new election term 2 11:14:39,689 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:14:39,690 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Candidate): Received ElectionTimeout 11:14:39,690 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Election: Leader has following peers: [follower653] 11:14:39,690 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Checking sendAppendEntries for follower follower653: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:14:39,690 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:14:39,690 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Term 2 in "AppendEntries [leaderId=leader652, 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 11:14:39,690 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Set currentTerm=2, votedFor=null 11:14:39,690 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower653: Last sync leader does not match current leader leader652, need to catch up to -1 11:14:39,690 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower653 updated: matchIndex: -1, nextIndex: 0 11:14:39,690 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Checking sendAppendEntries for follower follower653: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [02/27/2024 11:14:39.691] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower653] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@49525284 11:14:39,691 AM [test-akka.actor.default-dispatcher-13] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower653] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [akkaDeadLetter][02/27/2024 11:14:39.691] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower653] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower653] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:39,715 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:39,715 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:39,715 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Setting last applied to 0 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Moving last applied index from -1 to 0 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Applying state for log index 0 data zero 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: applyState called: zero 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Checking sendAppendEntries for follower follower653: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): sendAppendEntries: 0 is present for follower follower653 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Sending AppendEntries to follower follower653: AppendEntries [leaderId=leader652, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Persisting ApplyJournalEntries with index=0 11:14:39,716 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): handleAppendEntries: AppendEntries [leaderId=leader652, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:39,716 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Number of entries to be appended = 1 11:14:39,716 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:14:39,716 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Append entry to log zero 11:14:39,716 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:39,716 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:39,716 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Log size is now 1 11:14:39,716 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Commit index set to 0 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Setting last applied to 1 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Moving last applied index from 0 to 1 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Applying state for log index 1 data one 11:14:39,716 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower653, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:39,716 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower653: Lagging 0 entries behind leader leader652 and reached 0 (of expected -1) 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: applyState called: one 11:14:39,716 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:14:39,716 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Setting last applied to 0 11:14:39,716 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Moving last applied index from -1 to 0 11:14:39,716 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Applying state for log index 0 data zero 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Checking sendAppendEntries for follower follower653: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): sendAppendEntries: 0 is present for follower follower653 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Sending AppendEntries to follower follower653: AppendEntries [leaderId=leader652, 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]]] 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower653 updated: matchIndex: 0, nextIndex: 1 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: fakeSnapshot purging log to 0 for term 2 11:14:39,716 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Checking sendAppendEntries for follower follower653: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): sendAppendEntries: 1 is present for follower follower653 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Sending AppendEntries to follower follower653: AppendEntries [leaderId=leader652, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Persisting ApplyJournalEntries with index=1 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: applyState called: zero 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Setting last applied to 2 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Moving last applied index from 1 to 2 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Applying state for log index 2 data two 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): handleAppendEntries: AppendEntries [leaderId=leader652, 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]]] 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Number of entries to be appended = 2 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: applyState called: two 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Append entry to log one 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Checking sendAppendEntries for follower follower653: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Log size is now 2 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): sendAppendEntries: 1 is present for follower follower653 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Commit index set to 1 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower653, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Sending AppendEntries to follower follower653: AppendEntries [leaderId=leader652, prevLogIndex=0, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one], SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower653: Lagging 0 entries behind leader leader652 and reached 1 (of expected -1) 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Setting last applied to 1 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Moving last applied index from 0 to 1 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Applying state for log index 1 data one 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Persisting ApplyJournalEntries with index=2 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: applyState called: one 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower653 updated: matchIndex: 1, nextIndex: 2 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: fakeSnapshot purging log to 1 for term 2 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Checking sendAppendEntries for follower follower653: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): handleAppendEntries: AppendEntries [leaderId=leader652, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): sendAppendEntries: 2 is present for follower follower653 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Number of entries to be appended = 1 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Sending AppendEntries to follower follower653: AppendEntries [leaderId=leader652, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Log size is now 2 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower653, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower653: Lagging 0 entries behind leader leader652 and reached 1 (of expected -1) 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: fakeSnapshot purging log to 0 for term 2 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Persisting ApplyJournalEntries with index=0 11:14:39,717 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): sendAppendEntries: 2 is present for follower follower653 11:14:39,717 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): handleAppendEntries: AppendEntries [leaderId=leader652, prevLogIndex=0, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one], SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Number of entries to be appended = 2 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Append entry to log two 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Log size is now 2 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Commit index set to 2 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower653, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower653: Lagging 0 entries behind leader leader652 and reached 2 (of expected -1) 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Setting last applied to 2 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Moving last applied index from 1 to 2 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Applying state for log index 2 data two 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: applyState called: two 11:14:39,718 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower653 updated: matchIndex: 2, nextIndex: 3 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Persisting ApplyJournalEntries with index=1 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): handleAppendEntries: AppendEntries [leaderId=leader652, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Number of entries to be appended = 1 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 11:14:39,718 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Checking sendAppendEntries for follower follower653: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Log size is now 2 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower653, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower653: Lagging 0 entries behind leader leader652 and reached 2 (of expected -1) 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: fakeSnapshot purging log to 1 for term 2 11:14:39,718 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Persisting ApplyJournalEntries with index=2 [WARN] [02/27/2024 11:14:39.718] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower653] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7b09d68d [INFO] [akkaDeadLetter][02/27/2024 11:14:39.719] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower653] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower653] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:39,719 AM [test-akka.actor.default-dispatcher-5] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower653] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [WARN] [02/27/2024 11:14:39.779] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader652]: org.opendaylight.controller.cluster.common.actor.Monitor@6f8ec79 [INFO] [akkaDeadLetter][02/27/2024 11:14:39.779] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader652] to Actor[akka://test/user/termination-monitor] was not delivered. [9] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:39,779 AM [test-akka.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader652] to Actor[akka://test/user/termination-monitor] was not delivered. [9] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:39,779 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader652 with journal batch size 1000 11:14:39,782 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Set currentTerm=1, votedFor=leader652 11:14:39,782 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:14:39,782 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Updated server config: isVoting: true, peers: [PeerInfo [id=follower653, address=akka://test/user/follower653, votingState=NON_VOTING]] 11:14:39,782 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Set currentTerm=2, votedFor=leader652 11:14:39,782 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:14:40,298 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.238:25520, Removed) 11:14:40,298 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Follower): Received ElectionTimeout - switching to Candidate 11:14:40,298 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Candidate): Election: Candidate has following voting peers: [] 11:14:40,298 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Set currentTerm=3, votedFor=leader652 11:14:40,298 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Candidate): Starting new election term 3 11:14:40,298 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:14:40,299 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Candidate): Received ElectionTimeout 11:14:40,299 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Election: Leader has following peers: [follower653] 11:14:40,300 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Checking sendAppendEntries for follower follower653: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:14:40,300 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:14:40,337 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:40,337 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:40,337 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:40,337 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Setting last applied to 0 11:14:40,337 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Moving last applied index from -1 to 0 11:14:40,337 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Applying state for log index 0 data zero-1 11:14:40,338 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: applyState called: zero-1 11:14:40,338 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Checking sendAppendEntries for follower follower653: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:14:40,338 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Persisting ApplyJournalEntries with index=0 11:14:40,338 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:40,338 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:14:40,338 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:14:40,338 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:40,338 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Setting last applied to 1 11:14:40,338 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Moving last applied index from 0 to 1 11:14:40,338 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Applying state for log index 1 data one-1 11:14:40,339 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: applyState called: one-1 11:14:40,339 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Checking sendAppendEntries for follower follower653: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:14:40,339 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Persisting ApplyJournalEntries with index=1 11:14:40,339 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:14:40,418 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Term 3 in "AppendEntries [leaderId=leader652, 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 11:14:40,419 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Set currentTerm=3, votedFor=null 11:14:40,419 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower653: Lagging -3 entries behind leader leader652 and reached 2 (of expected -1) 11:14:40,419 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): handleAppendEntriesReply: follower follower653 lastIndex 2 is ahead of our lastIndex 1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 11:14:40,419 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: 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 follower653 11:14:40,419 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: lastSequenceNumber prior to capture: -1 11:14:40,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: CaptureSnapshotReply received by actor 11:14:40,420 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: 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=leader652, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower653, isVoting=false], ServerInfo[peerId=leader652, isVoting=true]]]] 11:14:40,420 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:14:40,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): sendInstallSnapshot 11:14:40,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader652 (Leader): Snapshot 333 bytes, total chunks to send: 1 11:14:40,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader652 (Leader): Next chunk: total length=333, offset=0, size=333, hashCode=878051978 11:14:40,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): next snapshot chunk size for follower follower653: 333 11:14:40,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): InstallSnapshot sent to follower Vector(user, follower653), Chunk: 1/1 11:14:40,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: Snapshot success - sequence number: -1 11:14:40,420 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: SnapshotComplete received 11:14:40,420 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader652, lastIncludedIndex=1, lastIncludedTerm=3, datasize=333, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower653, isVoting=false], ServerInfo[peerId=leader652, isVoting=true]]]] 11:14:40,421 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower653: Lagging -1 entries behind leader leader652 and reached 2 (of expected -1) 11:14:40,421 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:14:40,421 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): Snapshot installed from leader: leader652 11:14:40,422 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: 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=follower653, isVoting=false], ServerInfo[peerId=leader652, isVoting=true]]]] 11:14:40,422 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:14:40,422 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Snapshot success - sequence number: -1 11:14:40,422 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Moving last applied index from 2 to 1 11:14:40,422 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Set currentTerm=3, votedFor=null 11:14:40,422 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: Updated server config: isVoting: false, peers: [PeerInfo [id=leader652, address=akka://test/user/leader652, votingState=VOTING]] 11:14:40,422 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: applySnapshot called 11:14:40,422 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower653, chunkIndex=1, success=true] 11:14:40,422 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower653: SnapshotComplete received 11:14:40,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower653, chunkIndex=1, success=true] 11:14:40,422 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader652 (Leader): Snapshot successfully installed on follower follower653 (last chunk 1) - matchIndex set to 1, nextIndex set to 2 11:14:40,422 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader652: fakeSnapshot purging log to 0 for term 3 11:14:40,438 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart ending 11:14:40,438 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower653-collector655#603394732] 11:14:40,453 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower653] 11:14:40,454 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader652-collector656#-117631182] 11:14:40,456 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader652] 11:14:40,456 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader652-collector657#449435773] 11:14:40,456 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader652] 11:14:40,464 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart starting [WARN] [02/27/2024 11:14:40.466] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower659]: org.opendaylight.controller.cluster.common.actor.Monitor@68fe0e6c [INFO] [akkaDeadLetter][02/27/2024 11:14:40.467] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower659] to Actor[akka://test/user/termination-monitor] was not delivered. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 11:14:40,467 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower659 with journal batch size 1000 11:14:40,467 AM [test-akka.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower659] to Actor[akka://test/user/termination-monitor] was not delivered. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [WARN] [02/27/2024 11:14:40.468] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader658]: org.opendaylight.controller.cluster.common.actor.Monitor@6ef75d22 11:14:40,468 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Set currentTerm=1, votedFor=leader658 11:14:40,468 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader658 with journal batch size 1000 11:14:40,468 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:14:40,468 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Updated server config: isVoting: false, peers: [PeerInfo [id=leader658, address=akka://test/user/leader658, votingState=VOTING]] 11:14:40,468 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:14:40,469 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Set currentTerm=1, votedFor=leader658 11:14:40,469 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:14:40,469 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Updated server config: isVoting: true, peers: [PeerInfo [id=follower659, address=akka://test/user/follower659, votingState=NON_VOTING]] 11:14:40,469 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:14:40,988 AM [test-akka.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:40,988 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.238:25520, Removed) 11:14:40,988 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Follower): Received ElectionTimeout - switching to Candidate 11:14:40,988 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Candidate): Election: Candidate has following voting peers: [] 11:14:40,988 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Set currentTerm=2, votedFor=leader658 11:14:40,988 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Candidate): Starting new election term 2 11:14:40,988 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:14:40,989 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Candidate): Received ElectionTimeout 11:14:40,990 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Election: Leader has following peers: [follower659] 11:14:40,990 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Checking sendAppendEntries for follower follower659: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:14:40,990 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:14:40,990 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Term 2 in "AppendEntries [leaderId=leader658, 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 11:14:40,990 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Set currentTerm=2, votedFor=null 11:14:40,990 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower659: Last sync leader does not match current leader leader658, need to catch up to -1 11:14:40,990 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower659 updated: matchIndex: -1, nextIndex: 0 11:14:40,990 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Checking sendAppendEntries for follower follower659: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [02/27/2024 11:14:40.990] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower659] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4a76f8ec 11:14:41,21 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:41,21 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:41,21 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Setting last applied to 0 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Moving last applied index from -1 to 0 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Applying state for log index 0 data zero 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: applyState called: zero 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Checking sendAppendEntries for follower follower659: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): sendAppendEntries: 0 is present for follower follower659 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Sending AppendEntries to follower follower659: AppendEntries [leaderId=leader658, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Persisting ApplyJournalEntries with index=0 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:41,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): handleAppendEntries: AppendEntries [leaderId=leader658, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:41,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Number of entries to be appended = 1 11:14:41,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:41,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Append entry to log zero 11:14:41,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Setting last applied to 1 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Moving last applied index from 0 to 1 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Applying state for log index 1 data one 11:14:41,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:41,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Log size is now 1 11:14:41,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Commit index set to 0 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: applyState called: one 11:14:41,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower659, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Checking sendAppendEntries for follower follower659: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:14:41,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower659: Lagging 0 entries behind leader leader658 and reached 0 (of expected -1) 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): sendAppendEntries: 0 is present for follower follower659 11:14:41,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:14:41,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Setting last applied to 0 11:14:41,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Moving last applied index from -1 to 0 11:14:41,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Applying state for log index 0 data zero 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Sending AppendEntries to follower follower659: AppendEntries [leaderId=leader658, 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]]] 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Persisting ApplyJournalEntries with index=1 11:14:41,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower659 updated: matchIndex: 0, nextIndex: 1 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: fakeSnapshot purging log to 0 for term 2 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: applyState called: zero 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Checking sendAppendEntries for follower follower659: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): sendAppendEntries: 1 is present for follower follower659 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Sending AppendEntries to follower follower659: AppendEntries [leaderId=leader658, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): handleAppendEntries: AppendEntries [leaderId=leader658, 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]]] 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Number of entries to be appended = 2 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Append entry to log one 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Log size is now 2 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Commit index set to 1 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower659, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower659: Lagging 0 entries behind leader leader658 and reached 1 (of expected -1) 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Setting last applied to 2 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Setting last applied to 1 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Moving last applied index from 1 to 2 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Moving last applied index from 0 to 1 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Applying state for log index 2 data two 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Applying state for log index 1 data one 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: applyState called: one 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: applyState called: two 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Persisting ApplyJournalEntries with index=0 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Checking sendAppendEntries for follower follower659: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): sendAppendEntries: 1 is present for follower follower659 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Sending AppendEntries to follower follower659: AppendEntries [leaderId=leader658, prevLogIndex=0, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one], SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): handleAppendEntries: AppendEntries [leaderId=leader658, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Number of entries to be appended = 1 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Log size is now 2 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower659, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower659: Lagging 0 entries behind leader leader658 and reached 1 (of expected -1) 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower659 updated: matchIndex: 1, nextIndex: 2 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: fakeSnapshot purging log to 0 for term 2 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: fakeSnapshot purging log to 1 for term 2 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Checking sendAppendEntries for follower follower659: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): sendAppendEntries: 2 is present for follower follower659 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Sending AppendEntries to follower follower659: AppendEntries [leaderId=leader658, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Persisting ApplyJournalEntries with index=1 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Persisting ApplyJournalEntries with index=2 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): handleAppendEntries: AppendEntries [leaderId=leader658, prevLogIndex=0, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one], SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Number of entries to be appended = 2 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:14:41,23 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Append entry to log two 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Log size is now 2 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Commit index set to 2 11:14:41,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower659, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:41,24 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower659: Lagging 0 entries behind leader leader658 and reached 2 (of expected -1) 11:14:41,24 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): sendAppendEntries: 2 is present for follower follower659 11:14:41,24 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:14:41,24 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Setting last applied to 2 11:14:41,24 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Moving last applied index from 1 to 2 11:14:41,24 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Applying state for log index 2 data two 11:14:41,24 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower659 updated: matchIndex: 2, nextIndex: 3 11:14:41,24 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: applyState called: two 11:14:41,24 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Checking sendAppendEntries for follower follower659: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:14:41,24 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): handleAppendEntries: AppendEntries [leaderId=leader658, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:14:41,24 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Number of entries to be appended = 1 11:14:41,24 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 11:14:41,24 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 11:14:41,24 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Log size is now 2 11:14:41,24 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower659, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:41,24 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower659: Lagging 0 entries behind leader leader658 and reached 2 (of expected -1) 11:14:41,24 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: fakeSnapshot purging log to 1 for term 2 11:14:41,24 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Persisting ApplyJournalEntries with index=2 [WARN] [02/27/2024 11:14:41.024] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower659] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2887a10c 11:14:41,88 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader658 with journal batch size 1000 [WARN] [02/27/2024 11:14:41.088] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader658]: org.opendaylight.controller.cluster.common.actor.Monitor@59cbdb5b 11:14:41,90 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Set currentTerm=1, votedFor=leader658 11:14:41,90 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:14:41,90 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Updated server config: isVoting: true, peers: [PeerInfo [id=follower659, address=akka://test/user/follower659, votingState=NON_VOTING]] 11:14:41,90 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Set currentTerm=2, votedFor=leader658 11:14:41,90 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:14:41,608 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.238:25520, Removed) 11:14:41,608 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Follower): Received ElectionTimeout - switching to Candidate 11:14:41,609 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Candidate): Election: Candidate has following voting peers: [] 11:14:41,609 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Set currentTerm=3, votedFor=leader658 11:14:41,609 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Candidate): Starting new election term 3 11:14:41,609 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:14:41,610 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Candidate): Received ElectionTimeout 11:14:41,610 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Election: Leader has following peers: [follower659] 11:14:41,610 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Checking sendAppendEntries for follower follower659: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:14:41,610 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:14:41,610 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Term 3 in "AppendEntries [leaderId=leader658, 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 11:14:41,610 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Set currentTerm=3, votedFor=null 11:14:41,610 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower659: Lagging -3 entries behind leader leader658 and reached 2 (of expected -1) 11:14:41,610 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): handleAppendEntriesReply: follower follower659 lastIndex 2 is ahead of our lastIndex -1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 11:14:41,610 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 11:14:41,610 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: 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 follower659 11:14:41,610 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: lastSequenceNumber prior to capture: -1 11:14:41,611 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: CaptureSnapshotReply received by actor 11:14:41,611 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=3, electionVotedFor=leader658, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower659, isVoting=false], ServerInfo[peerId=leader658, isVoting=true]]]] 11:14:41,611 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:14:41,611 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): sendInstallSnapshot 11:14:41,611 AM [test-akka.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader658 (Leader): Snapshot 171 bytes, total chunks to send: 1 11:14:41,611 AM [test-akka.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader658 (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 11:14:41,611 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): next snapshot chunk size for follower follower659: 171 11:14:41,611 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): InstallSnapshot sent to follower Vector(user, follower659), Chunk: 1/1 11:14:41,611 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Snapshot success - sequence number: -1 11:14:41,611 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: SnapshotComplete received 11:14:41,612 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader658, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower659, isVoting=false], ServerInfo[peerId=leader658, isVoting=true]]]] 11:14:41,612 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower659: Lagging -3 entries behind leader leader658 and reached 2 (of expected -1) 11:14:41,612 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:14:41,612 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Snapshot installed from leader: leader658 11:14:41,612 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: 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=follower659, isVoting=false], ServerInfo[peerId=leader658, isVoting=true]]]] 11:14:41,612 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:14:41,612 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Snapshot success - sequence number: -1 11:14:41,612 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Moving last applied index from 2 to -1 11:14:41,612 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Set currentTerm=3, votedFor=null 11:14:41,612 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Updated server config: isVoting: false, peers: [PeerInfo [id=leader658, address=akka://test/user/leader658, votingState=VOTING]] 11:14:41,612 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: applySnapshot called 11:14:41,612 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower659, chunkIndex=1, success=true] 11:14:41,612 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: SnapshotComplete received 11:14:41,613 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower659, chunkIndex=1, success=true] 11:14:41,613 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Snapshot successfully installed on follower follower659 (last chunk 1) - matchIndex set to -1, nextIndex set to 0 11:14:41,643 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:41,643 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:41,643 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:41,643 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Setting last applied to 0 11:14:41,643 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Moving last applied index from -1 to 0 11:14:41,643 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Applying state for log index 0 data zero-1 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: applyState called: zero-1 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Checking sendAppendEntries for follower follower659: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): sendAppendEntries: 0 is present for follower follower659 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Sending AppendEntries to follower follower659: AppendEntries [leaderId=leader658, 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]]] 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: Persisting ApplyJournalEntries with index=0 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): handleAppendEntries: AppendEntries [leaderId=leader658, 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]]] 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Number of entries to be appended = 1 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Append entry to log zero-1 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Log size is now 1 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Commit index set to 0 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower659, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower659: Lagging 0 entries behind leader leader658 and reached 0 (of expected -1) 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659 (Follower): Setting last applied to 0 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Moving last applied index from -1 to 0 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Applying state for log index 0 data zero-1 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: applyState called: zero-1 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower659: Persisting ApplyJournalEntries with index=0 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower659 updated: matchIndex: 0, nextIndex: 1 11:14:41,644 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader658 (Leader): Checking sendAppendEntries for follower follower659: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:14:41,693 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart ending 11:14:41,694 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower659-collector661#1978309785] 11:14:41,705 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower659] 11:14:41,705 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader658-collector662#-1595404819] 11:14:41,705 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader658] 11:14:41,705 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader658-collector663#-1001713827] 11:14:41,705 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader658] 11:14:41,706 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart starting [WARN] [02/27/2024 11:14:41.708] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower665]: org.opendaylight.controller.cluster.common.actor.Monitor@3f23d65f 11:14:41,709 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower665 with journal batch size 1000 11:14:41,711 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Set currentTerm=1, votedFor=leader664 11:14:41,711 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:14:41,712 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Updated server config: isVoting: false, peers: [PeerInfo [id=leader664, address=akka://test/user/leader664, votingState=VOTING]] 11:14:41,712 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [02/27/2024 11:14:41.712] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader664]: org.opendaylight.controller.cluster.common.actor.Monitor@3725a2fa 11:14:41,713 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader664 with journal batch size 1000 11:14:41,715 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Set currentTerm=1, votedFor=leader664 11:14:41,715 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:14:41,715 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Updated server config: isVoting: true, peers: [PeerInfo [id=follower665, address=akka://test/user/follower665, votingState=NON_VOTING]] 11:14:41,715 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:14:42,188 AM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:42,188 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.238:25520, Removed) 11:14:42,188 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Follower): Received ElectionTimeout - switching to Candidate 11:14:42,189 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Candidate): Election: Candidate has following voting peers: [] 11:14:42,189 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Set currentTerm=2, votedFor=leader664 11:14:42,189 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Candidate): Starting new election term 2 11:14:42,189 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:14:42,190 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Candidate): Received ElectionTimeout 11:14:42,190 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Election: Leader has following peers: [follower665] 11:14:42,190 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Checking sendAppendEntries for follower follower665: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:14:42,190 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:14:42,190 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Term 2 in "AppendEntries [leaderId=leader664, 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 11:14:42,190 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Set currentTerm=2, votedFor=null 11:14:42,190 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower665: Last sync leader does not match current leader leader664, need to catch up to -1 11:14:42,190 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower665 updated: matchIndex: -1, nextIndex: 0 11:14:42,190 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Checking sendAppendEntries for follower follower665: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [02/27/2024 11:14:42.191] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower665] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7fe75bed 11:14:42,215 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:42,215 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:42,215 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:42,215 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Setting last applied to 0 11:14:42,215 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Moving last applied index from -1 to 0 11:14:42,215 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Applying state for log index 0 data zero 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: applyState called: zero 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Checking sendAppendEntries for follower follower665: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): sendAppendEntries: 0 is present for follower follower665 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Sending AppendEntries to follower follower665: AppendEntries [leaderId=leader664, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Persisting ApplyJournalEntries with index=0 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): handleAppendEntries: AppendEntries [leaderId=leader664, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Number of entries to be appended = 1 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Append entry to log zero 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Log size is now 1 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Commit index set to 0 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower665, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Setting last applied to 1 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower665: Lagging 0 entries behind leader leader664 and reached 0 (of expected -1) 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Moving last applied index from 0 to 1 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Applying state for log index 1 data one 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Setting last applied to 0 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Moving last applied index from -1 to 0 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Applying state for log index 0 data zero 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: applyState called: one 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: applyState called: zero 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Checking sendAppendEntries for follower follower665: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): sendAppendEntries: 0 is present for follower follower665 11:14:42,216 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Persisting ApplyJournalEntries with index=0 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Sending AppendEntries to follower follower665: AppendEntries [leaderId=leader664, 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]]] 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower665 updated: matchIndex: 0, nextIndex: 1 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: fakeSnapshot purging log to 0 for term 2 [WARN] [02/27/2024 11:14:42.216] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower665] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3cab393a 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Checking sendAppendEntries for follower follower665: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): sendAppendEntries: 1 is present for follower follower665 11:14:42,216 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Sending AppendEntries to follower follower665: AppendEntries [leaderId=leader664, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:14:42,216 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): handleAppendEntries: AppendEntries [leaderId=leader664, 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]]] 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Number of entries to be appended = 2 11:14:42,217 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Persisting ApplyJournalEntries with index=1 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 11:14:42,217 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Append entry to log one 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Log size is now 2 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Commit index set to 1 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower665, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower665: Lagging 0 entries behind leader leader664 and reached 1 (of expected -1) 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:14:42,217 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower665 updated: matchIndex: 1, nextIndex: 2 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Setting last applied to 1 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Moving last applied index from 0 to 1 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Applying state for log index 1 data one 11:14:42,217 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Checking sendAppendEntries for follower follower665: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: applyState called: one 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): handleAppendEntries: AppendEntries [leaderId=leader664, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Number of entries to be appended = 1 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Log size is now 2 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower665, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower665: Lagging 0 entries behind leader leader664 and reached 1 (of expected -1) 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: fakeSnapshot purging log to 0 for term 2 11:14:42,217 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Persisting ApplyJournalEntries with index=1 [WARN] [02/27/2024 11:14:42.279] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader664]: org.opendaylight.controller.cluster.common.actor.Monitor@70af072b 11:14:42,280 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader664 with journal batch size 1000 11:14:42,282 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Set currentTerm=1, votedFor=leader664 11:14:42,282 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:14:42,282 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Updated server config: isVoting: true, peers: [PeerInfo [id=follower665, address=akka://test/user/follower665, votingState=NON_VOTING]] 11:14:42,282 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Set currentTerm=2, votedFor=leader664 11:14:42,282 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:14:42,778 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.238:25520, Removed) 11:14:42,778 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Follower): Received ElectionTimeout - switching to Candidate 11:14:42,778 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Candidate): Election: Candidate has following voting peers: [] 11:14:42,779 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Set currentTerm=3, votedFor=leader664 11:14:42,779 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Candidate): Starting new election term 3 11:14:42,779 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:14:42,780 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Candidate): Received ElectionTimeout 11:14:42,780 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Election: Leader has following peers: [follower665] 11:14:42,780 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Checking sendAppendEntries for follower follower665: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:14:42,780 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:14:42,786 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:42,786 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:42,786 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:42,786 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Setting last applied to 0 11:14:42,786 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Moving last applied index from -1 to 0 11:14:42,786 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Applying state for log index 0 data zero-1 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: applyState called: zero-1 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Checking sendAppendEntries for follower follower665: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Persisting ApplyJournalEntries with index=0 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Setting last applied to 1 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Moving last applied index from 0 to 1 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Applying state for log index 1 data one-1 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: applyState called: one-1 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Checking sendAppendEntries for follower follower665: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Persisting ApplyJournalEntries with index=1 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Setting last applied to 2 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Moving last applied index from 1 to 2 11:14:42,787 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Applying state for log index 2 data two-1 11:14:42,788 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: applyState called: two-1 11:14:42,788 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Checking sendAppendEntries for follower follower665: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:14:42,788 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Persisting ApplyJournalEntries with index=2 11:14:42,788 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:14:42,898 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Term 3 in "AppendEntries [leaderId=leader664, 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 11:14:42,898 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Set currentTerm=3, votedFor=null 11:14:42,898 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower665: Lagging -2 entries behind leader leader664 and reached 1 (of expected -1) 11:14:42,898 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): handleAppendEntriesReply: follower follower665 last log term 2 for index 1 conflicts with the leader's 3 - set the follower's next index to 0 11:14:42,899 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Checking sendAppendEntries for follower follower665: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:14:42,899 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): sendAppendEntries: 0 is present for follower follower665 11:14:42,899 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Sending AppendEntries to follower follower665: AppendEntries [leaderId=leader664, 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]]] 11:14:42,899 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): handleAppendEntries: AppendEntries [leaderId=leader664, 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]]] 11:14:42,899 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Number of entries to be appended = 3 11:14:42,899 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: 2 11:14:42,900 AM [test-akka.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:42,900 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Removing entries from log starting at 0, commitIndex: 1, lastApplied: 1 11:14:42,900 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Could not remove entries - sending reply to force snapshot 11:14:42,900 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower665: Lagging 1 entries behind leader leader664 and reached 1 (of expected -1) 11:14:42,900 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower665, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 11:14:42,900 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: 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 follower665 11:14:42,900 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: lastSequenceNumber prior to capture: -1 11:14:42,900 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: CaptureSnapshotReply received by actor 11:14:42,900 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: 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=leader664, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower665, isVoting=false], ServerInfo[peerId=leader664, isVoting=true]]]] 11:14:42,900 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:14:42,900 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): sendInstallSnapshot 11:14:42,901 AM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader664 (Leader): Snapshot 351 bytes, total chunks to send: 1 11:14:42,901 AM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader664 (Leader): Next chunk: total length=351, offset=0, size=351, hashCode=236499276 11:14:42,901 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): next snapshot chunk size for follower follower665: 351 11:14:42,901 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): InstallSnapshot sent to follower Vector(user, follower665), Chunk: 1/1 11:14:42,901 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: Snapshot success - sequence number: -1 11:14:42,901 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: SnapshotComplete received 11:14:42,901 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader664, lastIncludedIndex=2, lastIncludedTerm=3, datasize=351, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower665, isVoting=false], ServerInfo[peerId=leader664, isVoting=true]]]] 11:14:42,901 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower665: Lagging 1 entries behind leader leader664 and reached 1 (of expected -1) 11:14:42,901 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:14:42,901 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): Snapshot installed from leader: leader664 11:14:42,902 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: 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=follower665, isVoting=false], ServerInfo[peerId=leader664, isVoting=true]]]] 11:14:42,902 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:14:42,902 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Snapshot success - sequence number: -1 11:14:42,902 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Moving last applied index from 1 to 2 11:14:42,902 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Set currentTerm=3, votedFor=null 11:14:42,902 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: Updated server config: isVoting: false, peers: [PeerInfo [id=leader664, address=akka://test/user/leader664, votingState=VOTING]] 11:14:42,902 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: applySnapshot called 11:14:42,902 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower665, chunkIndex=1, success=true] 11:14:42,902 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower665: SnapshotComplete received 11:14:42,902 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower665, chunkIndex=1, success=true] 11:14:42,903 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader664 (Leader): Snapshot successfully installed on follower follower665 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 11:14:42,903 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader664: fakeSnapshot purging log to 1 for term 3 11:14:42,937 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart ending 11:14:42,937 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower665-collector667#-1802971763] 11:14:42,948 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower665] 11:14:42,949 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader664-collector668#1125640585] 11:14:42,951 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader664] 11:14:42,952 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader664-collector669#948419076] 11:14:42,953 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader664] 11:14:42,954 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart starting [WARN] [02/27/2024 11:14:42.956] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower671]: org.opendaylight.controller.cluster.common.actor.Monitor@34e35fd7 11:14:42,956 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower671 with journal batch size 1000 11:14:42,958 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Set currentTerm=1, votedFor=leader670 11:14:42,958 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:14:42,958 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Updated server config: isVoting: false, peers: [PeerInfo [id=leader670, address=akka://test/user/leader670, votingState=VOTING]] 11:14:42,958 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [02/27/2024 11:14:43.058] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader670]: org.opendaylight.controller.cluster.common.actor.Monitor@5104cffe 11:14:43,59 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader670 with journal batch size 1000 11:14:43,61 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Set currentTerm=1, votedFor=leader670 11:14:43,61 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Received ReplicatedLogEntry for recovery: index: 0, size: 143 11:14:43,61 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Updated server config: isVoting: true, peers: [PeerInfo [id=follower671, address=akka://test/user/follower671, votingState=NON_VOTING]] 11:14:43,61 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:14:43,488 AM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:43,488 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.238:25520, Removed) 11:14:43,488 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Follower): Received ElectionTimeout - switching to Candidate 11:14:43,489 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Candidate): Election: Candidate has following voting peers: [] 11:14:43,489 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Set currentTerm=2, votedFor=leader670 11:14:43,489 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Candidate): Starting new election term 2 11:14:43,489 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:14:43,489 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Candidate): Received ElectionTimeout 11:14:43,490 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Election: Leader has following peers: [follower671] 11:14:43,490 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:14:43,490 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:14:43,490 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Term 2 in "AppendEntries [leaderId=leader670, 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 11:14:43,490 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Set currentTerm=2, votedFor=null 11:14:43,490 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower671: Last sync leader does not match current leader leader670, need to catch up to -1 11:14:43,490 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower671 updated: matchIndex: -1, nextIndex: 0 11:14:43,490 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [02/27/2024 11:14:43.491] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower671] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1517781e 11:14:43,511 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:43,511 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:43,511 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:43,511 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Setting last applied to 0 11:14:43,511 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Moving last applied index from -1 to 0 11:14:43,511 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Applying state for log index 0 data zero 11:14:43,511 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: applyState called: zero 11:14:43,511 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:14:43,511 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): sendAppendEntries: 0 is present for follower follower671 11:14:43,511 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Sending AppendEntries to follower follower671: AppendEntries [leaderId=leader670, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:14:43,511 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Persisting ApplyJournalEntries with index=0 11:14:43,511 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): handleAppendEntries: AppendEntries [leaderId=leader670, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Number of entries to be appended = 1 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Append entry to log zero 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Log size is now 1 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Commit index set to 0 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower671, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower671: Lagging 0 entries behind leader leader670 and reached 0 (of expected -1) 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Setting last applied to 0 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Moving last applied index from -1 to 0 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Applying state for log index 0 data zero 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: applyState called: zero 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Persisting ApplyJournalEntries with index=0 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower671 updated: matchIndex: 0, nextIndex: 1 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Setting last applied to 1 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Moving last applied index from 0 to 1 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Applying state for log index 1 data one 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: applyState called: one 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): sendAppendEntries: 1 is present for follower follower671 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Sending AppendEntries to follower follower671: AppendEntries [leaderId=leader670, 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] [02/27/2024 11:14:43.512] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower671] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@76555771 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): handleAppendEntries: AppendEntries [leaderId=leader670, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Number of entries to be appended = 1 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Append entry to log one 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Log size is now 2 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Commit index set to 1 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower671, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower671: Lagging 0 entries behind leader leader670 and reached 1 (of expected -1) 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Setting last applied to 1 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Moving last applied index from 0 to 1 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Applying state for log index 1 data one 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: applyState called: one 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Persisting ApplyJournalEntries with index=1 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Persisting ApplyJournalEntries with index=1 11:14:43,512 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: fakeSnapshot purging log to 0 for term 2 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower671 updated: matchIndex: 1, nextIndex: 2 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Setting last applied to 2 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Moving last applied index from 1 to 2 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Applying state for log index 2 data two 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: applyState called: two 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): sendAppendEntries: 2 is present for follower follower671 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Sending AppendEntries to follower follower671: AppendEntries [leaderId=leader670, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): handleAppendEntries: AppendEntries [leaderId=leader670, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Number of entries to be appended = 1 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Append entry to log two 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Log size is now 3 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Commit index set to 2 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower671, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower671: Lagging 0 entries behind leader leader670 and reached 2 (of expected -1) 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:14:43,513 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Persisting ApplyJournalEntries with index=2 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Setting last applied to 2 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Moving last applied index from 1 to 2 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Applying state for log index 2 data two 11:14:43,513 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: applyState called: two 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: fakeSnapshot purging log to 0 for term 2 11:14:43,513 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: fakeSnapshot purging log to 1 for term 2 11:14:43,513 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Persisting ApplyJournalEntries with index=2 11:14:43,513 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower671 updated: matchIndex: 2, nextIndex: 3 11:14:43,513 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:14:43,729 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower671: Lagging 0 entries behind leader leader670 and reached 2 (of expected -1) 11:14:43,729 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: fakeSnapshot purging log to 1 for term 2 [WARN] [02/27/2024 11:14:43.778] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower672]: org.opendaylight.controller.cluster.common.actor.Monitor@2edb734a 11:14:43,778 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower672 with journal batch size 1000 11:14:43,780 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Received ReplicatedLogEntry for recovery: index: 0, size: 174 11:14:43,780 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Updated server config: isVoting: true, peers: [PeerInfo [id=downPeer, address=null, votingState=NON_VOTING], PeerInfo [id=leader670, address=akka://test/user/leader670, votingState=VOTING], PeerInfo [id=follower671, address=akka://test/user/follower671, votingState=NON_VOTING]] 11:14:43,780 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:14:43,879 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader670 with journal batch size 1000 [WARN] [02/27/2024 11:14:43.880] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader670]: org.opendaylight.controller.cluster.common.actor.Monitor@4ea744ec 11:14:43,881 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Set currentTerm=2, votedFor=leader670 11:14:43,881 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Received ReplicatedLogEntry for recovery: index: 0, size: 174 11:14:43,881 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Updated server config: isVoting: true, peers: [PeerInfo [id=downPeer, address=null, votingState=NON_VOTING], PeerInfo [id=follower672, address=akka://test/user/follower672, votingState=VOTING], PeerInfo [id=follower671, address=akka://test/user/follower671, votingState=NON_VOTING]] 11:14:43,882 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:14:44,338 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.238:25520, Removed) 11:14:44,338 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Follower): Received ElectionTimeout - switching to Candidate 11:14:44,338 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Candidate): Election: Candidate has following voting peers: [follower672] 11:14:44,338 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Set currentTerm=3, votedFor=leader670 11:14:44,338 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Candidate): Starting new election term 3 11:14:44,338 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Candidate): Sending RequestVote [term=3, candidateId=leader670, lastLogIndex=-1, lastLogTerm=-1] to peer follower672 11:14:44,338 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 11:14:44,338 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 11:14:44,338 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Cluster state: [] 11:14:44,338 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=leader670, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 11:14:44,338 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Term 3 in "RequestVote [term=3, candidateId=leader670, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 11:14:44,338 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Set currentTerm=3, votedFor=null 11:14:44,339 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): In requestVote: RequestVote [term=3, candidateId=leader670, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 3, votedFor: null, lastIndex: -1, lastTerm: -1 11:14:44,339 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Set currentTerm=3, votedFor=leader670 11:14:44,339 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 11:14:44,339 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 11:14:44,339 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 11:14:44,339 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Election: Leader has following peers: [downPeer, follower672, follower671] 11:14:44,339 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower672: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:14:44,340 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:14:44,340 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 11:14:44,340 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower672: Last sync leader does not match current leader leader670, need to catch up to -1 11:14:44,340 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower672 updated: matchIndex: -1, nextIndex: 0 11:14:44,340 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower672: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [02/27/2024 11:14:44.340] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower672] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@59ecad91 11:14:44,386 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:44,386 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:44,386 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower672: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): sendAppendEntries: 0 is present for follower follower672 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Sending AppendEntries to follower follower672: AppendEntries [leaderId=leader670, 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]]] 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:14:44,387 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): handleAppendEntries: AppendEntries [leaderId=leader670, 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]]] 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:44,387 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Number of entries to be appended = 1 11:14:44,387 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:14:44,387 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Append entry to log zero-1 11:14:44,387 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:14:44,387 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 11:14:44,387 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Log size is now 1 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:44,387 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower672, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:44,387 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower672: Lagging 0 entries behind leader leader670 and reached -1 (of expected -1) 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower672: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): sendAppendEntries: 0 is present for follower follower672 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower672 updated: matchIndex: 0, nextIndex: 1 [WARN] [02/27/2024 11:14:44.387] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower672] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3390d46b 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Setting last applied to 0 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Moving last applied index from -1 to 0 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Applying state for log index 0 data zero-1 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: applyState called: zero-1 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower672: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): sendAppendEntries: 1 is present for follower follower672 11:14:44,387 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Sending AppendEntries to follower follower672: AppendEntries [leaderId=leader670, 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]]] 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): handleAppendEntries: AppendEntries [leaderId=leader670, 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]]] 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Persisting ApplyJournalEntries with index=0 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Number of entries to be appended = 1 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Append entry to log one-1 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Log size is now 2 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Commit index set to 0 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower672, logLastIndex=1, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower672: Lagging 0 entries behind leader leader670 and reached 0 (of expected -1) 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower672: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Setting last applied to 0 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): sendAppendEntries: 1 is present for follower follower672 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Moving last applied index from -1 to 0 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Applying state for log index 0 data zero-1 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower672 updated: matchIndex: 1, nextIndex: 2 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: applyState called: zero-1 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Setting last applied to 1 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Moving last applied index from 0 to 1 11:14:44,388 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Persisting ApplyJournalEntries with index=0 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Applying state for log index 1 data one-1 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: applyState called: one-1 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower672: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): sendAppendEntries: 2 is present for follower follower672 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Sending AppendEntries to follower follower672: AppendEntries [leaderId=leader670, 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]]] 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Persisting ApplyJournalEntries with index=1 11:14:44,388 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): handleAppendEntries: AppendEntries [leaderId=leader670, 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]]] 11:14:44,388 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Number of entries to be appended = 1 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Persist data SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 11:14:44,388 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 11:14:44,388 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Append entry to log two-1 11:14:44,388 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:14:44,388 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Replicate message: identifier: MockIdentifier{value=three-1}, logIndex: 3, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower672: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: -1 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): sendAppendEntries: 2 is present for follower follower672 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 11:14:44,388 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Persist data SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 11:14:44,388 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Log size is now 3 11:14:44,389 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Commit index set to 1 11:14:44,389 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower672, logLastIndex=2, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:44,389 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower672: Lagging 0 entries behind leader leader670 and reached 1 (of expected -1) 11:14:44,389 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 2 11:14:44,389 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Setting last applied to 1 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Replicate message: identifier: MockIdentifier{value=four-1}, logIndex: 4, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 11:14:44,389 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Moving last applied index from 0 to 1 11:14:44,389 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Applying state for log index 1 data one-1 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower672: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): sendAppendEntries: 2 is present for follower follower672 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:14:44,389 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: applyState called: one-1 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower672 updated: matchIndex: 2, nextIndex: 3 11:14:44,389 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Persisting ApplyJournalEntries with index=1 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Setting last applied to 2 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Moving last applied index from 1 to 2 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Applying state for log index 2 data two-1 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: applyState called: two-1 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower672: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): sendAppendEntries: 3 is present for follower follower672 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Sending AppendEntries to follower follower672: AppendEntries [leaderId=leader670, 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], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Persisting ApplyJournalEntries with index=2 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): handleAppendEntries: AppendEntries [leaderId=leader670, 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], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 11:14:44,389 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Number of entries to be appended = 2 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Append entry to log three-1 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Append entry to log four-1 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Log size is now 5 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Commit index set to 2 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower672, logLastIndex=4, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower672: Lagging 0 entries behind leader leader670 and reached 2 (of expected -1) 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 4 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Setting last applied to 2 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Moving last applied index from 1 to 2 11:14:44,389 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower672 updated: matchIndex: 4, nextIndex: 5 11:14:44,389 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Applying state for log index 2 data two-1 11:14:44,389 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 2 11:14:44,389 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Setting last applied to 3 11:14:44,389 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Moving last applied index from 2 to 3 11:14:44,389 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Applying state for log index 3 data three-1 11:14:44,390 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: applyState called: two-1 11:14:44,390 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: applyState called: three-1 11:14:44,390 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Setting last applied to 4 11:14:44,390 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Moving last applied index from 3 to 4 11:14:44,390 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Applying state for log index 4 data four-1 11:14:44,390 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Persisting ApplyJournalEntries with index=2 11:14:44,390 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: applyState called: four-1 11:14:44,390 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower672: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:14:44,390 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Commit index set to 4 11:14:44,390 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Persisting ApplyJournalEntries with index=4 11:14:44,390 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower672: Lagging 0 entries behind leader leader670 and reached 4 (of expected -1) 11:14:44,390 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 2, lastIndex(): 4 11:14:44,390 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Setting last applied to 3 11:14:44,390 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Moving last applied index from 2 to 3 11:14:44,390 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Applying state for log index 3 data three-1 11:14:44,390 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: applyState called: three-1 11:14:44,390 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672 (Follower): Setting last applied to 4 11:14:44,390 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Moving last applied index from 3 to 4 11:14:44,390 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Applying state for log index 4 data four-1 11:14:44,390 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: applyState called: four-1 11:14:44,390 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower672: Persisting ApplyJournalEntries with index=4 11:14:44,458 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Term 3 in "AppendEntries [leaderId=leader670, 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 11:14:44,458 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Set currentTerm=3, votedFor=null 11:14:44,458 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower671: Lagging -3 entries behind leader leader670 and reached 2 (of expected -1) 11:14:44,458 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): handleAppendEntriesReply: follower follower671 last log term 2 for index 2 conflicts with the leader's 3 - set the follower's next index to 1 11:14:44,458 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: true, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:14:44,458 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): sendAppendEntries: 1 is present for follower follower671 11:14:44,458 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Sending AppendEntries to follower follower671: AppendEntries [leaderId=leader670, 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]]] 11:14:44,459 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): handleAppendEntries: AppendEntries [leaderId=leader670, 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]]] 11:14:44,459 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (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 11:14:44,459 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=3, success=false, followerId=follower671, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 11:14:44,459 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower671: Lagging 2 entries behind leader leader670 and reached 2 (of expected -1) 11:14:44,459 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower671, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 11:14:44,459 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): follower follower671 last log term 2 conflicts with the leader's 3 - dec next index to 0 11:14:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Checking sendAppendEntries for follower follower671: active: true, followerNextIndex: 0, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:14:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): sendAppendEntries: 0 is present for follower follower671 11:14:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Sending AppendEntries to follower follower671: AppendEntries [leaderId=leader670, 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]]] 11:14:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): handleAppendEntries: AppendEntries [leaderId=leader670, 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]]] 11:14:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Number of entries to be appended = 5 11:14:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: -1 11:14:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] is present: existingEntryTerm: 2 11:14:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:14:44,459 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Removing entries from log starting at 1, commitIndex: 2, lastApplied: 2 11:14:44,459 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Could not remove entries - sending reply to force snapshot 11:14:44,459 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower671: Lagging 2 entries behind leader leader670 and reached 2 (of expected -1) 11:14:44,459 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower671, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 11:14:44,460 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: 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 follower671 11:14:44,460 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: lastSequenceNumber prior to capture: -1 11:14:44,460 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: CaptureSnapshotReply received by actor 11:14:44,460 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: 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=leader670, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=follower672, isVoting=true], ServerInfo[peerId=follower671, isVoting=false], ServerInfo[peerId=leader670, isVoting=true]]]] 11:14:44,460 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 11:14:44,460 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): sendInstallSnapshot 11:14:44,460 AM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader670 (Leader): Snapshot 390 bytes, total chunks to send: 1 11:14:44,460 AM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader670 (Leader): Next chunk: total length=390, offset=0, size=390, hashCode=-929342248 11:14:44,460 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): next snapshot chunk size for follower follower671: 390 11:14:44,461 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): InstallSnapshot sent to follower Vector(user, follower671), Chunk: 1/1 11:14:44,461 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: Snapshot success - sequence number: -1 11:14:44,461 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670: SnapshotComplete received 11:14:44,461 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader670, lastIncludedIndex=4, lastIncludedTerm=3, datasize=390, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=follower672, isVoting=true], ServerInfo[peerId=follower671, isVoting=false], ServerInfo[peerId=leader670, isVoting=true]]]] 11:14:44,461 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower671: Lagging 2 entries behind leader leader670 and reached 2 (of expected -1) 11:14:44,461 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:14:44,461 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): Snapshot installed from leader: leader670 11:14:44,462 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: 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=downPeer, isVoting=false], ServerInfo[peerId=follower672, isVoting=true], ServerInfo[peerId=follower671, isVoting=false], ServerInfo[peerId=leader670, isVoting=true]]]] 11:14:44,462 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 11:14:44,462 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Snapshot success - sequence number: -1 11:14:44,462 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Moving last applied index from 2 to 4 11:14:44,462 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Set currentTerm=3, votedFor=null 11:14:44,462 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: Updated server config: isVoting: false, peers: [PeerInfo [id=downPeer, address=null, votingState=NON_VOTING], PeerInfo [id=leader670, address=akka://test/user/leader670, votingState=VOTING], PeerInfo [id=follower672, address=null, votingState=VOTING]] 11:14:44,462 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: applySnapshot called 11:14:44,462 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower671, chunkIndex=1, success=true] 11:14:44,462 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower671: SnapshotComplete received 11:14:44,462 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower671, chunkIndex=1, success=true] 11:14:44,462 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader670 (Leader): Snapshot successfully installed on follower follower671 (last chunk 1) - matchIndex set to 4, nextIndex set to 5 11:14:44,487 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart ending 11:14:44,487 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower671-collector673#-1944437678] 11:14:44,498 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower671] 11:14:44,498 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader670-collector674#-528262754] 11:14:44,498 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader670] 11:14:44,498 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower672-collector675#-253659378] 11:14:44,499 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower672] 11:14:44,499 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader670-collector676#-1421760611] 11:14:44,499 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader670] [INFO] [02/27/2024 11:14:44.499] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [02/27/2024 11:14:44.501] [test-akka.actor.default-dispatcher-6] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.238:25520) 11:14:44,501 AM [test-akka.actor.default-dispatcher-10] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 11:14:44,503 AM [test-akka.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - Exiting completed [INFO] [02/27/2024 11:14:44.501] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - Exiting completed 11:14:44,503 AM [test-akka.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - Shutting down... [INFO] [02/27/2024 11:14:44.501] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - Shutting down... 11:14:44,503 AM [test-akka.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [akka://test@10.30.171.238:25520] - Successfully shut down [INFO] [02/27/2024 11:14:44.502] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.238:25520] - Successfully shut down 11:14:44,503 AM [test-akka.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 11:14:44,503 AM [test-akka.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [02/27/2024 11:14:44.503] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.238:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [02/27/2024 11:14:44.503] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.238:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [02/27/2024 11:14:44.507] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.238:25520/system/remoting-terminator] Remoting shut down. 11:14:44,507 AM [test-akka.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [02/27/2024 11:14:44.508] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger