[DEBUG] [10/28/2024 00:44:41.125] [main] [EventStream(akka://test)] logger log1-TestEventListener started 12:44:41,125 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [10/28/2024 00:44:41.126] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [10/28/2024 00:44:41.129] [main] [EventStream(akka://test)] Default Loggers started [INFO] [10/28/2024 00:44:41.140] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.88:25520] with UID [1638620636721974980] 12:44:41,141 AM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.88:25520] with UID [1638620636721974980] [INFO] [10/28/2024 00:44:41.141] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.88:25520] - Starting up, Akka version [2.6.21] ... 12:44:41,141 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.88:25520] - Starting up, Akka version [2.6.21] ... [INFO] [10/28/2024 00:44:41.143] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.88:25520] - Registered cluster JMX MBean [akka:type=Cluster] 12:44:41,143 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.88:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [10/28/2024 00:44:41.143] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.88:25520] - Started up successfully 12:44:41,143 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.88:25520] - Started up successfully [INFO] [10/28/2024 00:44:41.144] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.88:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [10/28/2024 00:44:41.144] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.88:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 12:44:41,144 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.88:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 12:44:41,144 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.88:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 12:44:41,153 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testReplicationsWithLaggingFollowerCaughtUpViaAppendEntries starting: sending 2 new payloads [WARN] [10/28/2024 00:44:41.155] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower767]: org.opendaylight.controller.cluster.common.actor.Monitor@5fa593d5 [INFO] [akkaDeadLetter][10/28/2024 00:44:41.155] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower767] to Actor[akka://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:41,155 AM [test-akka.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower767] to Actor[akka://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:41,158 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower767 with journal batch size 1000 [WARN] [10/28/2024 00:44:41.158] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower768]: org.opendaylight.controller.cluster.common.actor.Monitor@20055d64 [INFO] [akkaDeadLetter][10/28/2024 00:44:41.158] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower768] to Actor[akka://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:41,159 AM [test-akka.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower768] to Actor[akka://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:41,159 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower768 with journal batch size 1000 [WARN] [10/28/2024 00:44:41.159] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader766]: org.opendaylight.controller.cluster.common.actor.Monitor@2bf7ccf6 12:44:41,159 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader766 with journal batch size 1000 [INFO] [akkaDeadLetter][10/28/2024 00:44:41.160] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader766] to Actor[akka://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:41,160 AM [test-akka.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader766] to Actor[akka://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:41,160 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:44:41,160 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower768: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:44:41,161 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: Set currentTerm=5, votedFor=leader766 12:44:41,161 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:44:41,630 AM [test-akka.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:44:41,630 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.88:25520, Removed) 12:44:41,630 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Follower): Received ElectionTimeout - switching to Candidate 12:44:41,630 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Candidate): Election: Candidate has following voting peers: [follower768, follower767] 12:44:41,630 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: Set currentTerm=6, votedFor=leader766 12:44:41,630 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Candidate): Starting new election term 6 12:44:41,630 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Candidate): Sending RequestVote [term=6, candidateId=leader766, lastLogIndex=-1, lastLogTerm=-1] to peer follower768 12:44:41,631 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Candidate): Sending RequestVote [term=6, candidateId=leader766, lastLogIndex=-1, lastLogTerm=-1] to peer follower767 12:44:41,631 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Follower) :- Switching from behavior Follower to Candidate, election term: 6 12:44:41,631 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:44:41,631 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): Cluster state: [] 12:44:41,631 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader766, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 12:44:41,631 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader766, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 12:44:41,631 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: Set currentTerm=6, votedFor=null 12:44:41,631 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): In requestVote: RequestVote [term=6, candidateId=leader766, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 12:44:41,631 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: Set currentTerm=6, votedFor=leader766 12:44:41,631 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 12:44:41,631 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:44:41,631 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): Cluster state: [] 12:44:41,631 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader766, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 12:44:41,631 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader766, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 12:44:41,631 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768: Set currentTerm=6, votedFor=null 12:44:41,631 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): In requestVote: RequestVote [term=6, candidateId=leader766, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 12:44:41,631 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768: Set currentTerm=6, votedFor=leader766 12:44:41,631 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 12:44:41,631 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Candidate): RaftRPC message received RequestVoteReply [term=6, voteGranted=true], my term is 6 12:44:41,632 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Candidate): handleRequestVoteReply: RequestVoteReply [term=6, voteGranted=true], current voteCount: 1 12:44:41,632 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Election: Leader has following peers: [follower768, follower767] 12:44:41,632 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Checking sendAppendEntries for follower follower768: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:44:41,632 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Checking sendAppendEntries for follower follower767: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:44:41,632 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Candidate) :- Switching from behavior Candidate to Leader, election term: 6 12:44:41,632 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower767: Last sync leader does not match current leader leader766, need to catch up to -1 12:44:41,632 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower767 updated: matchIndex: -1, nextIndex: 0 12:44:41,632 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Checking sendAppendEntries for follower follower767: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [10/28/2024 00:44:41.632] [test-akka.actor.default-dispatcher-14] [akka://test/user/follower767] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@31d2c9ff [INFO] [akkaDeadLetter][10/28/2024 00:44:41.632] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower767] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower767] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:41,633 AM [test-akka.actor.default-dispatcher-7] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower767] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:41,633 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower768: Last sync leader does not match current leader leader766, need to catch up to -1 12:44:41,633 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower768 updated: matchIndex: -1, nextIndex: 0 12:44:41,633 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Checking sendAppendEntries for follower follower768: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [10/28/2024 00:44:41.633] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower768] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@63caa055 12:44:41,633 AM [test-akka.actor.default-dispatcher-5] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower768] was unhandled. [5] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [akkaDeadLetter][10/28/2024 00:44:41.633] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower768] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower768] was unhandled. [5] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:41,662 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - Leader created and elected 12:44:41,662 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: Persist data SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:41,662 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:41,662 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:44:41,662 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Checking sendAppendEntries for follower follower768: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:44:41,662 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): sendAppendEntries: 0 is present for follower follower768 12:44:41,662 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Sending AppendEntries to follower follower768: AppendEntries [leaderId=leader766, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:41,663 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Checking sendAppendEntries for follower follower767: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:44:41,663 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): sendAppendEntries: 0 is present for follower follower767 12:44:41,663 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Sending AppendEntries to follower follower767: AppendEntries [leaderId=leader766, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:41,663 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: Persist data SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:41,663 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:41,663 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): handleAppendEntries: AppendEntries [leaderId=leader766, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:41,663 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): Number of entries to be appended = 1 12:44:41,663 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:44:41,663 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:44:41,663 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): Append entry to log zero 12:44:41,663 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:41,663 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Checking sendAppendEntries for follower follower768: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:41,663 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): sendAppendEntries: 0 is present for follower follower768 12:44:41,663 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Checking sendAppendEntries for follower follower767: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:41,663 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): sendAppendEntries: 0 is present for follower follower767 12:44:41,663 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): Log size is now 1 12:44:41,663 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower767, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:41,663 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower767: Lagging 0 entries behind leader leader766 and reached -1 (of expected -1) 12:44:41,663 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower767 updated: matchIndex: 0, nextIndex: 1 12:44:41,663 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Checking sendAppendEntries for follower follower767: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:41,663 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): sendAppendEntries: 1 is present for follower follower767 12:44:41,663 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Sending AppendEntries to follower follower767: AppendEntries [leaderId=leader766, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:41,664 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:41,664 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 12:44:41,664 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Setting last applied to 0 12:44:41,664 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: Moving last applied index from -1 to 0 12:44:41,664 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: Applying state for log index 0 data zero 12:44:41,664 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:41,664 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): handleAppendEntries: AppendEntries [leaderId=leader766, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:41,664 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): Number of entries to be appended = 1 12:44:41,665 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:44:41,665 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): Append entry to log one 12:44:41,665 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:41,665 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: applyState called: zero 12:44:41,665 AM [test-akka.actor.default-dispatcher-5] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower767] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:41,665 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): Log size is now 2 12:44:41,665 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower767, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:41,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: Persisting ApplyJournalEntries with index=0 12:44:41,665 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower767: Lagging 0 entries behind leader leader766 and reached -1 (of expected -1) [WARN] [10/28/2024 00:44:41.665] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower767] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1d56230b [INFO] [akkaDeadLetter][10/28/2024 00:44:41.665] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower767] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower767] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:41,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower767 updated: matchIndex: 1, nextIndex: 2 12:44:41,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Checking sendAppendEntries for follower follower767: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:41,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:41,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 12:44:41,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Setting last applied to 1 12:44:41,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: Moving last applied index from 0 to 1 12:44:41,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: Applying state for log index 1 data one 12:44:41,665 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:41,665 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: applyState called: one 12:44:41,665 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: Persisting ApplyJournalEntries with index=1 12:44:41,665 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): Commit index set to 0 12:44:41,665 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower767: Lagging 0 entries behind leader leader766 and reached 0 (of expected -1) 12:44:41,665 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 12:44:41,665 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): Setting last applied to 0 12:44:41,665 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: Moving last applied index from -1 to 0 12:44:41,665 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: Applying state for log index 0 data zero 12:44:41,666 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: applyState called: zero 12:44:41,666 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): Commit index set to 1 12:44:41,666 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower767: Lagging 0 entries behind leader leader766 and reached 1 (of expected -1) 12:44:41,666 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:44:41,666 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767 (Follower): Setting last applied to 1 12:44:41,666 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: Moving last applied index from 0 to 1 12:44:41,666 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: Applying state for log index 1 data one 12:44:41,666 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: applyState called: one 12:44:41,666 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: Persisting ApplyJournalEntries with index=0 12:44:41,666 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: Persisting ApplyJournalEntries with index=1 12:44:41,750 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): sendAppendEntries: 0 is present for follower follower768 12:44:41,750 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Sending AppendEntries to follower follower768: AppendEntries [leaderId=leader766, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero], SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:41,871 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): sendAppendEntries: 0 is present for follower follower768 12:44:41,871 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Sending AppendEntries to follower follower768: AppendEntries [leaderId=leader766, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero], SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:41,871 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower767: Lagging 0 entries behind leader leader766 and reached 1 (of expected -1) 12:44:41,914 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testReplicationsWithLaggingFollowerCaughtUpViaAppendEntries: new entries applied - resuming follower follower768 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): sendAppendEntries: 0 is present for follower follower768 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Sending AppendEntries to follower follower768: AppendEntries [leaderId=leader766, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero], SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): handleAppendEntries: AppendEntries [leaderId=leader766, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero], SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): Number of entries to be appended = 2 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): Append entry to log zero 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): Append entry to log one 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): Log size is now 2 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): Commit index set to 1 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower768, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower768: Lagging 0 entries behind leader leader766 and reached 1 (of expected -1) 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): Setting last applied to 0 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768: Moving last applied index from -1 to 0 12:44:41,991 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768: Applying state for log index 0 data zero 12:44:41,992 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower768: applyState called: zero 12:44:41,992 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768 (Follower): Setting last applied to 1 12:44:41,992 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768: Moving last applied index from 0 to 1 12:44:41,992 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768: Applying state for log index 1 data one 12:44:41,992 AM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower768: applyState called: one 12:44:41,992 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower767: Lagging 0 entries behind leader leader766 and reached 1 (of expected -1) 12:44:41,992 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower768 updated: matchIndex: 1, nextIndex: 2 12:44:41,992 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766: fakeSnapshot purging log to 0 for term 6 12:44:41,992 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader766 (Leader): Checking sendAppendEntries for follower follower768: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 12:44:41,992 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:41,992 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:41,992 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768: Persisting ApplyJournalEntries with index=1 12:44:41,993 AM [test-akka.actor.default-dispatcher-7] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower768] 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'. [WARN] [10/28/2024 00:44:41.993] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower768] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7f58e790 [INFO] [akkaDeadLetter][10/28/2024 00:44:41.993] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower768] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower768] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:42,110 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower768: Lagging 0 entries behind leader leader766 and reached 1 (of expected -1) 12:44:42,110 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower768: fakeSnapshot purging log to 0 for term 6 12:44:42,111 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower767: Lagging 0 entries behind leader leader766 and reached 1 (of expected -1) 12:44:42,111 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower767: fakeSnapshot purging log to 0 for term 6 12:44:42,115 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testReplicationsWithLaggingFollowerCaughtUpViaAppendEntries complete 12:44:42,115 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower767-collector769#-1928440598] 12:44:42,127 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower767] 12:44:42,127 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower768-collector770#1302172071] 12:44:42,127 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower768] 12:44:42,127 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader766-collector771#807467507] 12:44:42,127 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader766] 12:44:42,128 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotWithLaggingFollowerCaughtUpViaInstallSnapshot starting [WARN] [10/28/2024 00:44:42.130] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower776]: org.opendaylight.controller.cluster.common.actor.Monitor@7b167c69 [INFO] [akkaDeadLetter][10/28/2024 00:44:42.130] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower776] to Actor[akka://test/user/termination-monitor] was not delivered. [8] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:42,130 AM [test-akka.actor.default-dispatcher-15] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower776] to Actor[akka://test/user/termination-monitor] was not delivered. [8] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:42,130 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower776 with journal batch size 1000 12:44:42,131 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [10/28/2024 00:44:42.132] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower777]: org.opendaylight.controller.cluster.common.actor.Monitor@706c6542 [INFO] [akkaDeadLetter][10/28/2024 00:44:42.132] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower777] to Actor[akka://test/user/termination-monitor] was not delivered. [9] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:42,132 AM [test-akka.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower777] to Actor[akka://test/user/termination-monitor] was not delivered. [9] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:42,133 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower777 with journal batch size 1000 12:44:42,133 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:44:42,233 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader775 with journal batch size 1000 [WARN] [10/28/2024 00:44:42.234] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader775]: org.opendaylight.controller.cluster.common.actor.Monitor@22c2712e [INFO] [akkaDeadLetter][10/28/2024 00:44:42.235] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader775] to Actor[akka://test/user/termination-monitor] was not delivered. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:42,235 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Set currentTerm=5, votedFor=leader775 12:44:42,235 AM [test-akka.actor.default-dispatcher-14] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader775] to Actor[akka://test/user/termination-monitor] was not delivered. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 12:44:42,235 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:44:42,670 AM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:44:42,670 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.88:25520, Removed) 12:44:42,670 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Follower): Received ElectionTimeout - switching to Candidate 12:44:42,670 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Candidate): Election: Candidate has following voting peers: [follower777, follower776] 12:44:42,670 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Set currentTerm=6, votedFor=leader775 12:44:42,670 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Candidate): Starting new election term 6 12:44:42,670 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Candidate): Sending RequestVote [term=6, candidateId=leader775, lastLogIndex=-1, lastLogTerm=-1] to peer follower777 12:44:42,671 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Candidate): Sending RequestVote [term=6, candidateId=leader775, lastLogIndex=-1, lastLogTerm=-1] to peer follower776 12:44:42,671 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Follower) :- Switching from behavior Follower to Candidate, election term: 6 12:44:42,671 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:44:42,671 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): Cluster state: [] 12:44:42,671 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader775, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 12:44:42,671 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader775, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 12:44:42,671 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Set currentTerm=6, votedFor=null 12:44:42,671 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:44:42,671 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Cluster state: [] 12:44:42,671 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader775, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 12:44:42,671 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader775, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 12:44:42,671 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Set currentTerm=6, votedFor=null 12:44:42,671 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): In requestVote: RequestVote [term=6, candidateId=leader775, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 12:44:42,671 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Set currentTerm=6, votedFor=leader775 12:44:42,671 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 12:44:42,671 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Candidate): RaftRPC message received RequestVoteReply [term=6, voteGranted=true], my term is 6 12:44:42,671 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Candidate): handleRequestVoteReply: RequestVoteReply [term=6, voteGranted=true], current voteCount: 1 12:44:42,671 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Election: Leader has following peers: [follower777, follower776] 12:44:42,671 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower777: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:44:42,672 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:44:42,672 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): In requestVote: RequestVote [term=6, candidateId=leader775, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 12:44:42,672 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Candidate) :- Switching from behavior Candidate to Leader, election term: 6 12:44:42,672 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Set currentTerm=6, votedFor=leader775 12:44:42,672 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 12:44:42,672 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower776: Last sync leader does not match current leader leader775, need to catch up to -1 12:44:42,672 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower776 updated: matchIndex: -1, nextIndex: 0 12:44:42,672 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [10/28/2024 00:44:42.672] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower776] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3004c633 12:44:42,672 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower777: Last sync leader does not match current leader leader775, need to catch up to -1 12:44:42,672 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower777 updated: matchIndex: -1, nextIndex: 0 12:44:42,672 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower777: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [10/28/2024 00:44:42.672] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower777] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7e85e3e3 12:44:42,688 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - Leader created and elected 12:44:42,688 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persist data SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:42,688 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:42,688 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:44:42,688 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower777: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:44:42,688 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendAppendEntries: 0 is present for follower follower777 12:44:42,688 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Sending AppendEntries to follower follower777: AppendEntries [leaderId=leader775, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:42,688 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:44:42,688 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendAppendEntries: 0 is present for follower follower776 12:44:42,688 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Sending AppendEntries to follower follower776: AppendEntries [leaderId=leader775, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:42,688 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): handleAppendEntries: AppendEntries [leaderId=leader775, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:42,688 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): Number of entries to be appended = 1 12:44:42,688 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:44:42,688 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): Append entry to log zero 12:44:42,688 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:42,688 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): handleAppendEntries: AppendEntries [leaderId=leader775, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persist data SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:42,689 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Number of entries to be appended = 1 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:42,689 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:44:42,689 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Append entry to log zero 12:44:42,689 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower777: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendAppendEntries: 0 is present for follower follower777 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendAppendEntries: 0 is present for follower follower776 12:44:42,689 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Log size is now 1 12:44:42,689 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower776, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:42,689 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached -1 (of expected -1) 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower776 updated: matchIndex: 0, nextIndex: 1 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendAppendEntries: 1 is present for follower follower776 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Sending AppendEntries to follower follower776: AppendEntries [leaderId=leader775, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Setting last applied to 0 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Moving last applied index from -1 to 0 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Applying state for log index 0 data zero 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: applyState called: zero 12:44:42,689 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:42,689 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): Log size is now 1 12:44:42,689 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persisting ApplyJournalEntries with index=0 12:44:42,689 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower777, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:42,689 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower777: Lagging 0 entries behind leader leader775 and reached -1 (of expected -1) 12:44:42,690 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower777 updated: matchIndex: 0, nextIndex: 1 12:44:42,689 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): handleAppendEntries: AppendEntries [leaderId=leader775, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] [WARN] [10/28/2024 00:44:42.689] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower776] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6f65c3ad 12:44:42,690 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Number of entries to be appended = 1 12:44:42,690 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:44:42,690 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower777: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:42,690 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Append entry to log one 12:44:42,690 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendAppendEntries: 1 is present for follower follower777 12:44:42,690 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:42,690 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Sending AppendEntries to follower follower777: AppendEntries [leaderId=leader775, prevLogIndex=0, prevLogTerm=6, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:42,690 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Log size is now 2 12:44:42,690 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower776, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:42,690 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached -1 (of expected -1) 12:44:42,690 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower776 updated: matchIndex: 1, nextIndex: 2 12:44:42,690 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:42,690 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:42,690 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 12:44:42,690 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Setting last applied to 1 12:44:42,690 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Moving last applied index from 0 to 1 12:44:42,690 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Applying state for log index 1 data one 12:44:42,690 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:42,690 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:42,690 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: applyState called: one 12:44:42,690 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Commit index set to 0 12:44:42,690 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: fakeSnapshot purging log to 0 for term 6 12:44:42,690 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 0 (of expected -1) 12:44:42,690 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): handleAppendEntries: AppendEntries [leaderId=leader775, prevLogIndex=0, prevLogTerm=6, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:42,690 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 12:44:42,690 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): Number of entries to be appended = 1 12:44:42,690 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Setting last applied to 0 12:44:42,690 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:44:42,690 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Moving last applied index from -1 to 0 12:44:42,690 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): Append entry to log one 12:44:42,691 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Applying state for log index 0 data zero 12:44:42,691 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:42,691 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): Log size is now 2 12:44:42,691 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): Commit index set to 0 12:44:42,691 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persisting ApplyJournalEntries with index=1 12:44:42,691 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: applyState called: zero 12:44:42,691 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower777, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:42,691 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower777: Lagging 0 entries behind leader leader775 and reached 0 (of expected -1) 12:44:42,691 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 12:44:42,691 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): Setting last applied to 0 12:44:42,691 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Moving last applied index from -1 to 0 12:44:42,691 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Applying state for log index 0 data zero 12:44:42,691 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Persisting ApplyJournalEntries with index=0 12:44:42,691 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: applyState called: zero 12:44:42,691 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower777 updated: matchIndex: 1, nextIndex: 2 12:44:42,691 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower777: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 12:44:42,691 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Commit index set to 1 12:44:42,691 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 1 (of expected -1) 12:44:42,691 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:44:42,691 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Setting last applied to 1 12:44:42,691 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Moving last applied index from 0 to 1 12:44:42,691 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Applying state for log index 1 data one 12:44:42,691 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: applyState called: one 12:44:42,691 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: fakeSnapshot purging log to 0 for term 6 12:44:42,691 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Persisting ApplyJournalEntries with index=1 12:44:42,692 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:42,692 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Persisting ApplyJournalEntries with index=0 [WARN] [10/28/2024 00:44:42.692] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower777] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@296a2480 12:44:42,692 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): Commit index set to 1 12:44:42,692 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower777: Lagging 0 entries behind leader leader775 and reached 1 (of expected -1) 12:44:42,692 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:44:42,692 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): Setting last applied to 1 12:44:42,692 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Moving last applied index from 0 to 1 12:44:42,692 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Applying state for log index 1 data one 12:44:42,692 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: applyState called: one 12:44:42,692 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: fakeSnapshot purging log to 0 for term 6 12:44:42,692 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Persisting ApplyJournalEntries with index=1 12:44:42,911 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower777: Lagging 0 entries behind leader leader775 and reached 1 (of expected -1) 12:44:42,911 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 1 (of expected -1) 12:44:43,30 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 1 (of expected -1) 12:44:43,150 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 1 (of expected -1) 12:44:43,271 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 1 (of expected -1) 12:44:43,345 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persist data SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:43,345 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:43,345 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower777: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendAppendEntries: 2 is present for follower follower776 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Sending AppendEntries to follower follower776: AppendEntries [leaderId=leader775, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persist data SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:43,346 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): handleAppendEntries: AppendEntries [leaderId=leader775, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 12:44:43,346 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Number of entries to be appended = 1 12:44:43,346 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, isSendImmediate: true 12:44:43,346 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Append entry to log two 12:44:43,346 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower777: active: false, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 0 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 0 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendAppendEntries: 2 is present for follower follower776 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persist data SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, isSendImmediate: true 12:44:43,346 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Log size is now 2 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower777: active: false, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: 0 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: 0 12:44:43,346 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower776, logLastIndex=2, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendAppendEntries: 2 is present for follower follower776 12:44:43,346 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 1 (of expected -1) 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower776 updated: matchIndex: 2, nextIndex: 3 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: 0 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendAppendEntries: 3 is present for follower follower776 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Sending AppendEntries to follower follower776: AppendEntries [leaderId=leader775, prevLogIndex=2, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three], SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persist data SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:43,346 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Replicate message: identifier: MockIdentifier{value=five}, logIndex: 5, isSendImmediate: true 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower777: active: false, followerNextIndex: 2, leaderLastIndex: 5, leaderSnapShotIndex: 0 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 3, leaderLastIndex: 5, leaderSnapShotIndex: 0 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendAppendEntries: 3 is present for follower follower776 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persist data SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Append log entry and persist SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Replicate message: identifier: MockIdentifier{value=six}, logIndex: 6, isSendImmediate: true 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower777: active: false, followerNextIndex: 2, leaderLastIndex: 6, leaderSnapShotIndex: 0 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 3, leaderLastIndex: 6, leaderSnapShotIndex: 0 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendAppendEntries: 3 is present for follower follower776 12:44:43,347 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Setting last applied to 2 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Moving last applied index from 1 to 2 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Applying state for log index 2 data two 12:44:43,347 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): handleAppendEntries: AppendEntries [leaderId=leader775, prevLogIndex=2, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three], SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: applyState called: two 12:44:43,347 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Number of entries to be appended = 2 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: fakeSnapshot purging log to 1 for term 6 12:44:43,347 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 12:44:43,347 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Append entry to log three 12:44:43,347 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:43,347 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persisting ApplyJournalEntries with index=2 12:44:43,347 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Append entry to log four 12:44:43,347 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:43,347 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Log size is now 4 12:44:43,347 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower776, logLastIndex=4, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:43,347 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 1 (of expected -1) 12:44:43,348 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower776 updated: matchIndex: 4, nextIndex: 5 12:44:43,348 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 5, leaderLastIndex: 6, leaderSnapShotIndex: 1 12:44:43,348 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendAppendEntries: 5 is present for follower follower776 12:44:43,348 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Sending AppendEntries to follower follower776: AppendEntries [leaderId=leader775, prevLogIndex=4, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five], SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 12:44:43,348 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:43,348 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=6, lastIndex=3, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=4, mandatoryTrim=false] 12:44:43,348 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:43,348 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: lastSequenceNumber prior to capture: 8 12:44:43,348 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:43,348 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 12:44:43,348 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Setting last applied to 3 12:44:43,348 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Moving last applied index from 2 to 3 12:44:43,348 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Applying state for log index 3 data three 12:44:43,348 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): handleAppendEntries: AppendEntries [leaderId=leader775, prevLogIndex=4, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five], SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 12:44:43,348 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: applyState called: three 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Number of entries to be appended = 2 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): After cleanup, lastIndex: 4, entries to be added from: 0 12:44:43,349 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: CaptureSnapshotReply received by actor 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Append entry to log five 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:43,349 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persisting of snapshot done: Snapshot [lastIndex=3, lastTerm=6, lastAppliedIndex=2, lastAppliedTerm=6, unAppliedEntries size=4, state=MockSnapshotState [state=[zero, one, two]], electionTerm=6, electionVotedFor=leader775, ServerConfigPayload=null] 12:44:43,349 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: log size 5 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 2 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Append entry to log six 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Append log entry and persist SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:43,349 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 6 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Log size is now 6 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Commit index set to 2 12:44:43,349 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persisting ApplyJournalEntries with index=3 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower776, logLastIndex=6, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 2 (of expected -1) 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 6 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Setting last applied to 2 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Moving last applied index from 1 to 2 12:44:43,349 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower776 updated: matchIndex: 6, nextIndex: 7 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Applying state for log index 2 data two 12:44:43,349 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 7, leaderLastIndex: 6, leaderSnapShotIndex: 2 12:44:43,349 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:43,349 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 12:44:43,349 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Setting last applied to 4 12:44:43,349 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Moving last applied index from 3 to 4 12:44:43,349 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Applying state for log index 4 data four 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: applyState called: two 12:44:43,349 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: fakeSnapshot purging log to 1 for term 6 12:44:43,349 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:43,349 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: persist complete SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:43,349 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Commit index set to 3 12:44:43,349 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 3 (of expected -1) 12:44:43,349 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 6 12:44:43,349 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Setting last applied to 3 12:44:43,349 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Moving last applied index from 2 to 3 12:44:43,349 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Applying state for log index 3 data three 12:44:43,350 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: applyState called: three 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: applyState called: four 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persisting ApplyJournalEntries with index=4 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Applying to log - commitIndex: 5, lastAppliedIndex: 4 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Setting last applied to 5 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Moving last applied index from 4 to 5 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Applying state for log index 5 data five 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: applyState called: five 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persisting ApplyJournalEntries with index=5 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: persist complete SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Applying to log - commitIndex: 6, lastAppliedIndex: 5 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Setting last applied to 6 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Moving last applied index from 5 to 6 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Applying state for log index 6 data six 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: applyState called: six 12:44:43,350 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persisting ApplyJournalEntries with index=6 12:44:43,350 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: SaveSnapshotSuccess received for snapshot, sequenceNr: 8 12:44:43,350 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Snapshot success - sequence number: 8 12:44:43,350 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: SnapshotComplete received 12:44:43,350 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: handled a journal response 12:44:43,350 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: handled a snapshot response 12:44:43,351 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Persisting ApplyJournalEntries with index=2 12:44:43,352 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Persisting ApplyJournalEntries with index=3 12:44:43,352 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Commit index set to 4 12:44:43,352 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 4 (of expected -1) 12:44:43,352 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 6 12:44:43,352 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Setting last applied to 4 12:44:43,352 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Moving last applied index from 3 to 4 12:44:43,352 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Applying state for log index 4 data four 12:44:43,352 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: applyState called: four 12:44:43,352 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Persisting ApplyJournalEntries with index=4 12:44:43,352 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Commit index set to 6 12:44:43,352 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 6 (of expected -1) 12:44:43,352 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 6, context.getLastApplied(): 4, lastIndex(): 6 12:44:43,352 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Setting last applied to 5 12:44:43,352 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Moving last applied index from 4 to 5 12:44:43,352 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Applying state for log index 5 data five 12:44:43,352 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: applyState called: five 12:44:43,352 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Setting last applied to 6 12:44:43,352 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Moving last applied index from 5 to 6 12:44:43,352 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Applying state for log index 6 data six 12:44:43,352 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: applyState called: six 12:44:43,352 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Persisting ApplyJournalEntries with index=6 12:44:43,396 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotWithLaggingFollowerCaughtUpViaInstallSnapshot: sending 1 more payload to trigger second snapshot 12:44:43,396 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persist data SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 12:44:43,396 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Append log entry and persist SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 12:44:43,396 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Replicate message: identifier: MockIdentifier{value=seven}, logIndex: 7, isSendImmediate: true 12:44:43,396 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower777: active: false, followerNextIndex: 2, leaderLastIndex: 7, leaderSnapShotIndex: 2 12:44:43,396 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 7, leaderLastIndex: 7, leaderSnapShotIndex: 2 12:44:43,396 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendAppendEntries: 7 is present for follower follower776 12:44:43,396 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Sending AppendEntries to follower follower776: AppendEntries [leaderId=leader775, prevLogIndex=6, prevLogTerm=6, leaderCommit=6, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=7, term=6, payload=seven]]] 12:44:43,396 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): handleAppendEntries: AppendEntries [leaderId=leader775, prevLogIndex=6, prevLogTerm=6, leaderCommit=6, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=7, term=6, payload=seven]]] 12:44:43,396 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Number of entries to be appended = 1 12:44:43,397 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): After cleanup, lastIndex: 6, entries to be added from: 0 12:44:43,397 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Append entry to log seven 12:44:43,397 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Append log entry and persist SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 12:44:43,397 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Log size is now 6 12:44:43,397 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower776, logLastIndex=7, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:43,397 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 6 (of expected -1) 12:44:43,397 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower776 updated: matchIndex: 7, nextIndex: 8 12:44:43,397 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 8, leaderLastIndex: 7, leaderSnapShotIndex: 2 12:44:43,397 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: persist complete SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 12:44:43,397 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=6, lastAppliedTerm=6, lastIndex=7, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=1, mandatoryTrim=false] 12:44:43,397 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: lastSequenceNumber prior to capture: 17 12:44:43,397 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Applying to log - commitIndex: 7, lastAppliedIndex: 6 12:44:43,397 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Setting last applied to 7 12:44:43,397 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Moving last applied index from 6 to 7 12:44:43,397 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Applying state for log index 7 data seven 12:44:43,397 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: persist complete SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 12:44:43,397 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: applyState called: seven 12:44:43,397 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: CaptureSnapshotReply received by actor 12:44:43,397 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persisting of snapshot done: Snapshot [lastIndex=7, lastTerm=6, lastAppliedIndex=6, lastAppliedTerm=6, unAppliedEntries size=1, state=MockSnapshotState [state=[zero, one, two, three, four, five, six]], electionTerm=6, electionVotedFor=leader775, ServerConfigPayload=null] 12:44:43,397 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: log size 5 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 6 12:44:43,398 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 6 and term: 6 12:44:43,398 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persisting ApplyJournalEntries with index=7 12:44:43,398 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: SaveSnapshotSuccess received for snapshot, sequenceNr: 17 12:44:43,398 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Snapshot success - sequence number: 17 12:44:43,398 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: SnapshotComplete received 12:44:43,398 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: handled a journal response 12:44:43,398 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: handled a snapshot response 12:44:43,510 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Commit index set to 7 12:44:43,510 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 7 (of expected -1) 12:44:43,510 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 7, context.getLastApplied(): 6, lastIndex(): 7 12:44:43,510 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Setting last applied to 7 12:44:43,510 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Moving last applied index from 6 to 7 12:44:43,510 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Applying state for log index 7 data seven 12:44:43,511 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: applyState called: seven 12:44:43,511 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Persisting ApplyJournalEntries with index=7 12:44:43,547 AM [main] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Updated server config: isVoting: true, peers: [PeerInfo [id=follower777, address=akka://test/user/follower777, votingState=NON_VOTING], PeerInfo [id=follower776, address=akka://test/user/follower776, votingState=NON_VOTING]] 12:44:43,547 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persist data SimpleReplicatedLogEntry [index=8, term=6, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader775, isVoting=true], ServerInfo[peerId=follower776, isVoting=false], ServerInfo[peerId=follower777, isVoting=false]]]] 12:44:43,547 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Append log entry and persist SimpleReplicatedLogEntry [index=8, term=6, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader775, isVoting=true], ServerInfo[peerId=follower776, isVoting=false], ServerInfo[peerId=follower777, isVoting=false]]]] 12:44:43,547 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Replicate message: identifier: MockIdentifier{value=serverConfig}, logIndex: 8, isSendImmediate: true 12:44:43,548 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower777: active: false, followerNextIndex: 2, leaderLastIndex: 8, leaderSnapShotIndex: 6 12:44:43,548 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 8, leaderLastIndex: 8, leaderSnapShotIndex: 6 12:44:43,548 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendAppendEntries: 8 is present for follower follower776 12:44:43,548 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Sending AppendEntries to follower follower776: AppendEntries [leaderId=leader775, prevLogIndex=7, prevLogTerm=6, leaderCommit=7, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=8, term=6, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader775, isVoting=true], ServerInfo[peerId=follower776, isVoting=false], ServerInfo[peerId=follower777, isVoting=false]]]]]] 12:44:43,548 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): handleAppendEntries: AppendEntries [leaderId=leader775, prevLogIndex=7, prevLogTerm=6, leaderCommit=7, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=8, term=6, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader775, isVoting=true], ServerInfo[peerId=follower776, isVoting=false], ServerInfo[peerId=follower777, isVoting=false]]]]]] 12:44:43,548 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Number of entries to be appended = 1 12:44:43,548 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): After cleanup, lastIndex: 7, entries to be added from: 0 12:44:43,548 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader775, isVoting=true], ServerInfo[peerId=follower776, isVoting=false], ServerInfo[peerId=follower777, isVoting=false]]] 12:44:43,548 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Append log entry and persist SimpleReplicatedLogEntry [index=8, term=6, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader775, isVoting=true], ServerInfo[peerId=follower776, isVoting=false], ServerInfo[peerId=follower777, isVoting=false]]]] 12:44:43,548 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Updated server config: isVoting: false, peers: [PeerInfo [id=follower777, address=akka://test/user/follower777, votingState=NON_VOTING], PeerInfo [id=leader775, address=akka://test/user/leader775, votingState=VOTING]] 12:44:43,548 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Log size is now 7 12:44:43,548 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower776, logLastIndex=8, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:43,548 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: persist complete SimpleReplicatedLogEntry [index=8, term=6, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader775, isVoting=true], ServerInfo[peerId=follower776, isVoting=false], ServerInfo[peerId=follower777, isVoting=false]]]] 12:44:43,548 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 7 (of expected -1) 12:44:43,548 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Applying to log - commitIndex: 8, lastAppliedIndex: 7 12:44:43,548 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Setting last applied to 8 12:44:43,548 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Moving last applied index from 7 to 8 12:44:43,548 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Applying state for log index 8 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader775, isVoting=true], ServerInfo[peerId=follower776, isVoting=false], ServerInfo[peerId=follower777, isVoting=false]]] 12:44:43,548 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower776 updated: matchIndex: 8, nextIndex: 9 12:44:43,549 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Checking sendAppendEntries for follower follower776: active: true, followerNextIndex: 9, leaderLastIndex: 8, leaderSnapShotIndex: 6 12:44:43,549 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persisting ApplyJournalEntries with index=8 12:44:43,549 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: persist complete SimpleReplicatedLogEntry [index=8, term=6, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader775, isVoting=true], ServerInfo[peerId=follower776, isVoting=false], ServerInfo[peerId=follower777, isVoting=false]]]] 12:44:43,549 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Commit index set to 8 12:44:43,549 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 8 (of expected -1) 12:44:43,549 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): 7, lastIndex(): 8 12:44:43,549 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776 (Follower): Setting last applied to 8 12:44:43,549 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Moving last applied index from 7 to 8 12:44:43,549 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Applying state for log index 8 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader775, isVoting=true], ServerInfo[peerId=follower776, isVoting=false], ServerInfo[peerId=follower777, isVoting=false]]] 12:44:43,549 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: Persisting ApplyJournalEntries with index=8 12:44:43,598 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyInstallSnapshotToLaggingFollower starting 12:44:43,631 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower777: Lagging -2 entries behind leader leader775 and reached 1 (of expected -1) 12:44:43,631 AM [test-akka.actor.default-dispatcher-14] [WARN] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply [term=6, success=true, followerId=follower777, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], timeSinceLastActivity : 719, lastApplied : 8, commitIndex : 8 12:44:43,631 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Initiating install snapshot to follower follower777: follower nextIndex: 2, leader snapshotIndex: 6, leader lastIndex: 8, leader log size: 2 12:44:43,631 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=8, lastAppliedTerm=6, lastIndex=8, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on follower777 12:44:43,631 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: lastSequenceNumber prior to capture: 20 12:44:43,631 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: CaptureSnapshotReply received by actor 12:44:43,631 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower777: Lagging -2 entries behind leader leader775 and reached 1 (of expected -1) 12:44:43,632 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Persisting of snapshot done: Snapshot [lastIndex=8, lastTerm=6, lastAppliedIndex=8, lastAppliedTerm=6, unAppliedEntries size=0, state=MockSnapshotState [state=[zero, one, two, three, four, five, six, seven]], electionTerm=6, electionVotedFor=leader775, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower777, isVoting=false], ServerInfo[peerId=follower776, isVoting=false], ServerInfo[peerId=leader775, isVoting=true]]]] 12:44:43,632 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 6 and term: 6 12:44:43,632 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): sendInstallSnapshot 12:44:43,632 AM [test-akka.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader775 (Leader): Snapshot 431 bytes, total chunks to send: 1 12:44:43,632 AM [test-akka.actor.default-dispatcher-14] [DEBUG] LeaderInstallSnapshotState - leader775 (Leader): Next chunk: total length=431, offset=0, size=431, hashCode=1645026355 12:44:43,632 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): next snapshot chunk size for follower follower777: 431 12:44:43,632 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): InstallSnapshot sent to follower Vector(user, follower777), Chunk: 1/1 12:44:43,632 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): handleInstallSnapshot: InstallSnapshot [term=6, leaderId=leader775, lastIncludedIndex=8, lastIncludedTerm=6, datasize=431, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower777, isVoting=false], ServerInfo[peerId=follower776, isVoting=false], ServerInfo[peerId=leader775, isVoting=true]]]] 12:44:43,632 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: SaveSnapshotSuccess received for snapshot, sequenceNr: 20 12:44:43,632 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower777: Lagging 7 entries behind leader leader775 and reached 1 (of expected -1) 12:44:43,632 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: Snapshot success - sequence number: 20 12:44:43,632 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:44:43,632 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): Snapshot installed from leader: leader775 12:44:43,632 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: SnapshotComplete received 12:44:43,633 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: handled a snapshot response 12:44:43,633 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: handled a journal response 12:44:43,633 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Applying snapshot on follower: Snapshot [lastIndex=8, lastTerm=6, lastAppliedIndex=8, lastAppliedTerm=6, unAppliedEntries size=0, state=MockSnapshotState [state=[zero, one, two, three, four, five, six, seven]], electionTerm=6, electionVotedFor=leader775, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower777, isVoting=false], ServerInfo[peerId=follower776, isVoting=false], ServerInfo[peerId=leader775, isVoting=true]]]] 12:44:43,633 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: 6 12:44:43,633 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: SaveSnapshotSuccess received for snapshot, sequenceNr: 6 12:44:43,633 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Snapshot success - sequence number: 6 12:44:43,633 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Moving last applied index from 1 to 8 12:44:43,633 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Set currentTerm=6, votedFor=leader775 12:44:43,634 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: Updated server config: isVoting: false, peers: [PeerInfo [id=follower776, address=akka://test/user/follower776, votingState=NON_VOTING], PeerInfo [id=leader775, address=akka://test/user/leader775, votingState=VOTING]] 12:44:43,634 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: applySnapshot called 12:44:43,634 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=6, followerId=follower777, chunkIndex=1, success=true] 12:44:43,634 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=6, followerId=follower777, chunkIndex=1, success=true] 12:44:43,634 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: SnapshotComplete received 12:44:43,634 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader775 (Leader): Snapshot successfully installed on follower follower777 (last chunk 1) - matchIndex set to 8, nextIndex set to 9 12:44:43,634 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader775: fakeSnapshot purging log to 7 for term 6 12:44:43,634 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: handled a snapshot response 12:44:43,634 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower777: handled a journal response 12:44:43,751 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower777: Lagging 0 entries behind leader leader775 and reached 8 (of expected -1) 12:44:43,751 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower776: Lagging 0 entries behind leader leader775 and reached 8 (of expected -1) 12:44:43,751 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower776: fakeSnapshot purging log to 7 for term 6 12:44:43,800 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyInstallSnapshotToLaggingFollower complete 12:44:43,800 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotWithLaggingFollowerCaughtUpViaInstallSnapshot complete 12:44:43,800 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower776-collector778#1881291756] 12:44:43,811 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower776] 12:44:43,812 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower777-collector779#805940176] 12:44:43,812 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower777] 12:44:43,812 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader775-collector780#-279188289] 12:44:43,812 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader775] 12:44:43,813 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotWithLaggingFollowerCaughtUpViaAppendEntries starting 12:44:43,815 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower785 with journal batch size 1000 [WARN] [10/28/2024 00:44:43.815] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower785]: org.opendaylight.controller.cluster.common.actor.Monitor@73e4e6eb 12:44:43,817 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:44:43,817 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower786 with journal batch size 1000 [WARN] [10/28/2024 00:44:43.817] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower786]: org.opendaylight.controller.cluster.common.actor.Monitor@3d9e0d6e 12:44:43,817 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [10/28/2024 00:44:43.819] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader784]: org.opendaylight.controller.cluster.common.actor.Monitor@49545f8b 12:44:43,819 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader784 with journal batch size 1000 12:44:43,820 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Set currentTerm=5, votedFor=leader784 12:44:43,821 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:44:44,300 AM [test-akka.actor.default-dispatcher-18] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:44:44,300 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.88:25520, Removed) 12:44:44,300 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Follower): Received ElectionTimeout - switching to Candidate 12:44:44,300 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Candidate): Election: Candidate has following voting peers: [follower786, follower785] 12:44:44,300 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Set currentTerm=6, votedFor=leader784 12:44:44,300 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Candidate): Starting new election term 6 12:44:44,301 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Candidate): Sending RequestVote [term=6, candidateId=leader784, lastLogIndex=-1, lastLogTerm=-1] to peer follower786 12:44:44,301 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Candidate): Sending RequestVote [term=6, candidateId=leader784, lastLogIndex=-1, lastLogTerm=-1] to peer follower785 12:44:44,301 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:44:44,301 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Follower) :- Switching from behavior Follower to Candidate, election term: 6 12:44:44,301 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Cluster state: [] 12:44:44,301 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader784, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 12:44:44,301 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader784, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 12:44:44,301 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Set currentTerm=6, votedFor=null 12:44:44,301 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:44:44,301 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Cluster state: [] 12:44:44,301 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): In requestVote: RequestVote [term=6, candidateId=leader784, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 12:44:44,301 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader784, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 12:44:44,301 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Set currentTerm=6, votedFor=leader784 12:44:44,301 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader784, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 12:44:44,301 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Set currentTerm=6, votedFor=null 12:44:44,301 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 12:44:44,301 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): In requestVote: RequestVote [term=6, candidateId=leader784, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 12:44:44,301 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Set currentTerm=6, votedFor=leader784 12:44:44,301 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 12:44:44,302 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Candidate): RaftRPC message received RequestVoteReply [term=6, voteGranted=true], my term is 6 12:44:44,302 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Candidate): handleRequestVoteReply: RequestVoteReply [term=6, voteGranted=true], current voteCount: 1 12:44:44,302 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Election: Leader has following peers: [follower786, follower785] 12:44:44,302 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower786: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:44:44,302 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower785: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:44:44,302 AM [test-akka.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Candidate) :- Switching from behavior Candidate to Leader, election term: 6 12:44:44,303 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower786: Last sync leader does not match current leader leader784, need to catch up to -1 12:44:44,303 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower785: Last sync leader does not match current leader leader784, need to catch up to -1 12:44:44,303 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower786 updated: matchIndex: -1, nextIndex: 0 12:44:44,303 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower786: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:44:44,303 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower785 updated: matchIndex: -1, nextIndex: 0 12:44:44,303 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower785: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [10/28/2024 00:44:44.303] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower785] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3a7ebffa [WARN] [10/28/2024 00:44:44.303] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower786] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@10246e16 12:44:44,326 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - Leader created and elected 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Persist data SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower786: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 0 is present for follower follower786 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Sending AppendEntries to follower follower786: AppendEntries [leaderId=leader784, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower785: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 0 is present for follower follower785 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Sending AppendEntries to follower follower785: AppendEntries [leaderId=leader784, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:44,326 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): handleAppendEntries: AppendEntries [leaderId=leader784, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:44,326 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Number of entries to be appended = 1 12:44:44,326 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:44:44,326 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Append entry to log zero 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Persist data SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:44,326 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:44,326 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): handleAppendEntries: AppendEntries [leaderId=leader784, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:44,326 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Number of entries to be appended = 1 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:44:44,326 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:44:44,326 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Append entry to log zero 12:44:44,326 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower786: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:44,326 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Log size is now 1 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 0 is present for follower follower786 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower785: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 0 is present for follower follower785 12:44:44,326 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower786, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:44,326 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Log size is now 1 12:44:44,326 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower786: Lagging 0 entries behind leader leader784 and reached -1 (of expected -1) 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower786 updated: matchIndex: 0, nextIndex: 1 12:44:44,326 AM [test-akka.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower785, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:44,326 AM [test-akka.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower785: Lagging 0 entries behind leader leader784 and reached -1 (of expected -1) 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower786: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 1 is present for follower follower786 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Sending AppendEntries to follower follower786: AppendEntries [leaderId=leader784, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:44,326 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower785 updated: matchIndex: 0, nextIndex: 1 12:44:44,327 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower785: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:44,327 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 1 is present for follower follower785 12:44:44,327 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Sending AppendEntries to follower follower785: AppendEntries [leaderId=leader784, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:44,328 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:44,328 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 12:44:44,328 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] [WARN] [10/28/2024 00:44:44.328] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower786] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3ef300c7 12:44:44,328 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): handleAppendEntries: AppendEntries [leaderId=leader784, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:44,328 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Number of entries to be appended = 1 12:44:44,328 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:44:44,328 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Append entry to log one 12:44:44,328 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:44,328 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:44,328 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Log size is now 2 12:44:44,328 AM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower786, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:44,328 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower786: Lagging 0 entries behind leader leader784 and reached -1 (of expected -1) 12:44:44,329 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): handleAppendEntries: AppendEntries [leaderId=leader784, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:44,329 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Number of entries to be appended = 1 12:44:44,329 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Setting last applied to 0 12:44:44,329 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:44:44,329 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Moving last applied index from -1 to 0 12:44:44,329 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Append entry to log one 12:44:44,329 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:44,329 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Applying state for log index 0 data zero [WARN] [10/28/2024 00:44:44.329] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower785] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6e06f490 12:44:44,329 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Log size is now 2 12:44:44,329 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower785, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:44,329 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower785: Lagging 0 entries behind leader leader784 and reached -1 (of expected -1) 12:44:44,329 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: applyState called: zero 12:44:44,329 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower786 updated: matchIndex: 1, nextIndex: 2 12:44:44,329 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower786: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:44,329 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower785 updated: matchIndex: 1, nextIndex: 2 12:44:44,329 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower785: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:44,329 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Persisting ApplyJournalEntries with index=0 12:44:44,329 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:44,329 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 12:44:44,329 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Setting last applied to 1 12:44:44,329 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Moving last applied index from 0 to 1 12:44:44,329 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Applying state for log index 1 data one 12:44:44,329 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:44,330 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Commit index set to 0 12:44:44,330 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:44,330 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: applyState called: one 12:44:44,330 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower786: Lagging 0 entries behind leader leader784 and reached 0 (of expected -1) 12:44:44,330 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 12:44:44,330 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: fakeSnapshot purging log to 0 for term 6 12:44:44,330 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Setting last applied to 0 12:44:44,330 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Moving last applied index from -1 to 0 12:44:44,330 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Applying state for log index 0 data zero 12:44:44,330 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Commit index set to 0 12:44:44,330 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower785: Lagging 0 entries behind leader leader784 and reached 0 (of expected -1) 12:44:44,330 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 12:44:44,330 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Setting last applied to 0 12:44:44,330 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: applyState called: zero 12:44:44,330 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Moving last applied index from -1 to 0 12:44:44,330 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Applying state for log index 0 data zero 12:44:44,330 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Persisting ApplyJournalEntries with index=0 12:44:44,330 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: applyState called: zero 12:44:44,330 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Persisting ApplyJournalEntries with index=1 12:44:44,330 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Persisting ApplyJournalEntries with index=0 12:44:44,330 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Commit index set to 1 12:44:44,330 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower785: Lagging 0 entries behind leader leader784 and reached 1 (of expected -1) 12:44:44,330 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:44:44,330 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Setting last applied to 1 12:44:44,330 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Moving last applied index from 0 to 1 12:44:44,330 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Applying state for log index 1 data one 12:44:44,330 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: applyState called: one 12:44:44,330 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: fakeSnapshot purging log to 0 for term 6 12:44:44,330 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Persisting ApplyJournalEntries with index=1 12:44:44,331 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Commit index set to 1 12:44:44,331 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower786: Lagging 0 entries behind leader leader784 and reached 1 (of expected -1) 12:44:44,331 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:44:44,331 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Setting last applied to 1 12:44:44,331 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Moving last applied index from 0 to 1 12:44:44,331 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Applying state for log index 1 data one 12:44:44,331 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: applyState called: one 12:44:44,331 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: fakeSnapshot purging log to 0 for term 6 12:44:44,331 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Persisting ApplyJournalEntries with index=1 12:44:44,540 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower786: Lagging 0 entries behind leader leader784 and reached 1 (of expected -1) 12:44:44,540 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower785: Lagging 0 entries behind leader leader784 and reached 1 (of expected -1) 12:44:44,577 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Persist data SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:44,577 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:44,577 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 12:44:44,577 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower786: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:44:44,577 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 2 is present for follower follower786 12:44:44,577 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Sending AppendEntries to follower follower786: AppendEntries [leaderId=leader784, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 12:44:44,577 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower785: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:44:44,577 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 2 is present for follower follower785 12:44:44,577 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Sending AppendEntries to follower follower785: AppendEntries [leaderId=leader784, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 12:44:44,577 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): handleAppendEntries: AppendEntries [leaderId=leader784, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 12:44:44,577 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Number of entries to be appended = 1 12:44:44,577 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:44:44,577 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Append entry to log two 12:44:44,577 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:44,577 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Log size is now 2 12:44:44,578 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower785, logLastIndex=2, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:44,578 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower785: Lagging 0 entries behind leader leader784 and reached 1 (of expected -1) 12:44:44,578 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower785 updated: matchIndex: 2, nextIndex: 3 12:44:44,578 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower785: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:44:44,578 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:44,578 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:44,578 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 12:44:44,578 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Setting last applied to 2 12:44:44,578 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Moving last applied index from 1 to 2 12:44:44,578 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Applying state for log index 2 data two 12:44:44,578 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: applyState called: two 12:44:44,578 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: fakeSnapshot purging log to 1 for term 6 12:44:44,578 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Persisting ApplyJournalEntries with index=2 12:44:44,661 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 2 is present for follower follower786 12:44:44,661 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Sending AppendEntries to follower follower786: AppendEntries [leaderId=leader784, prevLogIndex=1, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 12:44:44,780 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 2 is present for follower follower786 12:44:44,780 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Sending AppendEntries to follower follower786: AppendEntries [leaderId=leader784, prevLogIndex=1, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 12:44:44,780 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Commit index set to 2 12:44:44,780 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower785: Lagging 0 entries behind leader leader784 and reached 2 (of expected -1) 12:44:44,780 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:44:44,780 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Setting last applied to 2 12:44:44,780 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Moving last applied index from 1 to 2 12:44:44,780 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Applying state for log index 2 data two 12:44:44,780 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: applyState called: two 12:44:44,780 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: fakeSnapshot purging log to 1 for term 6 12:44:44,780 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Persisting ApplyJournalEntries with index=2 12:44:44,828 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Persist data SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:44,828 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:44,828 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, isSendImmediate: true 12:44:44,828 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower786: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 1 12:44:44,829 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 2 is present for follower follower786 12:44:44,829 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower785: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 12:44:44,829 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 3 is present for follower follower785 12:44:44,829 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Sending AppendEntries to follower follower785: AppendEntries [leaderId=leader784, prevLogIndex=2, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 12:44:44,829 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): handleAppendEntries: AppendEntries [leaderId=leader784, prevLogIndex=2, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 12:44:44,829 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Number of entries to be appended = 1 12:44:44,829 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 12:44:44,829 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Append entry to log three 12:44:44,829 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:44,829 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Log size is now 2 12:44:44,829 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower785, logLastIndex=3, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:44,829 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower785: Lagging 0 entries behind leader leader784 and reached 2 (of expected -1) 12:44:44,829 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower785 updated: matchIndex: 3, nextIndex: 4 12:44:44,829 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower785: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 12:44:44,829 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:44,829 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:44,829 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=6, lastIndex=3, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=1, mandatoryTrim=false] 12:44:44,829 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: lastSequenceNumber prior to capture: 9 12:44:44,829 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 12:44:44,829 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Setting last applied to 3 12:44:44,829 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Moving last applied index from 2 to 3 12:44:44,829 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Applying state for log index 3 data three 12:44:44,829 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: applyState called: three 12:44:44,830 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: CaptureSnapshotReply received by actor 12:44:44,830 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Persisting of snapshot done: Snapshot [lastIndex=3, lastTerm=6, lastAppliedIndex=2, lastAppliedTerm=6, unAppliedEntries size=1, state=MockSnapshotState [state=[zero, one, two]], electionTerm=6, electionVotedFor=leader784, ServerConfigPayload=null] 12:44:44,830 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 6 12:44:44,830 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Persisting ApplyJournalEntries with index=3 12:44:44,830 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: SaveSnapshotSuccess received for snapshot, sequenceNr: 9 12:44:44,830 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Snapshot success - sequence number: 9 12:44:44,830 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: SnapshotComplete received 12:44:44,830 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: handled a snapshot response 12:44:44,831 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: handled a journal response 12:44:44,879 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotWithLaggingFollowerCaughtUpViaAppendEntries: sending 2 more payloads 12:44:44,879 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Persist data SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:44,879 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:44,879 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, isSendImmediate: true 12:44:44,879 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower786: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: 1 12:44:44,879 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 2 is present for follower follower786 12:44:44,879 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Sending AppendEntries to follower follower786: AppendEntries [leaderId=leader784, prevLogIndex=1, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two], SimpleReplicatedLogEntry [index=3, term=6, payload=three], SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 12:44:44,879 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower785: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: 1 12:44:44,879 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 4 is present for follower follower785 12:44:44,879 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Sending AppendEntries to follower follower785: AppendEntries [leaderId=leader784, prevLogIndex=3, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 12:44:44,879 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): handleAppendEntries: AppendEntries [leaderId=leader784, prevLogIndex=3, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 12:44:44,879 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Number of entries to be appended = 1 12:44:44,879 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 12:44:44,879 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Append entry to log four 12:44:44,879 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:44,880 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Log size is now 3 12:44:44,880 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Commit index set to 3 12:44:44,880 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower785, logLastIndex=4, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:44,880 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower785: Lagging 0 entries behind leader leader784 and reached 3 (of expected -1) 12:44:44,880 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 4 12:44:44,880 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Setting last applied to 3 12:44:44,880 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Moving last applied index from 2 to 3 12:44:44,880 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Applying state for log index 3 data three 12:44:44,880 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: applyState called: three 12:44:44,880 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower785 updated: matchIndex: 4, nextIndex: 5 12:44:44,880 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower785: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: 1 12:44:44,880 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Persist data SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:44,880 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:44,880 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Replicate message: identifier: MockIdentifier{value=five}, logIndex: 5, isSendImmediate: true 12:44:44,880 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower786: active: true, followerNextIndex: 2, leaderLastIndex: 5, leaderSnapShotIndex: 1 12:44:44,880 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 2 is present for follower follower786 12:44:44,880 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower785: active: true, followerNextIndex: 5, leaderLastIndex: 5, leaderSnapShotIndex: 1 12:44:44,880 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 5 is present for follower follower785 12:44:44,880 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Sending AppendEntries to follower follower785: AppendEntries [leaderId=leader784, prevLogIndex=4, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five]]] 12:44:44,881 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:44,881 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Persisting ApplyJournalEntries with index=3 12:44:44,881 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): handleAppendEntries: AppendEntries [leaderId=leader784, prevLogIndex=4, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five]]] 12:44:44,881 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Number of entries to be appended = 1 12:44:44,881 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): After cleanup, lastIndex: 4, entries to be added from: 0 12:44:44,881 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Append entry to log five 12:44:44,881 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:44,881 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Log size is now 4 12:44:44,881 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower785, logLastIndex=5, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:44,881 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower785: Lagging 0 entries behind leader leader784 and reached 3 (of expected -1) 12:44:44,881 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower785 updated: matchIndex: 5, nextIndex: 6 12:44:44,881 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower785: active: true, followerNextIndex: 6, leaderLastIndex: 5, leaderSnapShotIndex: 1 12:44:44,881 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:44,881 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 12:44:44,881 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Setting last applied to 4 12:44:44,881 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Moving last applied index from 3 to 4 12:44:44,881 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Applying state for log index 4 data four 12:44:44,881 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: applyState called: four 12:44:44,881 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:44,882 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Persisting ApplyJournalEntries with index=4 12:44:44,882 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:44,882 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Applying to log - commitIndex: 5, lastAppliedIndex: 4 12:44:44,882 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Setting last applied to 5 12:44:44,882 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Moving last applied index from 4 to 5 12:44:44,882 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Applying state for log index 5 data five 12:44:44,882 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: applyState called: five 12:44:44,882 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: Persisting ApplyJournalEntries with index=5 12:44:44,900 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 2 is present for follower follower786 12:44:44,900 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Sending AppendEntries to follower follower786: AppendEntries [leaderId=leader784, prevLogIndex=1, prevLogTerm=6, leaderCommit=5, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two], SimpleReplicatedLogEntry [index=3, term=6, payload=three], SimpleReplicatedLogEntry [index=4, term=6, payload=four], SimpleReplicatedLogEntry [index=5, term=6, payload=five]]] 12:44:45,20 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Commit index set to 5 12:44:45,20 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower785: Lagging 0 entries behind leader leader784 and reached 5 (of expected -1) 12:44:45,20 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 5, context.getLastApplied(): 3, lastIndex(): 5 12:44:45,20 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Setting last applied to 4 12:44:45,20 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Moving last applied index from 3 to 4 12:44:45,20 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Applying state for log index 4 data four 12:44:45,20 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: applyState called: four 12:44:45,20 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785 (Follower): Setting last applied to 5 12:44:45,20 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Moving last applied index from 4 to 5 12:44:45,20 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Applying state for log index 5 data five 12:44:45,20 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: applyState called: five 12:44:45,20 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: Persisting ApplyJournalEntries with index=5 12:44:45,140 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower786: Lagging -2 entries behind leader leader784 and reached 1 (of expected -1) 12:44:45,140 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower785: Lagging 0 entries behind leader leader784 and reached 5 (of expected -1) 12:44:45,140 AM [test-akka.actor.default-dispatcher-6] [WARN] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply [term=6, success=true, followerId=follower786, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], timeSinceLastActivity : 600, lastApplied : 5, commitIndex : 5 12:44:45,140 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): sendAppendEntries: 2 is present for follower follower786 12:44:45,140 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Sending AppendEntries to follower follower786: AppendEntries [leaderId=leader784, prevLogIndex=1, prevLogTerm=6, leaderCommit=5, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two], SimpleReplicatedLogEntry [index=3, term=6, payload=three], SimpleReplicatedLogEntry [index=4, term=6, payload=four], SimpleReplicatedLogEntry [index=5, term=6, payload=five]]] 12:44:45,140 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): handleAppendEntries: AppendEntries [leaderId=leader784, prevLogIndex=1, prevLogTerm=6, leaderCommit=5, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two], SimpleReplicatedLogEntry [index=3, term=6, payload=three], SimpleReplicatedLogEntry [index=4, term=6, payload=four], SimpleReplicatedLogEntry [index=5, term=6, payload=five]]] 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Number of entries to be appended = 4 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Append entry to log two 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Append entry to log three 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Append entry to log four 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Append entry to log five 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Log size is now 5 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Commit index set to 5 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower786, logLastIndex=5, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower786: Lagging 0 entries behind leader leader784 and reached 5 (of expected -1) 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 5, context.getLastApplied(): 1, lastIndex(): 5 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Setting last applied to 2 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Moving last applied index from 1 to 2 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Applying state for log index 2 data two 12:44:45,141 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower786 updated: matchIndex: 5, nextIndex: 6 12:44:45,141 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784: fakeSnapshot purging log to 4 for term 6 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: applyState called: two 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Setting last applied to 3 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Moving last applied index from 2 to 3 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Applying state for log index 3 data three 12:44:45,141 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader784 (Leader): Checking sendAppendEntries for follower follower786: active: true, followerNextIndex: 6, leaderLastIndex: 5, leaderSnapShotIndex: 4 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: applyState called: three 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Setting last applied to 4 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Moving last applied index from 3 to 4 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Applying state for log index 4 data four 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: applyState called: four 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786 (Follower): Setting last applied to 5 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Moving last applied index from 4 to 5 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Applying state for log index 5 data five 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: applyState called: five 12:44:45,141 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: fakeSnapshot purging log to 1 for term 6 12:44:45,142 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:45,142 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:45,142 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:45,142 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:45,142 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: Persisting ApplyJournalEntries with index=5 12:44:45,260 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower785: Lagging 0 entries behind leader leader784 and reached 5 (of expected -1) 12:44:45,261 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower785: fakeSnapshot purging log to 4 for term 6 12:44:45,261 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower786: Lagging 0 entries behind leader leader784 and reached 5 (of expected -1) 12:44:45,261 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower786: fakeSnapshot purging log to 4 for term 6 12:44:45,380 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower786: Lagging 0 entries behind leader leader784 and reached 5 (of expected -1) 12:44:45,381 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower785: Lagging 0 entries behind leader leader784 and reached 5 (of expected -1) 12:44:45,501 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower785: Lagging 0 entries behind leader leader784 and reached 5 (of expected -1) 12:44:45,501 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower786: Lagging 0 entries behind leader leader784 and reached 5 (of expected -1) 12:44:45,534 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotWithLaggingFollowerCaughtUpViaAppendEntries complete 12:44:45,534 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower785-collector787#-1875450691] 12:44:45,545 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower785] 12:44:45,545 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower786-collector788#1993382994] 12:44:45,545 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower786] 12:44:45,546 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader784-collector789#83495255] 12:44:45,546 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader784] 12:44:45,547 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderInstallsSnapshotWithRestartedFollowerDuringSnapshotInstallation starting 12:44:45,549 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower794 with journal batch size 1000 [WARN] [10/28/2024 00:44:45.549] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower794]: org.opendaylight.controller.cluster.common.actor.Monitor@12f45231 [WARN] [10/28/2024 00:44:45.550] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower795]: org.opendaylight.controller.cluster.common.actor.Monitor@243b51cd 12:44:45,550 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower795 with journal batch size 1000 [WARN] [10/28/2024 00:44:45.551] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader793]: org.opendaylight.controller.cluster.common.actor.Monitor@2113391b 12:44:45,552 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:44:45,552 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:44:45,553 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader793 with journal batch size 1000 12:44:45,553 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Set currentTerm=5, votedFor=leader793 12:44:45,553 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:44:46,20 AM [test-akka.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:44:46,21 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.88:25520, Removed) 12:44:46,21 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Follower): Received ElectionTimeout - switching to Candidate 12:44:46,21 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Candidate): Election: Candidate has following voting peers: [follower795, follower794] 12:44:46,21 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Set currentTerm=6, votedFor=leader793 12:44:46,21 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Candidate): Starting new election term 6 12:44:46,21 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Candidate): Sending RequestVote [term=6, candidateId=leader793, lastLogIndex=-1, lastLogTerm=-1] to peer follower795 12:44:46,21 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Candidate): Sending RequestVote [term=6, candidateId=leader793, lastLogIndex=-1, lastLogTerm=-1] to peer follower794 12:44:46,21 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:44:46,21 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Follower) :- Switching from behavior Follower to Candidate, election term: 6 12:44:46,21 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Cluster state: [] 12:44:46,21 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader793, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 12:44:46,21 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader793, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 12:44:46,21 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Set currentTerm=6, votedFor=null 12:44:46,21 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:44:46,21 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): In requestVote: RequestVote [term=6, candidateId=leader793, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 12:44:46,21 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Set currentTerm=6, votedFor=leader793 12:44:46,21 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 12:44:46,21 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Cluster state: [] 12:44:46,21 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader793, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 12:44:46,22 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader793, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 12:44:46,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Set currentTerm=6, votedFor=null 12:44:46,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): In requestVote: RequestVote [term=6, candidateId=leader793, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 12:44:46,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Set currentTerm=6, votedFor=leader793 12:44:46,22 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 12:44:46,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Candidate): RaftRPC message received RequestVoteReply [term=6, voteGranted=true], my term is 6 12:44:46,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Candidate): handleRequestVoteReply: RequestVoteReply [term=6, voteGranted=true], current voteCount: 1 12:44:46,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Election: Leader has following peers: [follower795, follower794] 12:44:46,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower795: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:44:46,22 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:44:46,22 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower795: Last sync leader does not match current leader leader793, need to catch up to -1 12:44:46,22 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Candidate) :- Switching from behavior Candidate to Leader, election term: 6 12:44:46,22 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower794: Last sync leader does not match current leader leader793, need to catch up to -1 [WARN] [10/28/2024 00:44:46.022] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower795] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@d949dd1 [WARN] [10/28/2024 00:44:46.023] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower794] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@24842fb5 12:44:46,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower795 updated: matchIndex: -1, nextIndex: 0 12:44:46,23 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower795: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:44:46,25 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower794 updated: matchIndex: -1, nextIndex: 0 12:44:46,25 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:44:46,56 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - Leader created and elected 12:44:46,56 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persist data SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:46,56 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:46,56 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:44:46,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower795: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:44:46,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): sendAppendEntries: 0 is present for follower follower795 12:44:46,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Sending AppendEntries to follower follower795: AppendEntries [leaderId=leader793, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:46,57 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): handleAppendEntries: AppendEntries [leaderId=leader793, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:46,57 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Number of entries to be appended = 1 12:44:46,57 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:44:46,57 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Append entry to log zero 12:44:46,57 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:46,57 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Log size is now 1 12:44:46,57 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower795, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:46,57 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower795: Lagging 0 entries behind leader leader793 and reached -1 (of expected -1) 12:44:46,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:44:46,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): sendAppendEntries: 0 is present for follower follower794 12:44:46,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Sending AppendEntries to follower follower794: AppendEntries [leaderId=leader793, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:46,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower795 updated: matchIndex: 0, nextIndex: 1 12:44:46,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower795: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:44:46,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): handleAppendEntries: AppendEntries [leaderId=leader793, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:46,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Number of entries to be appended = 1 12:44:46,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:44:46,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Append entry to log zero 12:44:46,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:46,57 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:46,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Log size is now 1 12:44:46,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower794, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:46,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached -1 (of expected -1) 12:44:46,57 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persist data SimpleReplicatedLogEntry [index=1, term=6, payload=one] [WARN] [10/28/2024 00:44:46.057] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower795] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@35a46be9 12:44:46,58 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:46,58 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:44:46,58 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] [WARN] [10/28/2024 00:44:46.058] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower794] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3058136f 12:44:46,58 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower795: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:46,58 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): sendAppendEntries: 1 is present for follower follower795 12:44:46,58 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Sending AppendEntries to follower follower795: AppendEntries [leaderId=leader793, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:46,58 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:46,58 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): sendAppendEntries: 0 is present for follower follower794 12:44:46,58 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): handleAppendEntries: AppendEntries [leaderId=leader793, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:46,58 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower794 updated: matchIndex: 0, nextIndex: 1 12:44:46,58 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Number of entries to be appended = 1 12:44:46,58 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:44:46,58 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Append entry to log one 12:44:46,58 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:46,58 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:46,58 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): sendAppendEntries: 1 is present for follower follower794 12:44:46,58 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Sending AppendEntries to follower follower794: AppendEntries [leaderId=leader793, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:46,58 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Log size is now 2 12:44:46,58 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower795, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:46,58 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower795: Lagging 0 entries behind leader leader793 and reached -1 (of expected -1) 12:44:46,58 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): handleAppendEntries: AppendEntries [leaderId=leader793, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:46,58 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Number of entries to be appended = 1 12:44:46,58 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:44:46,59 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Append entry to log one 12:44:46,59 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:46,59 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower795 updated: matchIndex: 1, nextIndex: 2 12:44:46,59 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Log size is now 2 12:44:46,59 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower794, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:46,59 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached -1 (of expected -1) 12:44:46,59 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower795: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:46,59 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower794 updated: matchIndex: 1, nextIndex: 2 12:44:46,59 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:46,59 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:46,59 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:46,59 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:46,59 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 12:44:46,59 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Setting last applied to 0 12:44:46,59 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Moving last applied index from -1 to 0 12:44:46,59 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Applying state for log index 0 data zero 12:44:46,59 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: applyState called: zero 12:44:46,59 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persisting ApplyJournalEntries with index=0 12:44:46,59 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:46,59 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 12:44:46,60 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Setting last applied to 1 12:44:46,60 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Moving last applied index from 0 to 1 12:44:46,60 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Applying state for log index 1 data one 12:44:46,60 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: applyState called: one 12:44:46,60 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: fakeSnapshot purging log to 0 for term 6 12:44:46,60 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persisting ApplyJournalEntries with index=1 12:44:46,260 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Commit index set to 1 12:44:46,260 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower795: Lagging 0 entries behind leader leader793 and reached 1 (of expected -1) 12:44:46,260 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Commit index set to 1 12:44:46,260 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 12:44:46,260 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 1 (of expected -1) 12:44:46,260 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Setting last applied to 0 12:44:46,260 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 12:44:46,260 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Moving last applied index from -1 to 0 12:44:46,260 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Applying state for log index 0 data zero 12:44:46,260 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Setting last applied to 0 12:44:46,260 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Moving last applied index from -1 to 0 12:44:46,260 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Applying state for log index 0 data zero 12:44:46,260 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: applyState called: zero 12:44:46,260 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Setting last applied to 1 12:44:46,260 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: applyState called: zero 12:44:46,260 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Moving last applied index from 0 to 1 12:44:46,260 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Applying state for log index 1 data one 12:44:46,260 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Setting last applied to 1 12:44:46,260 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Moving last applied index from 0 to 1 12:44:46,260 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Applying state for log index 1 data one 12:44:46,260 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: applyState called: one 12:44:46,260 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: applyState called: one 12:44:46,260 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: fakeSnapshot purging log to 0 for term 6 12:44:46,261 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: fakeSnapshot purging log to 0 for term 6 12:44:46,261 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Persisting ApplyJournalEntries with index=1 12:44:46,261 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Persisting ApplyJournalEntries with index=1 12:44:46,381 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 1 (of expected -1) 12:44:46,381 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower795: Lagging 0 entries behind leader leader793 and reached 1 (of expected -1) 12:44:46,500 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 1 (of expected -1) [WARN] [10/28/2024 00:44:46.500] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower795] received dead letter from TestActor[akka://test/user/leader793]: AppendEntries [leaderId=leader793, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:44:46,621 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 1 (of expected -1) [WARN] [10/28/2024 00:44:46.621] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower795] received dead letter from TestActor[akka://test/user/leader793]: AppendEntries [leaderId=leader793, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:44:46,740 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 1 (of expected -1) [WARN] [10/28/2024 00:44:46.740] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower795] received dead letter from TestActor[akka://test/user/leader793]: AppendEntries [leaderId=leader793, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:44:46,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persist data SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:46,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:46,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 12:44:46,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower795: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:44:46,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:44:46,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): sendAppendEntries: 2 is present for follower follower794 12:44:46,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Sending AppendEntries to follower follower794: AppendEntries [leaderId=leader793, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] [WARN] [10/28/2024 00:44:46.814] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower795] received dead letter from TestActor[akka://test/user/leader793]: AppendEntries [leaderId=leader793, prevLogIndex=1, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:44:46,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): handleAppendEntries: AppendEntries [leaderId=leader793, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 12:44:46,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Number of entries to be appended = 1 12:44:46,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:44:46,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Append entry to log two 12:44:46,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:46,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Log size is now 2 12:44:46,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower794, logLastIndex=2, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:46,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 1 (of expected -1) 12:44:46,815 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower794 updated: matchIndex: 2, nextIndex: 3 12:44:46,815 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:44:46,815 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persist data SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:46,815 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:46,815 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, isSendImmediate: true 12:44:46,815 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower795: active: false, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 0 12:44:46,815 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 0 [WARN] [10/28/2024 00:44:46.816] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower795] received dead letter from TestActor[akka://test/user/leader793]: AppendEntries [leaderId=leader793, prevLogIndex=1, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): sendAppendEntries: 3 is present for follower follower794 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Sending AppendEntries to follower follower794: AppendEntries [leaderId=leader793, prevLogIndex=2, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persist data SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:46,816 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): handleAppendEntries: AppendEntries [leaderId=leader793, prevLogIndex=2, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:46,816 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Number of entries to be appended = 1 12:44:46,816 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 12:44:46,816 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Append entry to log three 12:44:46,816 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, isSendImmediate: true 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower795: active: false, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: 0 12:44:46,816 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Log size is now 3 12:44:46,816 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower794, logLastIndex=3, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] [WARN] [10/28/2024 00:44:46.816] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower795] received dead letter from TestActor[akka://test/user/leader793]: AppendEntries [leaderId=leader793, prevLogIndex=1, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:44:46,816 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 1 (of expected -1) 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: 0 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): sendAppendEntries: 3 is present for follower follower794 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower794 updated: matchIndex: 3, nextIndex: 4 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: 0 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): sendAppendEntries: 4 is present for follower follower794 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Sending AppendEntries to follower follower794: AppendEntries [leaderId=leader793, prevLogIndex=3, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persist data SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Replicate message: identifier: MockIdentifier{value=five}, logIndex: 5, isSendImmediate: true 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower795: active: false, followerNextIndex: 2, leaderLastIndex: 5, leaderSnapShotIndex: 0 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 4, leaderLastIndex: 5, leaderSnapShotIndex: 0 12:44:46,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): sendAppendEntries: 4 is present for follower follower794 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persist data SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Append log entry and persist SimpleReplicatedLogEntry [index=6, term=6, payload=six] [WARN] [10/28/2024 00:44:46.817] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower795] received dead letter from TestActor[akka://test/user/leader793]: AppendEntries [leaderId=leader793, prevLogIndex=1, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:44:46,817 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Replicate message: identifier: MockIdentifier{value=six}, logIndex: 6, isSendImmediate: true 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower795: active: false, followerNextIndex: 2, leaderLastIndex: 6, leaderSnapShotIndex: 0 12:44:46,817 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): handleAppendEntries: AppendEntries [leaderId=leader793, prevLogIndex=3, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 12:44:46,817 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Number of entries to be appended = 1 12:44:46,817 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 4, leaderLastIndex: 6, leaderSnapShotIndex: 0 12:44:46,817 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Append entry to log four 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): sendAppendEntries: 4 is present for follower follower794 12:44:46,817 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:46,817 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Log size is now 4 [WARN] [10/28/2024 00:44:46.817] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower795] received dead letter from TestActor[akka://test/user/leader793]: AppendEntries [leaderId=leader793, prevLogIndex=1, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:46,817 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower794, logLastIndex=4, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 12:44:46,817 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 1 (of expected -1) 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Setting last applied to 2 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Moving last applied index from 1 to 2 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Applying state for log index 2 data two 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: applyState called: two 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: fakeSnapshot purging log to 1 for term 6 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower794 updated: matchIndex: 4, nextIndex: 5 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 5, leaderLastIndex: 6, leaderSnapShotIndex: 1 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): sendAppendEntries: 5 is present for follower follower794 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Sending AppendEntries to follower follower794: AppendEntries [leaderId=leader793, prevLogIndex=4, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five], SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persisting ApplyJournalEntries with index=2 12:44:46,817 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:46,817 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=6, lastIndex=3, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=4, mandatoryTrim=false] 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): handleAppendEntries: AppendEntries [leaderId=leader793, prevLogIndex=4, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five], SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: lastSequenceNumber prior to capture: 8 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Number of entries to be appended = 2 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): After cleanup, lastIndex: 4, entries to be added from: 0 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Append entry to log five 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Setting last applied to 3 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Moving last applied index from 2 to 3 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Applying state for log index 3 data three 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Append entry to log six 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Append log entry and persist SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Log size is now 6 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: applyState called: three 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Commit index set to 2 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: CaptureSnapshotReply received by actor 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower794, logLastIndex=6, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 2 (of expected -1) 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 6 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Setting last applied to 2 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Moving last applied index from 1 to 2 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Applying state for log index 2 data two 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persisting of snapshot done: Snapshot [lastIndex=3, lastTerm=6, lastAppliedIndex=2, lastAppliedTerm=6, unAppliedEntries size=4, state=MockSnapshotState [state=[zero, one, two]], electionTerm=6, electionVotedFor=leader793, ServerConfigPayload=null] 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: applyState called: two 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: log size 5 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 2 12:44:46,818 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: fakeSnapshot purging log to 1 for term 6 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 6 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persisting ApplyJournalEntries with index=3 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower794 updated: matchIndex: 6, nextIndex: 7 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 7, leaderLastIndex: 6, leaderSnapShotIndex: 2 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Setting last applied to 4 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Moving last applied index from 3 to 4 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Applying state for log index 4 data four 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: applyState called: four 12:44:46,818 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:46,818 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: persist complete SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persisting ApplyJournalEntries with index=4 12:44:46,818 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Persisting ApplyJournalEntries with index=2 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Applying to log - commitIndex: 5, lastAppliedIndex: 4 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Setting last applied to 5 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Moving last applied index from 4 to 5 12:44:46,818 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Applying state for log index 5 data five 12:44:46,819 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: applyState called: five 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Commit index set to 3 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 3 (of expected -1) 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 6 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Setting last applied to 3 12:44:46,819 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persisting ApplyJournalEntries with index=5 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Moving last applied index from 2 to 3 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Applying state for log index 3 data three 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: applyState called: three 12:44:46,819 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: persist complete SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:46,819 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Applying to log - commitIndex: 6, lastAppliedIndex: 5 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Commit index set to 5 12:44:46,819 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Setting last applied to 6 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 5 (of expected -1) 12:44:46,819 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Moving last applied index from 5 to 6 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 5, context.getLastApplied(): 3, lastIndex(): 6 12:44:46,819 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Applying state for log index 6 data six 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Setting last applied to 4 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Moving last applied index from 3 to 4 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Applying state for log index 4 data four 12:44:46,819 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: applyState called: six 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: applyState called: four 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Setting last applied to 5 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Moving last applied index from 4 to 5 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Applying state for log index 5 data five 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: applyState called: five 12:44:46,819 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persisting ApplyJournalEntries with index=6 12:44:46,819 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Persisting ApplyJournalEntries with index=3 12:44:46,819 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: SaveSnapshotSuccess received for snapshot, sequenceNr: 8 12:44:46,819 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Snapshot success - sequence number: 8 12:44:46,819 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Commit index set to 6 12:44:46,819 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: SnapshotComplete received 12:44:46,819 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 6 (of expected -1) 12:44:46,819 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 6, context.getLastApplied(): 5, lastIndex(): 6 12:44:46,819 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Setting last applied to 6 12:44:46,819 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Moving last applied index from 5 to 6 12:44:46,819 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Applying state for log index 6 data six 12:44:46,819 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: applyState called: six 12:44:46,819 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: handled a snapshot response 12:44:46,820 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Persisting ApplyJournalEntries with index=5 12:44:46,820 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Persisting ApplyJournalEntries with index=6 12:44:46,820 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: handled a journal response [WARN] [10/28/2024 00:44:46.860] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower795] received dead letter from TestActor[akka://test/user/leader793]: AppendEntries [leaderId=leader793, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:44:46,865 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderInstallsSnapshotWithRestartedFollowerDuringSnapshotInstallation: sending 1 more payload to trigger second snapshot 12:44:46,865 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persist data SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 12:44:46,865 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Append log entry and persist SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 12:44:46,865 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Replicate message: identifier: MockIdentifier{value=seven}, logIndex: 7, isSendImmediate: true 12:44:46,865 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower795: active: false, followerNextIndex: 2, leaderLastIndex: 7, leaderSnapShotIndex: 2 12:44:46,865 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 7, leaderLastIndex: 7, leaderSnapShotIndex: 2 12:44:46,865 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): sendAppendEntries: 7 is present for follower follower794 12:44:46,865 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Sending AppendEntries to follower follower794: AppendEntries [leaderId=leader793, prevLogIndex=6, prevLogTerm=6, leaderCommit=6, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=7, term=6, payload=seven]]] [WARN] [10/28/2024 00:44:46.865] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower795] received dead letter from TestActor[akka://test/user/leader793]: AppendEntries [leaderId=leader793, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:44:46,865 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): handleAppendEntries: AppendEntries [leaderId=leader793, prevLogIndex=6, prevLogTerm=6, leaderCommit=6, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=7, term=6, payload=seven]]] 12:44:46,865 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Number of entries to be appended = 1 12:44:46,865 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): After cleanup, lastIndex: 6, entries to be added from: 0 12:44:46,865 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Append entry to log seven 12:44:46,865 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Append log entry and persist SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 12:44:46,865 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Log size is now 6 12:44:46,865 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower794, logLastIndex=7, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:46,866 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 6 (of expected -1) 12:44:46,866 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower794 updated: matchIndex: 7, nextIndex: 8 12:44:46,866 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower794: active: true, followerNextIndex: 8, leaderLastIndex: 7, leaderSnapShotIndex: 2 12:44:46,866 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: persist complete SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 12:44:46,866 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: persist complete SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 12:44:46,866 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=6, lastAppliedTerm=6, lastIndex=7, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=1, mandatoryTrim=false] 12:44:46,866 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: lastSequenceNumber prior to capture: 17 12:44:46,866 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Applying to log - commitIndex: 7, lastAppliedIndex: 6 12:44:46,866 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Setting last applied to 7 12:44:46,866 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Moving last applied index from 6 to 7 12:44:46,866 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Applying state for log index 7 data seven 12:44:46,866 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: applyState called: seven 12:44:46,866 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: CaptureSnapshotReply received by actor 12:44:46,866 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persisting of snapshot done: Snapshot [lastIndex=7, lastTerm=6, lastAppliedIndex=6, lastAppliedTerm=6, unAppliedEntries size=1, state=MockSnapshotState [state=[zero, one, two, three, four, five, six]], electionTerm=6, electionVotedFor=leader793, ServerConfigPayload=null] 12:44:46,866 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: log size 5 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 6 12:44:46,866 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 6 and term: 6 12:44:46,866 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persisting ApplyJournalEntries with index=7 12:44:46,867 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: SaveSnapshotSuccess received for snapshot, sequenceNr: 17 12:44:46,867 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Snapshot success - sequence number: 17 12:44:46,867 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: SnapshotComplete received 12:44:46,867 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: handled a snapshot response 12:44:46,867 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: handled a journal response [WARN] [10/28/2024 00:44:46.981] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower795] received dead letter from TestActor[akka://test/user/leader793]: AppendEntries [leaderId=leader793, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:44:46,981 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Commit index set to 7 12:44:46,981 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 7 (of expected -1) 12:44:46,981 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 7, context.getLastApplied(): 6, lastIndex(): 7 12:44:46,981 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794 (Follower): Setting last applied to 7 12:44:46,981 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Moving last applied index from 6 to 7 12:44:46,981 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Applying state for log index 7 data seven 12:44:46,981 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: applyState called: seven 12:44:46,981 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower794: Persisting ApplyJournalEntries with index=7 [WARN] [10/28/2024 00:44:47.018] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower795]: org.opendaylight.controller.cluster.common.actor.Monitor@8f8aa83 12:44:47,19 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower795 with journal batch size 1000 12:44:47,21 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Set currentTerm=6, votedFor=null 12:44:47,21 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Set currentTerm=6, votedFor=leader793 12:44:47,21 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Received ReplicatedLogEntry for recovery: index: 0, size: 4 12:44:47,21 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Received ReplicatedLogEntry for recovery: index: 1, size: 3 12:44:47,21 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Received apply journal entries for recovery, applying to state: 0 to 1 12:44:47,21 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Moving last applied index from -1 to 1 12:44:47,21 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Recovery completed in 70.12 μs - Switching actor to Follower - last log index = 1, last log term = 6, snapshot index = -1, snapshot term = -1, journal size = 2 12:44:47,101 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower795: Last sync leader does not match current leader leader793, need to catch up to -1 12:44:47,101 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 7 (of expected -1) 12:44:47,101 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: fakeSnapshot purging log to 0 for term 6 [WARN] [10/28/2024 00:44:47.101] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower795] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3135be39 12:44:47,101 AM [test-akka.actor.default-dispatcher-17] [WARN] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply [term=6, success=true, followerId=follower795, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], timeSinceLastActivity : 720, lastApplied : 7, commitIndex : 7 12:44:47,101 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Initiating install snapshot to follower follower795: follower nextIndex: 2, leader snapshotIndex: 6, leader lastIndex: 7, leader log size: 1 12:44:47,101 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=7, lastAppliedTerm=6, lastIndex=7, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on follower795 12:44:47,101 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: lastSequenceNumber prior to capture: 18 12:44:47,102 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower795: Lagging -2 entries behind leader leader793 and reached 1 (of expected -1) [WARN] [10/28/2024 00:44:47.102] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower795] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@fd4fb3c 12:44:47,102 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: CaptureSnapshotReply received by actor 12:44:47,102 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persisting of snapshot done: Snapshot [lastIndex=7, lastTerm=6, lastAppliedIndex=7, lastAppliedTerm=6, unAppliedEntries size=0, state=MockSnapshotState [state=[zero, one, two, three, four, five, six, seven]], electionTerm=6, electionVotedFor=leader793, ServerConfigPayload=null] 12:44:47,102 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 6 and term: 6 12:44:47,102 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): sendInstallSnapshot 12:44:47,102 AM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader793 (Leader): Snapshot 431 bytes, total chunks to send: 1 12:44:47,102 AM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader793 (Leader): Next chunk: total length=431, offset=0, size=431, hashCode=1645026355 12:44:47,102 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): next snapshot chunk size for follower follower795: 431 12:44:47,102 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): handleInstallSnapshot: InstallSnapshot [term=6, leaderId=leader793, lastIncludedIndex=7, lastIncludedTerm=6, datasize=431, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null] 12:44:47,102 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower795: Lagging 6 entries behind leader leader793 and reached 1 (of expected -1) 12:44:47,102 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:44:47,102 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Snapshot installed from leader: leader793 12:44:47,103 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Applying snapshot on follower: Snapshot [lastIndex=7, lastTerm=6, lastAppliedIndex=7, lastAppliedTerm=6, unAppliedEntries size=0, state=MockSnapshotState [state=[zero, one, two, three, four, five, six, seven]], electionTerm=6, electionVotedFor=leader793, ServerConfigPayload=null] 12:44:47,103 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: 5 12:44:47,103 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: SaveSnapshotSuccess received for snapshot, sequenceNr: 5 12:44:47,103 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Snapshot success - sequence number: 5 12:44:47,103 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): InstallSnapshot sent to follower Vector(user, follower795), Chunk: 1/1 12:44:47,103 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Moving last applied index from 1 to 7 12:44:47,103 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Set currentTerm=6, votedFor=leader793 12:44:47,103 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: applySnapshot called 12:44:47,104 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=6, followerId=follower795, chunkIndex=1, success=true] 12:44:47,104 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: SnapshotComplete received 12:44:47,104 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=6, followerId=follower795, chunkIndex=1, success=true] 12:44:47,104 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: handled a snapshot response 12:44:47,104 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Snapshot successfully installed on follower follower795 (last chunk 1) - matchIndex set to 7, nextIndex set to 8 12:44:47,104 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: SaveSnapshotSuccess received for snapshot, sequenceNr: 18 12:44:47,104 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Snapshot success - sequence number: 18 12:44:47,104 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: SnapshotComplete received 12:44:47,104 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: handled a journal response 12:44:47,104 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: handled a journal response 12:44:47,104 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: handled a snapshot response [WARN] [10/28/2024 00:44:47.119] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower795]: org.opendaylight.controller.cluster.common.actor.Monitor@1715f7d3 12:44:47,119 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower795 with journal batch size 1000 12:44:47,120 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:44:47,221 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Term 6 in "AppendEntries [leaderId=leader793, prevLogIndex=7, prevLogTerm=6, leaderCommit=7, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 12:44:47,221 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower794: Lagging 0 entries behind leader leader793 and reached 7 (of expected -1) 12:44:47,221 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Set currentTerm=6, votedFor=null 12:44:47,221 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): The followers log is empty and the senders prevLogIndex is 7 12:44:47,221 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=6, success=false, followerId=follower795, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:47,221 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower795: Last sync leader does not match current leader leader793, need to catch up to 7 12:44:47,221 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=6, success=false, followerId=follower795, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: 6, snapshotTerm: 6, replicatedToAllIndex: 6 12:44:47,221 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower795 updated: matchIndex: -1, nextIndex: 0 12:44:47,221 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): follower follower795 appears to be behind the leader from the last snapshot - updated: matchIndex: -1, nextIndex: 0 12:44:47,222 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Checking sendAppendEntries for follower follower795: active: true, followerNextIndex: 0, leaderLastIndex: 7, leaderSnapShotIndex: 6 12:44:47,222 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Initiating install snapshot to follower follower795: follower nextIndex: 0, leader snapshotIndex: 6, leader lastIndex: 7, leader log size: 1 12:44:47,222 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=7, lastAppliedTerm=6, lastIndex=7, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on follower795 12:44:47,222 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: lastSequenceNumber prior to capture: 18 [WARN] [10/28/2024 00:44:47.222] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower795] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3ef937f2 12:44:47,222 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Cannot append entries because the replicatedToAllIndex 6 does not appear to be in the in-memory journal - lastIndex: -1, snapshotIndex: -1, snapshotTerm: -1 12:44:47,222 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=6, success=false, followerId=follower795, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:47,222 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: CaptureSnapshotReply received by actor 12:44:47,222 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Persisting of snapshot done: Snapshot [lastIndex=7, lastTerm=6, lastAppliedIndex=7, lastAppliedTerm=6, unAppliedEntries size=0, state=MockSnapshotState [state=[zero, one, two, three, four, five, six, seven]], electionTerm=6, electionVotedFor=leader793, ServerConfigPayload=null] 12:44:47,222 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 6 and term: 6 12:44:47,222 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): sendInstallSnapshot 12:44:47,222 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader793 (Leader): Snapshot 431 bytes, total chunks to send: 1 12:44:47,222 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader793 (Leader): Next chunk: total length=431, offset=0, size=431, hashCode=1645026355 12:44:47,222 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): next snapshot chunk size for follower follower795: 431 12:44:47,222 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): InstallSnapshot sent to follower Vector(user, follower795), Chunk: 1/1 12:44:47,223 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): handleInstallSnapshot: InstallSnapshot [term=6, leaderId=leader793, lastIncludedIndex=7, lastIncludedTerm=6, datasize=431, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null] 12:44:47,223 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:44:47,223 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=6, success=false, followerId=follower795, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: 6, snapshotTerm: 6, replicatedToAllIndex: 6 12:44:47,223 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): Snapshot installed from leader: leader793 12:44:47,223 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): follower follower795 appears to be behind the leader from the last snapshot - updated: matchIndex: -1, nextIndex: 0 12:44:47,223 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: SaveSnapshotSuccess received for snapshot, sequenceNr: 18 12:44:47,223 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: Snapshot success - sequence number: 18 12:44:47,223 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: SnapshotComplete received 12:44:47,223 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: handled a snapshot response 12:44:47,223 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793: handled a journal response 12:44:47,223 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Applying snapshot on follower: Snapshot [lastIndex=7, lastTerm=6, lastAppliedIndex=7, lastAppliedTerm=6, unAppliedEntries size=0, state=MockSnapshotState [state=[zero, one, two, three, four, five, six, seven]], electionTerm=6, electionVotedFor=null, ServerConfigPayload=null] 12:44:47,223 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: 1 12:44:47,223 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: SaveSnapshotSuccess received for snapshot, sequenceNr: 1 12:44:47,224 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Snapshot success - sequence number: 1 12:44:47,224 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Moving last applied index from -1 to 7 12:44:47,224 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: Set currentTerm=6, votedFor=null 12:44:47,224 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: applySnapshot called 12:44:47,224 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=6, followerId=follower795, chunkIndex=1, success=true] 12:44:47,224 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=6, followerId=follower795, chunkIndex=1, success=true] 12:44:47,224 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: SnapshotComplete received 12:44:47,224 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader793 (Leader): Snapshot successfully installed on follower follower795 (last chunk 1) - matchIndex set to 7, nextIndex set to 8 12:44:47,224 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: handled a journal response 12:44:47,224 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower795: handled a snapshot response 12:44:47,270 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower794-collector796#965782950] 12:44:47,281 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower794] 12:44:47,281 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower795-collector797#-842482783] 12:44:47,281 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower795] 12:44:47,282 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader793-collector798#1206859436] 12:44:47,282 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader793] 12:44:47,282 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower795-collector799#1831559676] 12:44:47,282 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower795] 12:44:47,282 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower795-collector800#-335738311] 12:44:47,282 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower795] 12:44:47,283 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotTriggeredByMemoryThresholdExceededWithLaggingFollower starting [WARN] [10/28/2024 00:44:47.284] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower805]: org.opendaylight.controller.cluster.common.actor.Monitor@416b0542 12:44:47,284 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower805 with journal batch size 1000 [WARN] [10/28/2024 00:44:47.285] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower806]: org.opendaylight.controller.cluster.common.actor.Monitor@3631fa1f 12:44:47,286 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower806 with journal batch size 1000 12:44:47,286 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [10/28/2024 00:44:47.286] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader804]: org.opendaylight.controller.cluster.common.actor.Monitor@2d0bfb86 12:44:47,286 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader804 with journal batch size 1000 12:44:47,287 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:44:47,287 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Set currentTerm=5, votedFor=leader804 12:44:47,287 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:44:47,800 AM [test-akka.actor.default-dispatcher-18] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:44:47,800 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.88:25520, Removed) 12:44:47,800 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Follower): Received ElectionTimeout - switching to Candidate 12:44:47,800 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Candidate): Election: Candidate has following voting peers: [follower805, follower806] 12:44:47,800 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Set currentTerm=6, votedFor=leader804 12:44:47,800 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Candidate): Starting new election term 6 12:44:47,800 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Candidate): Sending RequestVote [term=6, candidateId=leader804, lastLogIndex=-1, lastLogTerm=-1] to peer follower805 12:44:47,800 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Candidate): Sending RequestVote [term=6, candidateId=leader804, lastLogIndex=-1, lastLogTerm=-1] to peer follower806 12:44:47,800 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:44:47,800 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Follower) :- Switching from behavior Follower to Candidate, election term: 6 12:44:47,800 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Cluster state: [] 12:44:47,800 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader804, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 12:44:47,801 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader804, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 12:44:47,801 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Set currentTerm=6, votedFor=null 12:44:47,801 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): In requestVote: RequestVote [term=6, candidateId=leader804, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 12:44:47,801 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Set currentTerm=6, votedFor=leader804 12:44:47,801 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:44:47,801 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 12:44:47,801 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Cluster state: [] 12:44:47,801 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader804, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 12:44:47,801 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader804, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 12:44:47,801 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Set currentTerm=6, votedFor=null 12:44:47,801 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): In requestVote: RequestVote [term=6, candidateId=leader804, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 12:44:47,801 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Set currentTerm=6, votedFor=leader804 12:44:47,801 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 12:44:47,802 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Candidate): RaftRPC message received RequestVoteReply [term=6, voteGranted=true], my term is 6 12:44:47,802 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Candidate): handleRequestVoteReply: RequestVoteReply [term=6, voteGranted=true], current voteCount: 1 12:44:47,802 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Election: Leader has following peers: [follower805, follower806] 12:44:47,802 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:44:47,802 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower806: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:44:47,802 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower805: Last sync leader does not match current leader leader804, need to catch up to -1 12:44:47,802 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Candidate) :- Switching from behavior Candidate to Leader, election term: 6 12:44:47,802 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower806: Last sync leader does not match current leader leader804, need to catch up to -1 [WARN] [10/28/2024 00:44:47.802] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower805] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5350e47c [WARN] [10/28/2024 00:44:47.803] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower806] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@b37f813 12:44:47,809 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower805 updated: matchIndex: -1, nextIndex: 0 12:44:47,810 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:44:47,810 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower806 updated: matchIndex: -1, nextIndex: 0 12:44:47,810 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower806: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:44:47,840 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - Leader created and elected 12:44:47,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persist data SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:47,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:47,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:44:47,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:44:47,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): sendAppendEntries: 0 is present for follower follower805 12:44:47,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Sending AppendEntries to follower follower805: AppendEntries [leaderId=leader804, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:47,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower806: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:44:47,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): sendAppendEntries: 0 is present for follower follower806 12:44:47,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Sending AppendEntries to follower follower806: AppendEntries [leaderId=leader804, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:47,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): handleAppendEntries: AppendEntries [leaderId=leader804, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:47,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Number of entries to be appended = 1 12:44:47,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:44:47,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Append entry to log zero 12:44:47,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:47,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Log size is now 1 12:44:47,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower806, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:47,841 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower806: Lagging 0 entries behind leader leader804 and reached -1 (of expected -1) 12:44:47,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower806 updated: matchIndex: 0, nextIndex: 1 12:44:47,841 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower806: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:44:47,841 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): handleAppendEntries: AppendEntries [leaderId=leader804, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 12:44:47,841 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Number of entries to be appended = 1 12:44:47,841 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:44:47,841 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Append entry to log zero 12:44:47,841 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:47,841 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Log size is now 1 12:44:47,841 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:47,841 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower805, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:47,841 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached -1 (of expected -1) 12:44:47,841 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 12:44:47,842 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Setting last applied to 0 12:44:47,842 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Moving last applied index from -1 to 0 12:44:47,842 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Applying state for log index 0 data zero 12:44:47,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:47,842 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: applyState called: zero 12:44:47,842 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower805 updated: matchIndex: 0, nextIndex: 1 [WARN] [10/28/2024 00:44:47.842] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower806] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6b5de6b3 12:44:47,842 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:44:47,842 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persisting ApplyJournalEntries with index=0 12:44:47,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 12:44:47,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Commit index set to 0 12:44:47,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 0 (of expected -1) 12:44:47,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 12:44:47,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Setting last applied to 0 [WARN] [10/28/2024 00:44:47.842] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower805] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5f0d6114 12:44:47,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Moving last applied index from -1 to 0 12:44:47,842 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Applying state for log index 0 data zero 12:44:47,842 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: applyState called: zero 12:44:47,842 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Persisting ApplyJournalEntries with index=0 12:44:48,41 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 0 (of expected -1) 12:44:48,41 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Commit index set to 0 12:44:48,41 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower806: Lagging 0 entries behind leader leader804 and reached 0 (of expected -1) 12:44:48,41 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 12:44:48,41 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Setting last applied to 0 12:44:48,41 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Moving last applied index from -1 to 0 12:44:48,41 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Applying state for log index 0 data zero 12:44:48,41 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: applyState called: zero 12:44:48,41 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Persisting ApplyJournalEntries with index=0 12:44:48,160 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 0 (of expected -1) 12:44:48,160 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower806: Lagging 0 entries behind leader leader804 and reached 0 (of expected -1) 12:44:48,281 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 0 (of expected -1) 12:44:48,400 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 0 (of expected -1) 12:44:48,521 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 0 (of expected -1) 12:44:48,599 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persist data SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:48,599 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:48,599 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:44:48,599 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:48,599 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): sendAppendEntries: 1 is present for follower follower805 12:44:48,599 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Sending AppendEntries to follower follower805: AppendEntries [leaderId=leader804, prevLogIndex=0, prevLogTerm=6, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:48,599 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower806: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:48,599 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): handleAppendEntries: AppendEntries [leaderId=leader804, prevLogIndex=0, prevLogTerm=6, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 12:44:48,600 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Number of entries to be appended = 1 12:44:48,600 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:44:48,600 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Append entry to log one 12:44:48,600 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:48,600 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Log size is now 2 12:44:48,600 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower805, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:48,600 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 0 (of expected -1) 12:44:48,600 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower805 updated: matchIndex: 1, nextIndex: 2 12:44:48,600 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:44:48,600 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:48,600 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 12:44:48,600 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Setting last applied to 1 12:44:48,600 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Moving last applied index from 0 to 1 12:44:48,600 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Applying state for log index 1 data one 12:44:48,600 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: applyState called: one 12:44:48,600 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: fakeSnapshot purging log to 0 for term 6 12:44:48,601 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persisting ApplyJournalEntries with index=1 12:44:48,601 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 12:44:48,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Commit index set to 1 12:44:48,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 1 (of expected -1) 12:44:48,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:44:48,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Setting last applied to 1 12:44:48,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Moving last applied index from 0 to 1 12:44:48,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Applying state for log index 1 data one 12:44:48,761 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: applyState called: one 12:44:48,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: fakeSnapshot purging log to 0 for term 6 12:44:48,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Persisting ApplyJournalEntries with index=1 12:44:48,880 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 1 (of expected -1) 12:44:49,0 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 1 (of expected -1) 12:44:49,55 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persist data SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:49,55 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:49,55 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 12:44:49,55 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:44:49,55 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): sendAppendEntries: 2 is present for follower follower805 12:44:49,55 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Sending AppendEntries to follower follower805: AppendEntries [leaderId=leader804, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 12:44:49,55 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower806: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:44:49,56 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): handleAppendEntries: AppendEntries [leaderId=leader804, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 12:44:49,56 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Number of entries to be appended = 1 12:44:49,56 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:44:49,56 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Append entry to log two 12:44:49,56 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:49,56 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Log size is now 2 12:44:49,56 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower805, logLastIndex=2, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:49,56 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 1 (of expected -1) 12:44:49,56 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower805 updated: matchIndex: 2, nextIndex: 3 12:44:49,56 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 0 12:44:49,56 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:49,56 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 12:44:49,56 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=6, lastIndex=2, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=1, mandatoryTrim=false] 12:44:49,56 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: lastSequenceNumber prior to capture: 7 12:44:49,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 12:44:49,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Setting last applied to 2 12:44:49,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Moving last applied index from 1 to 2 12:44:49,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Applying state for log index 2 data two 12:44:49,57 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: applyState called: two 12:44:49,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: CaptureSnapshotReply received by actor 12:44:49,57 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persisting of snapshot done: Snapshot [lastIndex=2, lastTerm=6, lastAppliedIndex=1, lastAppliedTerm=6, unAppliedEntries size=1, state=MockSnapshotState [state=[zero, one]], electionTerm=6, electionVotedFor=leader804, ServerConfigPayload=null] 12:44:49,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: log data size 705 exceeds the memory threshold 700 - doing snapshotPreCommit with index 1 12:44:49,57 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 6 12:44:49,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persisting ApplyJournalEntries with index=2 12:44:49,57 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: SaveSnapshotSuccess received for snapshot, sequenceNr: 7 12:44:49,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Snapshot success - sequence number: 7 12:44:49,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: SnapshotComplete received 12:44:49,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: handled a snapshot response 12:44:49,57 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: handled a journal response 12:44:49,230 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Commit index set to 2 12:44:49,230 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 2 (of expected -1) 12:44:49,230 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:44:49,230 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Setting last applied to 2 12:44:49,230 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Moving last applied index from 1 to 2 12:44:49,230 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Applying state for log index 2 data two 12:44:49,230 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: applyState called: two 12:44:49,231 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Persisting ApplyJournalEntries with index=2 12:44:49,257 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyInstallSnapshotToLaggingFollower starting 12:44:49,351 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower806: Lagging -1 entries behind leader leader804 and reached 0 (of expected -1) 12:44:49,351 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 2 (of expected -1) 12:44:49,351 AM [test-akka.actor.default-dispatcher-18] [WARN] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply [term=6, success=true, followerId=follower806, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], timeSinceLastActivity : 1190, lastApplied : 2, commitIndex : 2 12:44:49,351 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Initiating install snapshot to follower follower806: follower nextIndex: 1, leader snapshotIndex: 1, leader lastIndex: 2, leader log size: 1 12:44:49,351 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=6, lastIndex=2, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on follower806 12:44:49,351 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: lastSequenceNumber prior to capture: 8 12:44:49,352 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: CaptureSnapshotReply received by actor 12:44:49,352 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower806: Lagging -1 entries behind leader leader804 and reached 0 (of expected -1) 12:44:49,352 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persisting of snapshot done: Snapshot [lastIndex=2, lastTerm=6, lastAppliedIndex=2, lastAppliedTerm=6, unAppliedEntries size=0, state=MockSnapshotState [state=[zero, one, two]], electionTerm=6, electionVotedFor=leader804, ServerConfigPayload=null] 12:44:49,352 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 6 12:44:49,352 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): sendInstallSnapshot 12:44:49,352 AM [test-akka.actor.default-dispatcher-18] [DEBUG] LeaderInstallSnapshotState - leader804 (Leader): Snapshot 345 bytes, total chunks to send: 1 12:44:49,352 AM [test-akka.actor.default-dispatcher-18] [DEBUG] LeaderInstallSnapshotState - leader804 (Leader): Next chunk: total length=345, offset=0, size=345, hashCode=-119615070 12:44:49,352 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): next snapshot chunk size for follower follower806: 345 12:44:49,352 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): InstallSnapshot sent to follower Vector(user, follower806), Chunk: 1/1 12:44:49,352 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: SaveSnapshotSuccess received for snapshot, sequenceNr: 8 12:44:49,352 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Snapshot success - sequence number: 8 12:44:49,352 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): handleInstallSnapshot: InstallSnapshot [term=6, leaderId=leader804, lastIncludedIndex=2, lastIncludedTerm=6, datasize=345, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null] 12:44:49,352 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower806: Lagging 2 entries behind leader leader804 and reached 0 (of expected -1) 12:44:49,352 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: SnapshotComplete received 12:44:49,352 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:44:49,352 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Snapshot installed from leader: leader804 12:44:49,352 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: handled a snapshot response 12:44:49,353 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: handled a journal response 12:44:49,353 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Applying snapshot on follower: Snapshot [lastIndex=2, lastTerm=6, lastAppliedIndex=2, lastAppliedTerm=6, unAppliedEntries size=0, state=MockSnapshotState [state=[zero, one, two]], electionTerm=6, electionVotedFor=leader804, ServerConfigPayload=null] 12:44:49,353 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: 4 12:44:49,353 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: SaveSnapshotSuccess received for snapshot, sequenceNr: 4 12:44:49,353 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Snapshot success - sequence number: 4 12:44:49,353 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Moving last applied index from 0 to 2 12:44:49,353 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Set currentTerm=6, votedFor=leader804 12:44:49,353 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: applySnapshot called 12:44:49,353 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=6, followerId=follower806, chunkIndex=1, success=true] 12:44:49,353 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: SnapshotComplete received 12:44:49,353 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=6, followerId=follower806, chunkIndex=1, success=true] 12:44:49,354 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Snapshot successfully installed on follower follower806 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 12:44:49,354 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: handled a journal response 12:44:49,354 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: handled a snapshot response 12:44:49,470 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 2 (of expected -1) 12:44:49,470 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower806: Lagging 0 entries behind leader leader804 and reached 2 (of expected -1) 12:44:49,471 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: fakeSnapshot purging log to 1 for term 6 12:44:49,508 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyInstallSnapshotToLaggingFollower complete 12:44:49,508 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persist data SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:49,508 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, isSendImmediate: true 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): sendAppendEntries: 3 is present for follower follower805 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Sending AppendEntries to follower follower805: AppendEntries [leaderId=leader804, prevLogIndex=2, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower806: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): sendAppendEntries: 3 is present for follower follower806 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Sending AppendEntries to follower follower806: AppendEntries [leaderId=leader804, prevLogIndex=2, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 12:44:49,509 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): handleAppendEntries: AppendEntries [leaderId=leader804, prevLogIndex=2, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): handleAppendEntries: AppendEntries [leaderId=leader804, prevLogIndex=2, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 12:44:49,509 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Number of entries to be appended = 1 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Number of entries to be appended = 1 12:44:49,509 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 12:44:49,509 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Append entry to log three 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Append entry to log three 12:44:49,509 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Log size is now 1 12:44:49,509 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Log size is now 2 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower806, logLastIndex=3, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:49,509 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower805, logLastIndex=3, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower806: Lagging 0 entries behind leader leader804 and reached 2 (of expected -1) 12:44:49,509 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 2 (of expected -1) 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower806 updated: matchIndex: 3, nextIndex: 4 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower806: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower805 updated: matchIndex: 3, nextIndex: 4 12:44:49,509 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 12:44:49,510 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:49,510 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 12:44:49,510 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Setting last applied to 3 12:44:49,510 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Moving last applied index from 2 to 3 12:44:49,510 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Applying state for log index 3 data three 12:44:49,510 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: applyState called: three 12:44:49,510 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: fakeSnapshot purging log to 2 for term 6 12:44:49,510 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:49,510 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persisting ApplyJournalEntries with index=3 12:44:49,510 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 12:44:49,711 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Commit index set to 3 12:44:49,711 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Commit index set to 3 12:44:49,711 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 3 (of expected -1) 12:44:49,711 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 12:44:49,711 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower806: Lagging 0 entries behind leader leader804 and reached 3 (of expected -1) 12:44:49,711 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 12:44:49,711 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Setting last applied to 3 12:44:49,711 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Setting last applied to 3 12:44:49,711 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Moving last applied index from 2 to 3 12:44:49,711 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Moving last applied index from 2 to 3 12:44:49,711 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Applying state for log index 3 data three 12:44:49,711 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Applying state for log index 3 data three 12:44:49,711 AM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: applyState called: three 12:44:49,711 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: fakeSnapshot purging log to 2 for term 6 12:44:49,711 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: applyState called: three 12:44:49,711 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Persisting ApplyJournalEntries with index=3 12:44:49,711 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Persisting ApplyJournalEntries with index=3 12:44:49,760 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyReplicationsAndSnapshotWithNoLaggingAfterInstallSnapshot starting: replicatedToAllIndex: 2 12:44:49,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persist data SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:49,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:49,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, isSendImmediate: true 12:44:49,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: 2 12:44:49,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): sendAppendEntries: 4 is present for follower follower805 12:44:49,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Sending AppendEntries to follower follower805: AppendEntries [leaderId=leader804, prevLogIndex=3, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 12:44:49,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower806: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: 2 12:44:49,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): sendAppendEntries: 4 is present for follower follower806 12:44:49,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Sending AppendEntries to follower follower806: AppendEntries [leaderId=leader804, prevLogIndex=3, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 12:44:49,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): handleAppendEntries: AppendEntries [leaderId=leader804, prevLogIndex=3, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 12:44:49,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Number of entries to be appended = 1 12:44:49,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 12:44:49,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Append entry to log four 12:44:49,760 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Log size is now 2 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower805, logLastIndex=4, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 3 (of expected -1) 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): handleAppendEntries: AppendEntries [leaderId=leader804, prevLogIndex=3, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Number of entries to be appended = 1 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Append entry to log four 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Log size is now 2 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower806, logLastIndex=4, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower806: Lagging 0 entries behind leader leader804 and reached 3 (of expected -1) 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower805 updated: matchIndex: 4, nextIndex: 5 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: 2 12:44:49,761 AM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower806 updated: matchIndex: 4, nextIndex: 5 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower806: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: 2 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=3, lastAppliedTerm=6, lastIndex=4, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=1, mandatoryTrim=false] 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: lastSequenceNumber prior to capture: 11 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Setting last applied to 4 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Moving last applied index from 3 to 4 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Applying state for log index 4 data four 12:44:49,761 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: applyState called: four 12:44:49,762 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: CaptureSnapshotReply received by actor 12:44:49,762 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persisting of snapshot done: Snapshot [lastIndex=4, lastTerm=6, lastAppliedIndex=3, lastAppliedTerm=6, unAppliedEntries size=1, state=MockSnapshotState [state=[zero, one, two, three]], electionTerm=6, electionVotedFor=leader804, ServerConfigPayload=null] 12:44:49,762 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 6 12:44:49,762 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persisting ApplyJournalEntries with index=4 12:44:49,762 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 12:44:49,762 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: SaveSnapshotSuccess received for snapshot, sequenceNr: 11 12:44:49,762 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Snapshot success - sequence number: 11 12:44:49,762 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: SnapshotComplete received 12:44:49,762 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: handled a snapshot response 12:44:49,762 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: handled a journal response 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persist data SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Replicate message: identifier: MockIdentifier{value=five}, logIndex: 5, isSendImmediate: true 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: true, followerNextIndex: 5, leaderLastIndex: 5, leaderSnapShotIndex: 2 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): sendAppendEntries: 5 is present for follower follower805 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Sending AppendEntries to follower follower805: AppendEntries [leaderId=leader804, prevLogIndex=4, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five]]] 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower806: active: true, followerNextIndex: 5, leaderLastIndex: 5, leaderSnapShotIndex: 2 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): sendAppendEntries: 5 is present for follower follower806 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Sending AppendEntries to follower follower806: AppendEntries [leaderId=leader804, prevLogIndex=4, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five]]] 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persist data SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Append log entry and persist SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Replicate message: identifier: MockIdentifier{value=six}, logIndex: 6, isSendImmediate: true 12:44:49,812 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): handleAppendEntries: AppendEntries [leaderId=leader804, prevLogIndex=4, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five]]] 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: true, followerNextIndex: 5, leaderLastIndex: 6, leaderSnapShotIndex: 2 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): sendAppendEntries: 5 is present for follower follower805 12:44:49,812 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Number of entries to be appended = 1 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower806: active: true, followerNextIndex: 5, leaderLastIndex: 6, leaderSnapShotIndex: 2 12:44:49,812 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): After cleanup, lastIndex: 4, entries to be added from: 0 12:44:49,812 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): sendAppendEntries: 5 is present for follower follower806 12:44:49,812 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Append entry to log five 12:44:49,812 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:49,813 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): handleAppendEntries: AppendEntries [leaderId=leader804, prevLogIndex=4, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five]]] 12:44:49,813 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Number of entries to be appended = 1 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Log size is now 3 12:44:49,813 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): After cleanup, lastIndex: 4, entries to be added from: 0 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Commit index set to 4 12:44:49,813 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Append entry to log five 12:44:49,813 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower805, logLastIndex=5, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 4 (of expected -1) 12:44:49,813 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Log size is now 3 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 5 12:44:49,813 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Commit index set to 4 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Setting last applied to 4 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Moving last applied index from 3 to 4 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Applying state for log index 4 data four 12:44:49,813 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower806, logLastIndex=5, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:49,813 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower806: Lagging 0 entries behind leader leader804 and reached 4 (of expected -1) 12:44:49,813 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 5 12:44:49,813 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Setting last applied to 4 12:44:49,813 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Moving last applied index from 3 to 4 12:44:49,813 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Applying state for log index 4 data four 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: applyState called: four 12:44:49,813 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: applyState called: four 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower805 updated: matchIndex: 5, nextIndex: 6 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: fakeSnapshot purging log to 3 for term 6 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: true, followerNextIndex: 6, leaderLastIndex: 6, leaderSnapShotIndex: 3 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): sendAppendEntries: 6 is present for follower follower805 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Sending AppendEntries to follower follower805: AppendEntries [leaderId=leader804, prevLogIndex=5, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower806 updated: matchIndex: 5, nextIndex: 6 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower806: active: true, followerNextIndex: 6, leaderLastIndex: 6, leaderSnapShotIndex: 3 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): sendAppendEntries: 6 is present for follower follower806 12:44:49,813 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Sending AppendEntries to follower follower806: AppendEntries [leaderId=leader804, prevLogIndex=5, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 12:44:49,814 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:49,814 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Applying to log - commitIndex: 5, lastAppliedIndex: 4 12:44:49,814 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Setting last applied to 5 12:44:49,814 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Moving last applied index from 4 to 5 12:44:49,814 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Applying state for log index 5 data five 12:44:49,814 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: applyState called: five 12:44:49,814 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: fakeSnapshot purging log to 4 for term 6 12:44:49,814 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persisting ApplyJournalEntries with index=5 12:44:49,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:49,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Persisting ApplyJournalEntries with index=4 12:44:49,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): handleAppendEntries: AppendEntries [leaderId=leader804, prevLogIndex=5, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 12:44:49,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Number of entries to be appended = 1 12:44:49,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): After cleanup, lastIndex: 5, entries to be added from: 0 12:44:49,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Append entry to log six 12:44:49,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Append log entry and persist SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:49,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Log size is now 4 12:44:49,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower805, logLastIndex=6, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:49,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 4 (of expected -1) 12:44:49,814 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: fakeSnapshot purging log to 3 for term 6 12:44:49,815 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower805 updated: matchIndex: 6, nextIndex: 7 12:44:49,815 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower805: active: true, followerNextIndex: 7, leaderLastIndex: 6, leaderSnapShotIndex: 4 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Persisting ApplyJournalEntries with index=4 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): handleAppendEntries: AppendEntries [leaderId=leader804, prevLogIndex=5, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Number of entries to be appended = 1 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): After cleanup, lastIndex: 5, entries to be added from: 0 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Append entry to log six 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Append log entry and persist SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Log size is now 4 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower806, logLastIndex=6, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower806: Lagging 0 entries behind leader leader804 and reached 4 (of expected -1) 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: fakeSnapshot purging log to 3 for term 6 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower806 updated: matchIndex: 6, nextIndex: 7 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Checking sendAppendEntries for follower follower806: active: true, followerNextIndex: 7, leaderLastIndex: 6, leaderSnapShotIndex: 4 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: persist complete SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Applying to log - commitIndex: 6, lastAppliedIndex: 5 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Setting last applied to 6 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Moving last applied index from 5 to 6 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Applying state for log index 6 data six 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: applyState called: six 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: fakeSnapshot purging log to 5 for term 6 12:44:49,815 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Persisting ApplyJournalEntries with index=6 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: persist complete SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Commit index set to 5 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 5 (of expected -1) 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 5, context.getLastApplied(): 4, lastIndex(): 6 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Setting last applied to 5 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Moving last applied index from 4 to 5 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Applying state for log index 5 data five 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: applyState called: five 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: fakeSnapshot purging log to 4 for term 6 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Persisting ApplyJournalEntries with index=5 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Commit index set to 6 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 6 (of expected -1) 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 6, context.getLastApplied(): 5, lastIndex(): 6 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805 (Follower): Setting last applied to 6 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Moving last applied index from 5 to 6 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Applying state for log index 6 data six 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: applyState called: six 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: fakeSnapshot purging log to 5 for term 6 12:44:49,816 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower805: Persisting ApplyJournalEntries with index=6 12:44:49,816 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: persist complete SimpleReplicatedLogEntry [index=6, term=6, payload=six] 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Commit index set to 5 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower806: Lagging 0 entries behind leader leader804 and reached 5 (of expected -1) 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 5, context.getLastApplied(): 4, lastIndex(): 6 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Setting last applied to 5 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Moving last applied index from 4 to 5 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Applying state for log index 5 data five 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: applyState called: five 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: fakeSnapshot purging log to 4 for term 6 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Persisting ApplyJournalEntries with index=5 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Commit index set to 6 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower806: Lagging 0 entries behind leader leader804 and reached 6 (of expected -1) 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 6, context.getLastApplied(): 5, lastIndex(): 6 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806 (Follower): Setting last applied to 6 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Moving last applied index from 5 to 6 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Applying state for log index 6 data six 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: applyState called: six 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: fakeSnapshot purging log to 5 for term 6 12:44:49,817 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower806: Persisting ApplyJournalEntries with index=6 12:44:49,950 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower805: Lagging 0 entries behind leader leader804 and reached 6 (of expected -1) 12:44:49,950 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower806: Lagging 0 entries behind leader leader804 and reached 6 (of expected -1) 12:44:49,964 AM [main] [INFO] InMemoryJournal - Journal log for leader804: 12 = ApplyJournalEntries [toIndex=4] 13 = SimpleReplicatedLogEntry [index=5, term=6, payload=five] 14 = SimpleReplicatedLogEntry [index=6, term=6, payload=six] 15 = ApplyJournalEntries [toIndex=5] 16 = ApplyJournalEntries [toIndex=6] 12:44:49,965 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyReplicationsAndSnapshotWithNoLaggingAfterInstallSnapshot ending 12:44:49,965 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyLeaderRecoveryAfterReinstatement starting: lastIndex: 6, snapshotIndex: 3, firstJournalEntryIndex: 4 [WARN] [10/28/2024 00:44:49.977] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader804]: org.opendaylight.controller.cluster.common.actor.Monitor@2c2483b2 12:44:49,978 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader804 with journal batch size 1000 12:44:49,978 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: SnapshotOffer called. 12:44:49,978 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Moving last applied index from -1 to 3 12:44:49,978 AM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Set currentTerm=6, votedFor=leader804 12:44:49,978 AM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Recovery snapshot applied for leader804 in 123.2 μs: snapshotIndex=3, snapshotTerm=6, journal-size=1 12:44:49,980 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Received apply journal entries for recovery, applying to state: 4 to 4 12:44:49,980 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Moving last applied index from 3 to 4 12:44:49,980 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Received ReplicatedLogEntry for recovery: index: 5, size: 4 12:44:49,980 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Received ReplicatedLogEntry for recovery: index: 6, size: 3 12:44:49,981 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Received apply journal entries for recovery, applying to state: 5 to 5 12:44:49,981 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Moving last applied index from 4 to 5 12:44:49,981 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Received apply journal entries for recovery, applying to state: 6 to 6 12:44:49,981 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Moving last applied index from 5 to 6 12:44:49,981 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Recovery completed in 2.391 ms - Switching actor to Follower - last log index = 6, last log term = 6, snapshot index = 3, snapshot term = 6, journal size = 3 12:44:49,981 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyLeaderRecoveryAfterReinstatement ending 12:44:49,981 AM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotTriggeredByMemoryThresholdExceeded ending 12:44:49,981 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower805-collector807#1867953900] 12:44:49,981 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Follower): Received TimeoutNow - switching to Candidate 12:44:49,981 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Candidate): Election: Candidate has following voting peers: [] 12:44:49,981 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804: Set currentTerm=7, votedFor=leader804 12:44:49,981 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Candidate): Starting new election term 7 12:44:49,982 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Follower) :- Switching from behavior Follower to Candidate, election term: 7 12:44:49,982 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Candidate): Received ElectionTimeout 12:44:49,982 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Leader): Election: Leader has following peers: [] 12:44:49,982 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader804 (Candidate) :- Switching from behavior Candidate to Leader, election term: 7 12:44:49,992 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower805] 12:44:49,994 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower806-collector808#-946820807] 12:44:49,994 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower806] 12:44:49,994 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader804-collector809#822965897] 12:44:49,994 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader804] 12:44:49,994 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader804-collector810#1912202969] 12:44:49,995 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader804] [INFO] [10/28/2024 00:44:49.996] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 12:44:49,996 AM [test-akka.actor.default-dispatcher-18] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 12:44:49,997 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.88:25520] - Exiting completed 12:44:49,997 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.88:25520] - Shutting down... [WARN] [10/28/2024 00:44:49.997] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.88:25520) [INFO] [10/28/2024 00:44:49.997] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.88:25520] - Exiting completed [INFO] [10/28/2024 00:44:49.997] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.88:25520] - Shutting down... [INFO] [10/28/2024 00:44:49.997] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.88:25520] - Successfully shut down 12:44:49,997 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.88:25520] - Successfully shut down [INFO] [10/28/2024 00:44:49.999] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.88:25520/system/remoting-terminator] Shutting down remote daemon. 12:44:49,999 AM [test-akka.actor.default-dispatcher-16] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [10/28/2024 00:44:49.999] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.88:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 12:44:49,999 AM [test-akka.actor.default-dispatcher-16] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [10/28/2024 00:44:50.001] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.88:25520/system/remoting-terminator] Remoting shut down. 12:44:50,1 AM [test-akka.actor.default-dispatcher-16] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [10/28/2024 00:44:50.002] [test-akka.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger