[DEBUG] [03/07/2024 14:55:42.015] [main] [EventStream(akka://test)] logger log1-TestEventListener started 02:55:42,25 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/07/2024 14:55:42.025] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/07/2024 14:55:42.025] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/07/2024 14:55:42.059] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.169:25520] with UID [-7018282413650481677] 02:55:42,59 PM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.169:25520] with UID [-7018282413650481677] [INFO] [03/07/2024 14:55:42.059] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.169:25520] - Starting up, Akka version [2.6.21] ... 02:55:42,60 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.169:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/07/2024 14:55:42.063] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.169:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/07/2024 14:55:42.063] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.169:25520] - Started up successfully 02:55:42,63 PM [test-akka.actor.default-dispatcher-10] [INFO] Cluster - Cluster Node [akka://test@10.30.170.169:25520] - Registered cluster JMX MBean [akka:type=Cluster] 02:55:42,63 PM [test-akka.actor.default-dispatcher-10] [INFO] Cluster - Cluster Node [akka://test@10.30.170.169:25520] - Started up successfully 02:55:42,65 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.169:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 02:55:42,65 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.169:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 02:55:42,73 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerLeaderStateChanges [INFO] [03/07/2024 14:55:42.065] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.169:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/07/2024 14:55:42.065] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.169:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [WARN] [03/07/2024 14:55:42.088] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower575]: org.opendaylight.controller.cluster.common.actor.Monitor@7480fa90 [INFO] [akkaDeadLetter][03/07/2024 14:55:42.081] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower575] to Actor[akka://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:42,88 PM [test-akka.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower575] to Actor[akka://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:42,97 PM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower575 with journal batch size 1000 02:55:42,101 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower575: Set currentTerm=1, votedFor=leader574 02:55:42,101 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower575: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:55:42,101 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower575: Updated server config: isVoting: false, peers: [PeerInfo [id=leader574, address=akka://test/user/leader574, votingState=VOTING]] 02:55:42,101 PM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower575: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [03/07/2024 14:55:42.181] [test-akka.actor.default-dispatcher-10] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader574]: org.opendaylight.controller.cluster.common.actor.Monitor@91430b0 [INFO] [akkaDeadLetter][03/07/2024 14:55:42.182] [test-akka.actor.default-dispatcher-10] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader574] to Actor[akka://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:42,182 PM [test-akka.actor.default-dispatcher-10] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader574] to Actor[akka://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:42,182 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader574 with journal batch size 1000 02:55:42,185 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574: Set currentTerm=1, votedFor=leader574 02:55:42,186 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:55:42,186 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574: Updated server config: isVoting: true, peers: [PeerInfo [id=follower575, address=akka://test/user/follower575, votingState=NON_VOTING]] 02:55:42,186 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader574: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:55:42,642 PM [test-akka.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:55:42,642 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.169:25520, Removed) 02:55:42,642 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Follower): Received ElectionTimeout - switching to Candidate 02:55:42,642 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Candidate): Election: Candidate has following voting peers: [] 02:55:42,642 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574: Set currentTerm=2, votedFor=leader574 02:55:42,642 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Candidate): Starting new election term 2 02:55:42,642 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:55:42,644 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Candidate): Received ElectionTimeout 02:55:42,644 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Leader): Election: Leader has following peers: [follower575] 02:55:42,644 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Leader): Checking sendAppendEntries for follower follower575: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:55:42,644 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:55:42,644 PM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower575 (Follower): Term 2 in "AppendEntries [leaderId=leader574, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 02:55:42,644 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower575: Set currentTerm=2, votedFor=null 02:55:42,644 PM [test-akka.actor.default-dispatcher-10] [DEBUG] SyncStatusTracker - follower575: Last sync leader does not match current leader leader574, need to catch up to -1 02:55:42,644 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower575 updated: matchIndex: -1, nextIndex: 0 02:55:42,644 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader574 (Leader): Checking sendAppendEntries for follower follower575: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/07/2024 14:55:42.645] [test-akka.actor.default-dispatcher-10] [akka://test/user/follower575] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5b92aef8 [INFO] [akkaDeadLetter][03/07/2024 14:55:42.645] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower575] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower575] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:42,645 PM [test-akka.actor.default-dispatcher-12] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower575] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:42,689 PM [test-akka.actor.default-dispatcher-10] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:55:43,2 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower575: Lagging 0 entries behind leader leader574 and reached -1 (of expected -1) [WARN] [03/07/2024 14:55:43.003] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower575] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@189596ac [INFO] [akkaDeadLetter][03/07/2024 14:55:43.003] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower575] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower575] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:43,3 PM [test-akka.actor.default-dispatcher-13] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower575] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:43,41 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/roleChangeNotifier577#-754253085] 02:55:43,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower575-collector578#-214475705] 02:55:43,53 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower575] 02:55:43,54 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader574-collector579#-875152877] 02:55:43,54 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader574] 02:55:43,55 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart starting [WARN] [03/07/2024 14:55:43.059] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower581]: org.opendaylight.controller.cluster.common.actor.Monitor@4ed56d70 [INFO] [akkaDeadLetter][03/07/2024 14:55:43.059] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower581] to Actor[akka://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:43,59 PM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower581] to Actor[akka://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:43,60 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower581 with journal batch size 1000 02:55:43,61 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Set currentTerm=1, votedFor=leader580 02:55:43,61 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:55:43,61 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Updated server config: isVoting: false, peers: [PeerInfo [id=leader580, address=akka://test/user/leader580, votingState=VOTING]] 02:55:43,61 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [03/07/2024 14:55:43.062] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader580]: org.opendaylight.controller.cluster.common.actor.Monitor@268a40e5 02:55:43,63 PM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader580] 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'. [INFO] [akkaDeadLetter][03/07/2024 14:55:43.063] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader580] to Actor[akka://test/user/termination-monitor] was not delivered. [6] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:43,63 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader580 with journal batch size 1000 02:55:43,66 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Set currentTerm=1, votedFor=leader580 02:55:43,66 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:55:43,66 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Updated server config: isVoting: true, peers: [PeerInfo [id=follower581, address=akka://test/user/follower581, votingState=NON_VOTING]] 02:55:43,66 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:55:43,492 PM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:55:43,493 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.169:25520, Removed) 02:55:43,493 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Follower): Received ElectionTimeout - switching to Candidate 02:55:43,493 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate): Election: Candidate has following voting peers: [] 02:55:43,493 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Set currentTerm=2, votedFor=leader580 02:55:43,493 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate): Starting new election term 2 02:55:43,493 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:55:43,494 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate): Received ElectionTimeout 02:55:43,494 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Election: Leader has following peers: [follower581] 02:55:43,494 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:55:43,494 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:55:43,494 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Term 2 in "AppendEntries [leaderId=leader580, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 02:55:43,495 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Set currentTerm=2, votedFor=null 02:55:43,495 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower581: Last sync leader does not match current leader leader580, need to catch up to -1 02:55:43,495 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower581 updated: matchIndex: -1, nextIndex: 0 02:55:43,495 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/07/2024 14:55:43.496] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower581] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@74d9d64c [INFO] [akkaDeadLetter][03/07/2024 14:55:43.496] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower581] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower581] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:43,496 PM [test-akka.actor.default-dispatcher-15] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower581] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:43,517 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:43,517 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:43,518 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:43,518 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Setting last applied to 0 02:55:43,518 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Moving last applied index from -1 to 0 02:55:43,518 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Applying state for log index 0 data zero 02:55:43,518 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: applyState called: zero 02:55:43,518 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:55:43,518 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): sendAppendEntries: 0 is present for follower follower581 02:55:43,518 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Sending AppendEntries to follower follower581: AppendEntries [leaderId=leader580, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:55:43,518 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persisting ApplyJournalEntries with index=0 02:55:43,518 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries: AppendEntries [leaderId=leader580, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:55:43,518 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Number of entries to be appended = 1 02:55:43,518 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Append entry to log zero 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Log size is now 1 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Commit index set to 0 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Setting last applied to 1 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Moving last applied index from 0 to 1 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower581, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Applying state for log index 1 data one 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower581: Lagging 0 entries behind leader leader580 and reached 0 (of expected -1) 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Setting last applied to 0 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: applyState called: one 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Moving last applied index from -1 to 0 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Applying state for log index 0 data zero 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): sendAppendEntries: 0 is present for follower follower581 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Sending AppendEntries to follower follower581: AppendEntries [leaderId=leader580, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: applyState called: zero 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower581 updated: matchIndex: 0, nextIndex: 1 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: fakeSnapshot purging log to 0 for term 2 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): sendAppendEntries: 1 is present for follower follower581 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries: AppendEntries [leaderId=leader580, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Sending AppendEntries to follower follower581: AppendEntries [leaderId=leader580, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Number of entries to be appended = 2 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Append entry to log one 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persisting ApplyJournalEntries with index=1 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Log size is now 2 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Commit index set to 1 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower581, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower581: Lagging 0 entries behind leader leader580 and reached 1 (of expected -1) 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower581 updated: matchIndex: 1, nextIndex: 2 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Setting last applied to 1 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Moving last applied index from 0 to 1 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Applying state for log index 1 data one 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:55:43,519 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:55:43,519 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: applyState called: one 02:55:43,520 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:55:43,520 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Persisting ApplyJournalEntries with index=0 02:55:43,520 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Setting last applied to 2 02:55:43,520 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Moving last applied index from 1 to 2 02:55:43,520 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Applying state for log index 2 data two 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries: AppendEntries [leaderId=leader580, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:43,520 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: applyState called: two 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Number of entries to be appended = 1 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:55:43,520 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Log size is now 2 02:55:43,520 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): sendAppendEntries: 2 is present for follower follower581 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower581, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:43,520 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Sending AppendEntries to follower follower581: AppendEntries [leaderId=leader580, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower581: Lagging 0 entries behind leader leader580 and reached 1 (of expected -1) 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: fakeSnapshot purging log to 0 for term 2 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Persisting ApplyJournalEntries with index=1 02:55:43,520 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persisting ApplyJournalEntries with index=2 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries: AppendEntries [leaderId=leader580, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Number of entries to be appended = 1 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:55:43,520 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: fakeSnapshot purging log to 1 for term 2 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Append entry to log two 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:55:43,520 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): sendAppendEntries: 2 is present for follower follower581 02:55:43,530 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:55:43,520 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Log size is now 2 02:55:43,530 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Commit index set to 2 02:55:43,530 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower581, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:43,530 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower581: Lagging 0 entries behind leader leader580 and reached 2 (of expected -1) 02:55:43,530 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:55:43,530 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Setting last applied to 2 02:55:43,530 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Moving last applied index from 1 to 2 02:55:43,531 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower581 updated: matchIndex: 2, nextIndex: 3 02:55:43,531 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Applying state for log index 2 data two 02:55:43,531 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 02:55:43,531 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: applyState called: two 02:55:43,531 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Persisting ApplyJournalEntries with index=2 [WARN] [03/07/2024 14:55:43.531] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower581] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@163e2f76 [INFO] [akkaDeadLetter][03/07/2024 14:55:43.531] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower581] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower581] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:43,531 PM [test-akka.actor.default-dispatcher-15] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower581] 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] [03/07/2024 14:55:43.581] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader580]: org.opendaylight.controller.cluster.common.actor.Monitor@196a22dd [INFO] [akkaDeadLetter][03/07/2024 14:55:43.581] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader580] to Actor[akka://test/user/termination-monitor] was not delivered. [9] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:43,581 PM [test-akka.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader580] to Actor[akka://test/user/termination-monitor] was not delivered. [9] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:43,582 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader580 with journal batch size 1000 02:55:43,585 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Set currentTerm=1, votedFor=leader580 02:55:43,585 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:55:43,585 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Updated server config: isVoting: true, peers: [PeerInfo [id=follower581, address=akka://test/user/follower581, votingState=NON_VOTING]] 02:55:43,585 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Set currentTerm=2, votedFor=leader580 02:55:43,585 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:55:44,52 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.169:25520, Removed) 02:55:44,52 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Follower): Received ElectionTimeout - switching to Candidate 02:55:44,52 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate): Election: Candidate has following voting peers: [] 02:55:44,52 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Set currentTerm=3, votedFor=leader580 02:55:44,53 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate): Starting new election term 3 02:55:44,53 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 02:55:44,54 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate): Received ElectionTimeout 02:55:44,54 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Election: Leader has following peers: [follower581] 02:55:44,54 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:55:44,54 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 02:55:44,90 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:44,90 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:44,90 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:44,90 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Setting last applied to 0 02:55:44,90 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Moving last applied index from -1 to 0 02:55:44,90 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Applying state for log index 0 data zero-1 02:55:44,91 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: applyState called: zero-1 02:55:44,91 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:55:44,91 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persisting ApplyJournalEntries with index=0 02:55:44,91 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:44,91 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:55:44,91 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:55:44,91 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:44,91 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Setting last applied to 1 02:55:44,91 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Moving last applied index from 0 to 1 02:55:44,91 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Applying state for log index 1 data one-1 02:55:44,91 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: applyState called: one-1 02:55:44,91 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Checking sendAppendEntries for follower follower581: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:55:44,91 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Persisting ApplyJournalEntries with index=1 02:55:44,92 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:55:44,172 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Term 3 in "AppendEntries [leaderId=leader580, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 02:55:44,172 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Set currentTerm=3, votedFor=null 02:55:44,172 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower581: Lagging -3 entries behind leader leader580 and reached 2 (of expected -1) 02:55:44,173 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): handleAppendEntriesReply: follower follower581 lastIndex 2 is ahead of our lastIndex 1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 02:55:44,173 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: 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 follower581 02:55:44,173 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: lastSequenceNumber prior to capture: -1 02:55:44,175 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: CaptureSnapshotReply received by actor 02:55:44,177 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: 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=leader580, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower581, isVoting=false], ServerInfo[peerId=leader580, isVoting=true]]]] 02:55:44,177 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 02:55:44,178 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): sendInstallSnapshot 02:55:44,178 PM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader580 (Leader): Snapshot 333 bytes, total chunks to send: 1 02:55:44,178 PM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader580 (Leader): Next chunk: total length=333, offset=0, size=333, hashCode=878051978 02:55:44,178 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): next snapshot chunk size for follower follower581: 333 02:55:44,178 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): InstallSnapshot sent to follower Vector(user, follower581), Chunk: 1/1 02:55:44,178 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: Snapshot success - sequence number: -1 02:55:44,178 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: SnapshotComplete received 02:55:44,178 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader580, lastIncludedIndex=1, lastIncludedTerm=3, datasize=333, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower581, isVoting=false], ServerInfo[peerId=leader580, isVoting=true]]]] 02:55:44,178 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower581: Lagging -1 entries behind leader leader580 and reached 2 (of expected -1) 02:55:44,178 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:55:44,178 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): Snapshot installed from leader: leader580 02:55:44,179 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: 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=follower581, isVoting=false], ServerInfo[peerId=leader580, isVoting=true]]]] 02:55:44,179 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 02:55:44,179 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Snapshot success - sequence number: -1 02:55:44,179 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Moving last applied index from 2 to 1 02:55:44,179 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Set currentTerm=3, votedFor=null 02:55:44,179 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: Updated server config: isVoting: false, peers: [PeerInfo [id=leader580, address=akka://test/user/leader580, votingState=VOTING]] 02:55:44,179 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: applySnapshot called 02:55:44,179 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower581, chunkIndex=1, success=true] 02:55:44,179 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower581: SnapshotComplete received 02:55:44,179 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower581, chunkIndex=1, success=true] 02:55:44,180 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader580 (Leader): Snapshot successfully installed on follower follower581 (last chunk 1) - matchIndex set to 1, nextIndex set to 2 02:55:44,180 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader580: fakeSnapshot purging log to 0 for term 3 02:55:44,201 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart ending 02:55:44,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower581-collector583#-260185487] 02:55:44,212 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower581] 02:55:44,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader580-collector584#-629438088] 02:55:44,213 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader580] 02:55:44,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader580-collector585#1138632505] 02:55:44,214 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader580] 02:55:44,215 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart starting [WARN] [03/07/2024 14:55:44.217] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower587]: org.opendaylight.controller.cluster.common.actor.Monitor@7e633a3f [INFO] [akkaDeadLetter][03/07/2024 14:55:44.218] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower587] to Actor[akka://test/user/termination-monitor] was not delivered. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:44,218 PM [test-akka.actor.default-dispatcher-15] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower587] to Actor[akka://test/user/termination-monitor] was not delivered. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 02:55:44,218 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower587 with journal batch size 1000 02:55:44,220 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Set currentTerm=1, votedFor=leader586 02:55:44,221 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:55:44,221 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Updated server config: isVoting: false, peers: [PeerInfo [id=leader586, address=akka://test/user/leader586, votingState=VOTING]] 02:55:44,221 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [03/07/2024 14:55:44.223] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader586]: org.opendaylight.controller.cluster.common.actor.Monitor@31c3023b 02:55:44,223 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader586 with journal batch size 1000 02:55:44,224 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Set currentTerm=1, votedFor=leader586 02:55:44,224 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:55:44,224 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Updated server config: isVoting: true, peers: [PeerInfo [id=follower587, address=akka://test/user/follower587, votingState=NON_VOTING]] 02:55:44,225 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:55:44,712 PM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:55:44,712 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.169:25520, Removed) 02:55:44,712 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Follower): Received ElectionTimeout - switching to Candidate 02:55:44,713 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate): Election: Candidate has following voting peers: [] 02:55:44,713 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Set currentTerm=2, votedFor=leader586 02:55:44,713 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate): Starting new election term 2 02:55:44,713 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:55:44,714 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate): Received ElectionTimeout 02:55:44,714 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Election: Leader has following peers: [follower587] 02:55:44,714 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:55:44,714 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:55:44,714 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Term 2 in "AppendEntries [leaderId=leader586, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 02:55:44,714 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Set currentTerm=2, votedFor=null 02:55:44,715 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower587: Last sync leader does not match current leader leader586, need to catch up to -1 02:55:44,715 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower587 updated: matchIndex: -1, nextIndex: 0 02:55:44,715 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/07/2024 14:55:44.715] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower587] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4a93b6cb 02:55:44,730 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:44,730 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:44,730 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:44,730 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Setting last applied to 0 02:55:44,730 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Moving last applied index from -1 to 0 02:55:44,730 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Applying state for log index 0 data zero 02:55:44,730 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: applyState called: zero 02:55:44,730 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:55:44,730 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): sendAppendEntries: 0 is present for follower follower587 02:55:44,730 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Sending AppendEntries to follower follower587: AppendEntries [leaderId=leader586, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:55:44,730 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persisting ApplyJournalEntries with index=0 02:55:44,730 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries: AppendEntries [leaderId=leader586, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Number of entries to be appended = 1 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Append entry to log zero 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Setting last applied to 1 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Moving last applied index from 0 to 1 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Log size is now 1 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Applying state for log index 1 data one 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Commit index set to 0 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: applyState called: one 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower587, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower587: Lagging 0 entries behind leader leader586 and reached 0 (of expected -1) 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): sendAppendEntries: 0 is present for follower follower587 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Setting last applied to 0 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Moving last applied index from -1 to 0 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Applying state for log index 0 data zero 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Sending AppendEntries to follower follower587: AppendEntries [leaderId=leader586, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: applyState called: zero 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persisting ApplyJournalEntries with index=1 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower587 updated: matchIndex: 0, nextIndex: 1 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries: AppendEntries [leaderId=leader586, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: fakeSnapshot purging log to 0 for term 2 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Number of entries to be appended = 2 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Append entry to log one 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): sendAppendEntries: 1 is present for follower follower587 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Sending AppendEntries to follower follower587: AppendEntries [leaderId=leader586, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Log size is now 2 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Commit index set to 1 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower587, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:44,731 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower587: Lagging 0 entries behind leader leader586 and reached 1 (of expected -1) 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 02:55:44,731 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Setting last applied to 1 02:55:44,732 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Moving last applied index from 0 to 1 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower587 updated: matchIndex: 1, nextIndex: 2 02:55:44,732 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Applying state for log index 1 data one 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:55:44,732 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: applyState called: one 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:44,732 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Persisting ApplyJournalEntries with index=0 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Setting last applied to 2 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Moving last applied index from 1 to 2 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Applying state for log index 2 data two 02:55:44,732 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries: AppendEntries [leaderId=leader586, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: applyState called: two 02:55:44,732 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Number of entries to be appended = 1 02:55:44,732 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:55:44,732 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 02:55:44,732 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Log size is now 2 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): sendAppendEntries: 2 is present for follower follower587 02:55:44,732 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower587, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Sending AppendEntries to follower follower587: AppendEntries [leaderId=leader586, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 02:55:44,732 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower587: Lagging 0 entries behind leader leader586 and reached 1 (of expected -1) 02:55:44,732 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: fakeSnapshot purging log to 0 for term 2 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persisting ApplyJournalEntries with index=2 02:55:44,732 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Persisting ApplyJournalEntries with index=1 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: fakeSnapshot purging log to 1 for term 2 02:55:44,732 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries: AppendEntries [leaderId=leader586, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): sendAppendEntries: 2 is present for follower follower587 02:55:44,732 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Number of entries to be appended = 1 02:55:44,732 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:55:44,732 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Append entry to log two 02:55:44,732 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:55:44,732 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:55:44,732 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:55:44,732 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Log size is now 2 02:55:44,732 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Commit index set to 2 02:55:44,732 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower587, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:44,732 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower587: Lagging 0 entries behind leader leader586 and reached 2 (of expected -1) 02:55:44,732 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:55:44,733 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Setting last applied to 2 02:55:44,733 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower587 updated: matchIndex: 2, nextIndex: 3 02:55:44,733 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Moving last applied index from 1 to 2 02:55:44,733 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Applying state for log index 2 data two 02:55:44,733 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 02:55:44,733 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: applyState called: two 02:55:44,733 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Persisting ApplyJournalEntries with index=2 [WARN] [03/07/2024 14:55:44.733] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower587] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@51c1d29 [WARN] [03/07/2024 14:55:44.794] [test-akka.actor.default-dispatcher-10] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader586]: org.opendaylight.controller.cluster.common.actor.Monitor@2f23ce27 02:55:44,794 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader586 with journal batch size 1000 02:55:44,796 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Set currentTerm=1, votedFor=leader586 02:55:44,796 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:55:44,797 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Updated server config: isVoting: true, peers: [PeerInfo [id=follower587, address=akka://test/user/follower587, votingState=NON_VOTING]] 02:55:44,797 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Set currentTerm=2, votedFor=leader586 02:55:44,797 PM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:55:45,302 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.169:25520, Removed) 02:55:45,302 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Follower): Received ElectionTimeout - switching to Candidate 02:55:45,302 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate): Election: Candidate has following voting peers: [] 02:55:45,302 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Set currentTerm=3, votedFor=leader586 02:55:45,302 PM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate): Starting new election term 3 02:55:45,302 PM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 02:55:45,303 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate): Received ElectionTimeout 02:55:45,303 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Election: Leader has following peers: [follower587] 02:55:45,304 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:55:45,304 PM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 02:55:45,304 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Term 3 in "AppendEntries [leaderId=leader586, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 02:55:45,304 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Set currentTerm=3, votedFor=null 02:55:45,304 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower587: Lagging -3 entries behind leader leader586 and reached 2 (of expected -1) 02:55:45,304 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): handleAppendEntriesReply: follower follower587 lastIndex 2 is ahead of our lastIndex -1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 02:55:45,304 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 02:55:45,304 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: 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 follower587 02:55:45,304 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: lastSequenceNumber prior to capture: -1 02:55:45,305 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: CaptureSnapshotReply received by actor 02:55:45,305 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=3, electionVotedFor=leader586, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower587, isVoting=false], ServerInfo[peerId=leader586, isVoting=true]]]] 02:55:45,305 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 02:55:45,305 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): sendInstallSnapshot 02:55:45,305 PM [test-akka.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader586 (Leader): Snapshot 171 bytes, total chunks to send: 1 02:55:45,305 PM [test-akka.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader586 (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 02:55:45,305 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): next snapshot chunk size for follower follower587: 171 02:55:45,305 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): InstallSnapshot sent to follower Vector(user, follower587), Chunk: 1/1 02:55:45,305 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Snapshot success - sequence number: -1 02:55:45,305 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: SnapshotComplete received 02:55:45,305 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader586, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower587, isVoting=false], ServerInfo[peerId=leader586, isVoting=true]]]] 02:55:45,305 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower587: Lagging -3 entries behind leader leader586 and reached 2 (of expected -1) 02:55:45,305 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:55:45,305 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Snapshot installed from leader: leader586 02:55:45,306 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: 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=follower587, isVoting=false], ServerInfo[peerId=leader586, isVoting=true]]]] 02:55:45,306 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 02:55:45,306 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Snapshot success - sequence number: -1 02:55:45,306 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Moving last applied index from 2 to -1 02:55:45,306 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Set currentTerm=3, votedFor=null 02:55:45,306 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Updated server config: isVoting: false, peers: [PeerInfo [id=leader586, address=akka://test/user/leader586, votingState=VOTING]] 02:55:45,306 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: applySnapshot called 02:55:45,306 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower587, chunkIndex=1, success=true] 02:55:45,307 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: SnapshotComplete received 02:55:45,307 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower587, chunkIndex=1, success=true] 02:55:45,307 PM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Snapshot successfully installed on follower follower587 (last chunk 1) - matchIndex set to -1, nextIndex set to 0 02:55:45,352 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:45,352 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:45,352 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:45,352 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Setting last applied to 0 02:55:45,352 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Moving last applied index from -1 to 0 02:55:45,352 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Applying state for log index 0 data zero-1 02:55:45,352 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: applyState called: zero-1 02:55:45,352 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:55:45,352 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): sendAppendEntries: 0 is present for follower follower587 02:55:45,352 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Sending AppendEntries to follower follower587: AppendEntries [leaderId=leader586, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 02:55:45,352 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: Persisting ApplyJournalEntries with index=0 02:55:45,352 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:45,352 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries: AppendEntries [leaderId=leader586, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 02:55:45,352 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Number of entries to be appended = 1 02:55:45,352 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:55:45,353 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Append entry to log zero-1 02:55:45,353 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:45,353 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:45,353 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Log size is now 1 02:55:45,353 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Commit index set to 0 02:55:45,353 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower587, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:45,353 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower587: Lagging 0 entries behind leader leader586 and reached 0 (of expected -1) 02:55:45,353 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 02:55:45,353 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587 (Follower): Setting last applied to 0 02:55:45,353 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Moving last applied index from -1 to 0 02:55:45,353 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower587 updated: matchIndex: 0, nextIndex: 1 02:55:45,353 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Applying state for log index 0 data zero-1 02:55:45,353 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader586 (Leader): Checking sendAppendEntries for follower follower587: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:55:45,353 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: applyState called: zero-1 02:55:45,353 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower587: Persisting ApplyJournalEntries with index=0 02:55:45,402 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart ending 02:55:45,402 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower587-collector589#2056252294] 02:55:45,413 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower587] 02:55:45,413 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader586-collector590#421423563] 02:55:45,414 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader586] 02:55:45,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader586-collector591#-395431703] 02:55:45,414 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader586] 02:55:45,415 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart starting 02:55:45,417 PM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower593 with journal batch size 1000 [WARN] [03/07/2024 14:55:45.417] [test-akka.actor.default-dispatcher-10] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower593]: org.opendaylight.controller.cluster.common.actor.Monitor@551f8f61 02:55:45,425 PM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader592 with journal batch size 1000 [WARN] [03/07/2024 14:55:45.426] [test-akka.actor.default-dispatcher-10] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader592]: org.opendaylight.controller.cluster.common.actor.Monitor@4bc74468 02:55:45,426 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Set currentTerm=1, votedFor=leader592 02:55:45,426 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:55:45,426 PM [test-akka.actor.default-dispatcher-10] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Updated server config: isVoting: false, peers: [PeerInfo [id=leader592, address=akka://test/user/leader592, votingState=VOTING]] 02:55:45,426 PM [test-akka.actor.default-dispatcher-10] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:55:45,428 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Set currentTerm=1, votedFor=leader592 02:55:45,428 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:55:45,428 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Updated server config: isVoting: true, peers: [PeerInfo [id=follower593, address=akka://test/user/follower593, votingState=NON_VOTING]] 02:55:45,428 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:55:45,912 PM [test-akka.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:55:45,912 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.169:25520, Removed) 02:55:45,912 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Follower): Received ElectionTimeout - switching to Candidate 02:55:45,912 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate): Election: Candidate has following voting peers: [] 02:55:45,912 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Set currentTerm=2, votedFor=leader592 02:55:45,912 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate): Starting new election term 2 02:55:45,912 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:55:45,913 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate): Received ElectionTimeout 02:55:45,913 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Election: Leader has following peers: [follower593] 02:55:45,913 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:55:45,913 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:55:45,913 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Term 2 in "AppendEntries [leaderId=leader592, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 02:55:45,914 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Set currentTerm=2, votedFor=null 02:55:45,914 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower593: Last sync leader does not match current leader leader592, need to catch up to -1 02:55:45,914 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower593 updated: matchIndex: -1, nextIndex: 0 02:55:45,914 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/07/2024 14:55:45.915] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower593] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@448870cd 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Setting last applied to 0 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Moving last applied index from -1 to 0 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Applying state for log index 0 data zero 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: applyState called: zero 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): sendAppendEntries: 0 is present for follower follower593 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Sending AppendEntries to follower follower593: AppendEntries [leaderId=leader592, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persisting ApplyJournalEntries with index=0 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:45,930 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleAppendEntries: AppendEntries [leaderId=leader592, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:55:45,930 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Number of entries to be appended = 1 02:55:45,930 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:45,930 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Append entry to log zero 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:45,930 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:45,930 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:45,930 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Log size is now 1 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Setting last applied to 1 02:55:45,930 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Commit index set to 0 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Moving last applied index from 0 to 1 02:55:45,930 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Applying state for log index 1 data one 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower593, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:45,931 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: applyState called: one 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower593: Lagging 0 entries behind leader leader592 and reached 0 (of expected -1) 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Setting last applied to 0 02:55:45,931 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Moving last applied index from -1 to 0 02:55:45,931 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): sendAppendEntries: 0 is present for follower follower593 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Applying state for log index 0 data zero 02:55:45,931 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Sending AppendEntries to follower follower593: AppendEntries [leaderId=leader592, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: applyState called: zero 02:55:45,931 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower593 updated: matchIndex: 0, nextIndex: 1 02:55:45,931 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: fakeSnapshot purging log to 0 for term 2 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleAppendEntries: AppendEntries [leaderId=leader592, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:45,931 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Number of entries to be appended = 2 02:55:45,931 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): sendAppendEntries: 1 is present for follower follower593 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Append entry to log one 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:45,931 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Sending AppendEntries to follower follower593: AppendEntries [leaderId=leader592, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Log size is now 2 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Commit index set to 1 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower593, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:45,931 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persisting ApplyJournalEntries with index=1 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower593: Lagging 0 entries behind leader leader592 and reached 1 (of expected -1) 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Setting last applied to 1 02:55:45,931 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Moving last applied index from 0 to 1 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Applying state for log index 1 data one 02:55:45,931 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower593 updated: matchIndex: 1, nextIndex: 2 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: applyState called: one 02:55:45,931 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Persisting ApplyJournalEntries with index=0 02:55:45,931 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleAppendEntries: AppendEntries [leaderId=leader592, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:45,932 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Number of entries to be appended = 1 02:55:45,932 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:55:45,932 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:55:45,932 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Log size is now 2 02:55:45,932 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower593, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:45,932 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower593: Lagging 0 entries behind leader leader592 and reached 1 (of expected -1) 02:55:45,932 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: fakeSnapshot purging log to 0 for term 2 02:55:45,932 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Persisting ApplyJournalEntries with index=1 [WARN] [03/07/2024 14:55:45.932] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower593] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5df07cbe [WARN] [03/07/2024 14:55:45.994] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader592]: org.opendaylight.controller.cluster.common.actor.Monitor@5ae31d2b 02:55:45,995 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader592 with journal batch size 1000 02:55:45,999 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Set currentTerm=1, votedFor=leader592 02:55:45,999 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:55:45,999 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Updated server config: isVoting: true, peers: [PeerInfo [id=follower593, address=akka://test/user/follower593, votingState=NON_VOTING]] 02:55:45,999 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Set currentTerm=2, votedFor=leader592 02:55:45,999 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:55:46,452 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.169:25520, Removed) 02:55:46,452 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Follower): Received ElectionTimeout - switching to Candidate 02:55:46,453 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate): Election: Candidate has following voting peers: [] 02:55:46,453 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Set currentTerm=3, votedFor=leader592 02:55:46,453 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate): Starting new election term 3 02:55:46,453 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 02:55:46,454 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate): Received ElectionTimeout 02:55:46,454 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Election: Leader has following peers: [follower593] 02:55:46,454 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:55:46,454 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 02:55:46,455 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:46,455 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:46,455 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:46,455 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Setting last applied to 0 02:55:46,455 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Moving last applied index from -1 to 0 02:55:46,455 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Applying state for log index 0 data zero-1 02:55:46,455 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: applyState called: zero-1 02:55:46,455 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:55:46,455 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persisting ApplyJournalEntries with index=0 02:55:46,455 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:46,455 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:55:46,455 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Setting last applied to 1 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Moving last applied index from 0 to 1 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Applying state for log index 1 data one-1 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: applyState called: one-1 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persisting ApplyJournalEntries with index=1 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Setting last applied to 2 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Moving last applied index from 1 to 2 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Applying state for log index 2 data two-1 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: applyState called: two-1 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Persisting ApplyJournalEntries with index=2 02:55:46,456 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:55:46,572 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Term 3 in "AppendEntries [leaderId=leader592, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 02:55:46,572 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Set currentTerm=3, votedFor=null 02:55:46,572 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower593: Lagging -2 entries behind leader leader592 and reached 1 (of expected -1) 02:55:46,572 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): handleAppendEntriesReply: follower follower593 last log term 2 for index 1 conflicts with the leader's 3 - set the follower's next index to 0 02:55:46,572 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Checking sendAppendEntries for follower follower593: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:55:46,572 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): sendAppendEntries: 0 is present for follower follower593 02:55:46,572 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Sending AppendEntries to follower follower593: AppendEntries [leaderId=leader592, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 02:55:46,573 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleAppendEntries: AppendEntries [leaderId=leader592, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 02:55:46,573 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Number of entries to be appended = 3 02:55:46,573 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: 2 02:55:46,573 PM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:55:46,573 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Removing entries from log starting at 0, commitIndex: 1, lastApplied: 1 02:55:46,573 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Could not remove entries - sending reply to force snapshot 02:55:46,573 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower593: Lagging 1 entries behind leader leader592 and reached 1 (of expected -1) 02:55:46,573 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower593, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 02:55:46,573 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: 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 follower593 02:55:46,573 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: lastSequenceNumber prior to capture: -1 02:55:46,574 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: CaptureSnapshotReply received by actor 02:55:46,574 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: 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=leader592, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower593, isVoting=false], ServerInfo[peerId=leader592, isVoting=true]]]] 02:55:46,574 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 02:55:46,574 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): sendInstallSnapshot 02:55:46,574 PM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader592 (Leader): Snapshot 351 bytes, total chunks to send: 1 02:55:46,574 PM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader592 (Leader): Next chunk: total length=351, offset=0, size=351, hashCode=236499276 02:55:46,574 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): next snapshot chunk size for follower follower593: 351 02:55:46,574 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): InstallSnapshot sent to follower Vector(user, follower593), Chunk: 1/1 02:55:46,574 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: Snapshot success - sequence number: -1 02:55:46,574 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: SnapshotComplete received 02:55:46,574 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader592, lastIncludedIndex=2, lastIncludedTerm=3, datasize=351, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower593, isVoting=false], ServerInfo[peerId=leader592, isVoting=true]]]] 02:55:46,574 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower593: Lagging 1 entries behind leader leader592 and reached 1 (of expected -1) 02:55:46,575 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:55:46,575 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): Snapshot installed from leader: leader592 02:55:46,575 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: 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=follower593, isVoting=false], ServerInfo[peerId=leader592, isVoting=true]]]] 02:55:46,575 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 02:55:46,575 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Snapshot success - sequence number: -1 02:55:46,576 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Moving last applied index from 1 to 2 02:55:46,576 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Set currentTerm=3, votedFor=null 02:55:46,576 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: Updated server config: isVoting: false, peers: [PeerInfo [id=leader592, address=akka://test/user/leader592, votingState=VOTING]] 02:55:46,576 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: applySnapshot called 02:55:46,576 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower593, chunkIndex=1, success=true] 02:55:46,576 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower593: SnapshotComplete received 02:55:46,576 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower593, chunkIndex=1, success=true] 02:55:46,576 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader592 (Leader): Snapshot successfully installed on follower follower593 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 02:55:46,576 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader592: fakeSnapshot purging log to 1 for term 3 02:55:46,606 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart ending 02:55:46,606 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower593-collector595#-1873825176] 02:55:46,617 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower593] 02:55:46,617 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader592-collector596#1155812393] 02:55:46,617 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader592] 02:55:46,618 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader592-collector597#589075838] 02:55:46,618 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader592] 02:55:46,619 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart starting [WARN] [03/07/2024 14:55:46.621] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower599]: org.opendaylight.controller.cluster.common.actor.Monitor@72b291cb 02:55:46,622 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower599 with journal batch size 1000 02:55:46,624 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Set currentTerm=1, votedFor=leader598 02:55:46,624 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:55:46,625 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Updated server config: isVoting: false, peers: [PeerInfo [id=leader598, address=akka://test/user/leader598, votingState=VOTING]] 02:55:46,625 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [03/07/2024 14:55:46.723] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader598]: org.opendaylight.controller.cluster.common.actor.Monitor@3fc18cf0 02:55:46,723 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader598 with journal batch size 1000 02:55:46,725 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Set currentTerm=1, votedFor=leader598 02:55:46,725 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Received ReplicatedLogEntry for recovery: index: 0, size: 143 02:55:46,725 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Updated server config: isVoting: true, peers: [PeerInfo [id=follower599, address=akka://test/user/follower599, votingState=NON_VOTING]] 02:55:46,725 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:55:47,152 PM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:55:47,152 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.169:25520, Removed) 02:55:47,152 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Follower): Received ElectionTimeout - switching to Candidate 02:55:47,152 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): Election: Candidate has following voting peers: [] 02:55:47,152 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Set currentTerm=2, votedFor=leader598 02:55:47,152 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): Starting new election term 2 02:55:47,152 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:55:47,154 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): Received ElectionTimeout 02:55:47,154 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Election: Leader has following peers: [follower599] 02:55:47,154 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:55:47,154 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 02:55:47,154 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Term 2 in "AppendEntries [leaderId=leader598, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 02:55:47,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Set currentTerm=2, votedFor=null 02:55:47,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower599: Last sync leader does not match current leader leader598, need to catch up to -1 02:55:47,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower599 updated: matchIndex: -1, nextIndex: 0 02:55:47,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/07/2024 14:55:47.155] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower599] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@495a025e 02:55:47,178 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:47,178 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:47,178 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:47,178 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 0 02:55:47,178 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from -1 to 0 02:55:47,178 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 0 data zero 02:55:47,178 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: zero 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 0 is present for follower follower599 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower599: AppendEntries [leaderId=leader598, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persisting ApplyJournalEntries with index=0 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Number of entries to be appended = 1 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Append entry to log zero 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Log size is now 1 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Commit index set to 0 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower599, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower599: Lagging 0 entries behind leader leader598 and reached 0 (of expected -1) 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 1 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from 0 to 1 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 1 data one 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Setting last applied to 0 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Moving last applied index from -1 to 0 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Applying state for log index 0 data zero 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: one 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: applyState called: zero 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 0 is present for follower follower599 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower599: AppendEntries [leaderId=leader598, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:47,179 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Persisting ApplyJournalEntries with index=0 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower599 updated: matchIndex: 0, nextIndex: 1 02:55:47,179 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: fakeSnapshot purging log to 0 for term 2 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Number of entries to be appended = 2 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 1 is present for follower follower599 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower599: AppendEntries [leaderId=leader598, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Append entry to log one 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Log size is now 2 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Commit index set to 1 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persisting ApplyJournalEntries with index=1 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower599, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower599: Lagging 0 entries behind leader leader598 and reached 1 (of expected -1) 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Setting last applied to 1 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Moving last applied index from 0 to 1 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Applying state for log index 1 data one 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower599 updated: matchIndex: 1, nextIndex: 2 02:55:47,180 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: applyState called: one 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 2 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from 1 to 2 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 2 data two 02:55:47,180 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: two 02:55:47,180 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Number of entries to be appended = 1 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 2 is present for follower follower599 02:55:47,180 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 02:55:47,180 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower599: AppendEntries [leaderId=leader598, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 02:55:47,180 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Log size is now 2 02:55:47,180 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower599, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persisting ApplyJournalEntries with index=2 02:55:47,180 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower599: Lagging 0 entries behind leader leader598 and reached 1 (of expected -1) 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:55:47,180 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: fakeSnapshot purging log to 0 for term 2 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: fakeSnapshot purging log to 1 for term 2 02:55:47,180 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 2 is present for follower follower599 02:55:47,180 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Persisting ApplyJournalEntries with index=1 02:55:47,180 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 02:55:47,180 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Number of entries to be appended = 1 02:55:47,181 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:55:47,181 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Append entry to log two 02:55:47,181 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:55:47,181 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 02:55:47,181 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Log size is now 2 02:55:47,181 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Commit index set to 2 02:55:47,181 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower599, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:47,181 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower599: Lagging 0 entries behind leader leader598 and reached 2 (of expected -1) 02:55:47,181 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:55:47,181 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Setting last applied to 2 02:55:47,181 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Moving last applied index from 1 to 2 02:55:47,181 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Applying state for log index 2 data two 02:55:47,181 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower599 updated: matchIndex: 2, nextIndex: 3 02:55:47,181 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: applyState called: two 02:55:47,181 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 02:55:47,181 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Persisting ApplyJournalEntries with index=2 [WARN] [03/07/2024 14:55:47.181] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower599] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5535f60e 02:55:47,392 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower599: Lagging 0 entries behind leader leader598 and reached 2 (of expected -1) 02:55:47,392 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: fakeSnapshot purging log to 1 for term 2 [WARN] [03/07/2024 14:55:47.444] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower600]: org.opendaylight.controller.cluster.common.actor.Monitor@5fd47ca6 02:55:47,445 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower600 with journal batch size 1000 02:55:47,446 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Received ReplicatedLogEntry for recovery: index: 0, size: 174 02:55:47,446 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Updated server config: isVoting: true, peers: [PeerInfo [id=leader598, address=akka://test/user/leader598, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING], PeerInfo [id=follower599, address=akka://test/user/follower599, votingState=NON_VOTING]] 02:55:47,447 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [03/07/2024 14:55:47.448] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader598]: org.opendaylight.controller.cluster.common.actor.Monitor@1c877b30 02:55:47,449 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader598 with journal batch size 1000 02:55:47,450 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Set currentTerm=2, votedFor=leader598 02:55:47,450 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Received ReplicatedLogEntry for recovery: index: 0, size: 174 02:55:47,451 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Updated server config: isVoting: true, peers: [PeerInfo [id=follower600, address=akka://test/user/follower600, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING], PeerInfo [id=follower599, address=akka://test/user/follower599, votingState=NON_VOTING]] 02:55:47,451 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 02:55:47,902 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.169:25520, Removed) 02:55:47,902 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Follower): Received ElectionTimeout - switching to Candidate 02:55:47,902 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): Election: Candidate has following voting peers: [follower600] 02:55:47,902 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Set currentTerm=3, votedFor=leader598 02:55:47,902 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): Starting new election term 3 02:55:47,902 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): Sending RequestVote [term=3, candidateId=leader598, lastLogIndex=-1, lastLogTerm=-1] to peer follower600 02:55:47,903 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 02:55:47,903 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 02:55:47,903 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Cluster state: [] 02:55:47,903 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=leader598, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 02:55:47,903 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Term 3 in "RequestVote [term=3, candidateId=leader598, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 02:55:47,903 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Set currentTerm=3, votedFor=null 02:55:47,903 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): In requestVote: RequestVote [term=3, candidateId=leader598, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 3, votedFor: null, lastIndex: -1, lastTerm: -1 02:55:47,903 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Set currentTerm=3, votedFor=leader598 02:55:47,903 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 02:55:47,904 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 02:55:47,904 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 02:55:47,904 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Election: Leader has following peers: [follower600, downPeer, follower599] 02:55:47,904 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:55:47,904 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:55:47,904 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 02:55:47,905 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower600: Last sync leader does not match current leader leader598, need to catch up to -1 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower600 updated: matchIndex: -1, nextIndex: 0 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 0 is present for follower follower600 [WARN] [03/07/2024 14:55:47.905] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower600] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@279458c9 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower600: AppendEntries [leaderId=leader598, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 0 is present for follower follower600 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Number of entries to be appended = 1 02:55:47,905 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Append entry to log zero-1 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Log size is now 1 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower600, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower600: Lagging 0 entries behind leader leader598 and reached -1 (of expected -1) 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower600 updated: matchIndex: 0, nextIndex: 1 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 0 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from -1 to 0 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 0 data zero-1 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: zero-1 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 1 is present for follower follower600 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower600: AppendEntries [leaderId=leader598, prevLogIndex=0, prevLogTerm=3, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=one-1]]] 02:55:47,906 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persisting ApplyJournalEntries with index=0 [WARN] [03/07/2024 14:55:47.906] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower600] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5e0f9862 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, prevLogIndex=0, prevLogTerm=3, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=one-1]]] 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Number of entries to be appended = 1 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Append entry to log one-1 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Log size is now 2 02:55:47,907 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Commit index set to 0 02:55:47,907 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower600, logLastIndex=1, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower600: Lagging 0 entries behind leader leader598 and reached 0 (of expected -1) 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Setting last applied to 0 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Moving last applied index from -1 to 0 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Applying state for log index 0 data zero-1 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: applyState called: zero-1 02:55:47,907 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:47,907 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:55:47,907 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Persisting ApplyJournalEntries with index=0 02:55:47,907 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 1 is present for follower follower600 02:55:47,907 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:55:47,907 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower600 updated: matchIndex: 1, nextIndex: 2 02:55:47,907 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 02:55:47,907 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 1 02:55:47,907 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from 0 to 1 02:55:47,907 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 1 data one-1 02:55:47,907 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: one-1 02:55:47,908 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 02:55:47,908 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 2 is present for follower follower600 02:55:47,908 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower600: AppendEntries [leaderId=leader598, prevLogIndex=1, prevLogTerm=3, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 02:55:47,908 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persisting ApplyJournalEntries with index=1 02:55:47,908 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:55:47,908 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, prevLogIndex=1, prevLogTerm=3, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 02:55:47,908 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 02:55:47,908 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 02:55:47,908 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Number of entries to be appended = 1 02:55:47,908 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=three-1}, logIndex: 3, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:47,908 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:55:47,908 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Append entry to log two-1 02:55:47,908 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:55:47,908 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: -1 02:55:47,908 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 2 is present for follower follower600 02:55:47,908 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 02:55:47,908 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 02:55:47,908 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Log size is now 3 02:55:47,908 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Commit index set to 1 02:55:47,908 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 02:55:47,908 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower600, logLastIndex=2, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:47,908 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persist data SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 02:55:47,908 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 02:55:47,908 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower600: Lagging 0 entries behind leader leader598 and reached 1 (of expected -1) 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 2 02:55:47,909 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Replicate message: identifier: MockIdentifier{value=four-1}, logIndex: 4, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Setting last applied to 1 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Moving last applied index from 0 to 1 02:55:47,909 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Applying state for log index 1 data one-1 02:55:47,909 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 2 is present for follower follower600 02:55:47,909 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:55:47,909 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower600 updated: matchIndex: 2, nextIndex: 3 02:55:47,909 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 02:55:47,909 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 2 02:55:47,909 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from 1 to 2 02:55:47,909 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 2 data two-1 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: applyState called: one-1 02:55:47,909 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: two-1 02:55:47,909 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:55:47,909 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 3 is present for follower follower600 02:55:47,909 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower600: AppendEntries [leaderId=leader598, 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]]] 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Persisting ApplyJournalEntries with index=1 02:55:47,909 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persisting ApplyJournalEntries with index=2 02:55:47,909 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, 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]]] 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Number of entries to be appended = 2 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Append entry to log three-1 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Append entry to log four-1 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 02:55:47,909 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Log size is now 5 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Commit index set to 2 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower600, logLastIndex=4, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower600: Lagging 0 entries behind leader leader598 and reached 2 (of expected -1) 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 4 02:55:47,910 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower600 updated: matchIndex: 4, nextIndex: 5 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Setting last applied to 2 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Moving last applied index from 1 to 2 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Applying state for log index 2 data two-1 02:55:47,910 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 2 02:55:47,910 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 3 02:55:47,910 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from 2 to 3 02:55:47,910 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 3 data three-1 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: applyState called: two-1 02:55:47,910 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: three-1 02:55:47,910 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Setting last applied to 4 02:55:47,910 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Moving last applied index from 3 to 4 02:55:47,910 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Applying state for log index 4 data four-1 02:55:47,910 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: applyState called: four-1 02:55:47,910 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower600: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Persisting ApplyJournalEntries with index=2 02:55:47,910 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Persisting ApplyJournalEntries with index=4 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Commit index set to 4 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower600: Lagging 0 entries behind leader leader598 and reached 4 (of expected -1) 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 2, lastIndex(): 4 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Setting last applied to 3 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Moving last applied index from 2 to 3 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Applying state for log index 3 data three-1 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: applyState called: three-1 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600 (Follower): Setting last applied to 4 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Moving last applied index from 3 to 4 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Applying state for log index 4 data four-1 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: applyState called: four-1 02:55:47,910 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower600: Persisting ApplyJournalEntries with index=4 02:55:48,23 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Term 3 in "AppendEntries [leaderId=leader598, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 02:55:48,23 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Set currentTerm=3, votedFor=null 02:55:48,23 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower600: Lagging 0 entries behind leader leader598 and reached 4 (of expected -1) 02:55:48,23 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower599: Lagging -3 entries behind leader leader598 and reached 2 (of expected -1) 02:55:48,23 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply: follower follower599 last log term 2 for index 2 conflicts with the leader's 3 - set the follower's next index to 1 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 1 is present for follower follower599 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower599: AppendEntries [leaderId=leader598, prevLogIndex=0, prevLogTerm=3, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, prevLogIndex=0, prevLogTerm=3, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): The prevLogIndex 0 was found in the log but the term 2 is not equal to the append entries prevLogTerm 3 - lastIndex: 2, snapshotIndex: 1, snapshotTerm: 2 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=3, success=false, followerId=follower599, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower599: Lagging 2 entries behind leader leader598 and reached 2 (of expected -1) 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower599, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): follower follower599 last log term 2 conflicts with the leader's 3 - dec next index to 0 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Checking sendAppendEntries for follower follower599: active: true, followerNextIndex: 0, leaderLastIndex: 4, leaderSnapShotIndex: -1 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendAppendEntries: 0 is present for follower follower599 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Sending AppendEntries to follower follower599: AppendEntries [leaderId=leader598, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleAppendEntries: AppendEntries [leaderId=leader598, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Number of entries to be appended = 5 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: -1 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] is present: existingEntryTerm: 2 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Removing entries from log starting at 1, commitIndex: 2, lastApplied: 2 02:55:48,24 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Could not remove entries - sending reply to force snapshot 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower599: Lagging 2 entries behind leader leader598 and reached 2 (of expected -1) 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower599, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: 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 follower599 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: lastSequenceNumber prior to capture: -1 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: CaptureSnapshotReply received by actor 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: 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=leader598, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower600, isVoting=true], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=follower599, isVoting=false], ServerInfo[peerId=leader598, isVoting=true]]]] 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): sendInstallSnapshot 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader598 (Leader): Snapshot 390 bytes, total chunks to send: 1 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader598 (Leader): Next chunk: total length=390, offset=0, size=390, hashCode=-929342248 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): next snapshot chunk size for follower follower599: 390 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): InstallSnapshot sent to follower Vector(user, follower599), Chunk: 1/1 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: Snapshot success - sequence number: -1 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598: SnapshotComplete received 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader598, lastIncludedIndex=4, lastIncludedTerm=3, datasize=390, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower600, isVoting=true], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=follower599, isVoting=false], ServerInfo[peerId=leader598, isVoting=true]]]] 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower599: Lagging 2 entries behind leader leader598 and reached 2 (of expected -1) 02:55:48,25 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:55:48,26 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): Snapshot installed from leader: leader598 02:55:48,26 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: 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=follower600, isVoting=true], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=follower599, isVoting=false], ServerInfo[peerId=leader598, isVoting=true]]]] 02:55:48,26 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 02:55:48,26 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Snapshot success - sequence number: -1 02:55:48,26 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Moving last applied index from 2 to 4 02:55:48,26 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Set currentTerm=3, votedFor=null 02:55:48,26 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: Updated server config: isVoting: false, peers: [PeerInfo [id=leader598, address=akka://test/user/leader598, votingState=VOTING], PeerInfo [id=follower600, address=null, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 02:55:48,26 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: applySnapshot called 02:55:48,27 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower599, chunkIndex=1, success=true] 02:55:48,27 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower599: SnapshotComplete received 02:55:48,27 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower599, chunkIndex=1, success=true] 02:55:48,27 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader598 (Leader): Snapshot successfully installed on follower follower599 (last chunk 1) - matchIndex set to 4, nextIndex set to 5 02:55:48,56 PM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart ending 02:55:48,56 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower599-collector601#-1761284000] 02:55:48,67 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower599] 02:55:48,68 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader598-collector602#310788558] 02:55:48,68 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader598] 02:55:48,68 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower600-collector603#276783894] 02:55:48,68 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower600] 02:55:48,68 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader598-collector604#-913096980] 02:55:48,68 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader598] [INFO] [03/07/2024 14:55:48.069] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:55:48,69 PM [test-akka.actor.default-dispatcher-15] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/07/2024 14:55:48.073] [test-akka.actor.default-dispatcher-15] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.169:25520) [INFO] [03/07/2024 14:55:48.071] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.169:25520] - Exiting completed [INFO] [03/07/2024 14:55:48.071] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.169:25520] - Shutting down... [INFO] [03/07/2024 14:55:48.071] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.169:25520] - Successfully shut down 02:55:48,73 PM [test-akka.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [akka://test@10.30.170.169:25520] - Exiting completed 02:55:48,73 PM [test-akka.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [akka://test@10.30.170.169:25520] - Shutting down... 02:55:48,73 PM [test-akka.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [akka://test@10.30.170.169:25520] - Successfully shut down 02:55:48,73 PM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [WARN] [03/07/2024 14:55:48.073] [test-akka.actor.default-dispatcher-6] [akka://test/system/deadLetterListener] received dead letter: UnhandledMessage(Leave(akka://test@10.30.170.169:25520),Actor[akka://test/deadLetters],Actor[akka://test/system/cluster/core/daemon#592760828]) [INFO] [03/07/2024 14:55:48.073] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.169:25520/system/remoting-terminator] Shutting down remote daemon. 02:55:48,74 PM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/07/2024 14:55:48.074] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.169:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/07/2024 14:55:48.076] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.170.169:25520/system/remoting-terminator] Remoting shut down. 02:55:48,77 PM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [03/07/2024 14:55:48.077] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger