[DEBUG] [09/16/2024 13:48:09.579] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:48:09,579 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [09/16/2024 13:48:09.579] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [09/16/2024 13:48:09.580] [main] [EventStream(akka://test)] Default Loggers started [INFO] [09/16/2024 13:48:09.597] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.21:25520] with UID [-6194230497339632124] 01:48:09,597 PM [test-akka.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.21:25520] with UID [-6194230497339632124] [INFO] [09/16/2024 13:48:09.597] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Starting up, Akka version [2.6.21] ... 01:48:09,597 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Starting up, Akka version [2.6.21] ... [INFO] [09/16/2024 13:48:09.600] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [09/16/2024 13:48:09.600] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Started up successfully 01:48:09,600 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:48:09,600 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Started up successfully 01:48:09,608 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testReplicationsWithLaggingFollowerCaughtUpViaAppendEntries starting: sending 2 new payloads [INFO] [09/16/2024 13:48:09.609] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [09/16/2024 13:48:09.609] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:48:09,610 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:48:09,610 PM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:48:09,614 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower338 with journal batch size 1000 [WARN] [09/16/2024 13:48:09.614] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower338]: org.opendaylight.controller.cluster.common.actor.Monitor@5df6f771 [INFO] [akkaDeadLetter][09/16/2024 13:48:09.614] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower338] 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'. 01:48:09,617 PM [test-akka.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower338] 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'. 01:48:09,618 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower338: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [09/16/2024 13:48:09.713] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower339]: org.opendaylight.controller.cluster.common.actor.Monitor@2836382d [INFO] [akkaDeadLetter][09/16/2024 13:48:09.713] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower339] 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'. 01:48:09,713 PM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower339] 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'. 01:48:09,714 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower339 with journal batch size 1000 01:48:09,715 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower339: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [09/16/2024 13:48:09.716] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader337]: org.opendaylight.controller.cluster.common.actor.Monitor@19d89be5 [INFO] [akkaDeadLetter][09/16/2024 13:48:09.716] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader337] 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'. 01:48:09,716 PM [test-akka.actor.default-dispatcher-13] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader337] 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'. 01:48:09,717 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader337 with journal batch size 1000 01:48:09,724 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: Set currentTerm=5, votedFor=leader337 01:48:09,724 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:48:10,208 PM [test-akka.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:10,208 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.21:25520, Removed) 01:48:10,208 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Follower): Received ElectionTimeout - switching to Candidate 01:48:10,208 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Candidate): Election: Candidate has following voting peers: [follower339, follower338] 01:48:10,208 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: Set currentTerm=6, votedFor=leader337 01:48:10,209 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Candidate): Starting new election term 6 01:48:10,209 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Candidate): Sending RequestVote [term=6, candidateId=leader337, lastLogIndex=-1, lastLogTerm=-1] to peer follower339 01:48:10,209 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Candidate): Sending RequestVote [term=6, candidateId=leader337, lastLogIndex=-1, lastLogTerm=-1] to peer follower338 01:48:10,209 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Follower) :- Switching from behavior Follower to Candidate, election term: 6 01:48:10,209 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:48:10,209 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): Cluster state: [] 01:48:10,209 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:48:10,209 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader337, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 01:48:10,209 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader337, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 01:48:10,209 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339: Set currentTerm=6, votedFor=null 01:48:10,209 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): Cluster state: [] 01:48:10,209 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader337, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 01:48:10,209 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader337, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 01:48:10,209 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338: Set currentTerm=6, votedFor=null 01:48:10,209 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): In requestVote: RequestVote [term=6, candidateId=leader337, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 01:48:10,209 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339: Set currentTerm=6, votedFor=leader337 01:48:10,209 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 01:48:10,209 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): In requestVote: RequestVote [term=6, candidateId=leader337, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 01:48:10,209 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338: Set currentTerm=6, votedFor=leader337 01:48:10,209 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 01:48:10,210 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Candidate): RaftRPC message received RequestVoteReply [term=6, voteGranted=true], my term is 6 01:48:10,210 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Candidate): handleRequestVoteReply: RequestVoteReply [term=6, voteGranted=true], current voteCount: 1 01:48:10,210 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Election: Leader has following peers: [follower339, follower338] 01:48:10,210 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Checking sendAppendEntries for follower follower339: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:10,210 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Checking sendAppendEntries for follower follower338: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:10,210 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Candidate) :- Switching from behavior Candidate to Leader, election term: 6 01:48:10,210 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower338: Last sync leader does not match current leader leader337, need to catch up to -1 01:48:10,210 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower339: Last sync leader does not match current leader leader337, need to catch up to -1 [WARN] [09/16/2024 13:48:10.211] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower338] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@16699d4b [WARN] [09/16/2024 13:48:10.211] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower339] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@8154348 [INFO] [akkaDeadLetter][09/16/2024 13:48:10.211] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower338] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower338] 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'. [INFO] [akkaDeadLetter][09/16/2024 13:48:10.211] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower339] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower339] 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'. 01:48:10,211 PM [test-akka.actor.default-dispatcher-16] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower338] 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'. 01:48:10,211 PM [test-akka.actor.default-dispatcher-16] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower339] 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'. 01:48:10,211 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower338 updated: matchIndex: -1, nextIndex: 0 01:48:10,211 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Checking sendAppendEntries for follower follower338: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:10,211 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower339 updated: matchIndex: -1, nextIndex: 0 01:48:10,211 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Checking sendAppendEntries for follower follower339: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:10,219 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - Leader created and elected 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: Persist data SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Checking sendAppendEntries for follower follower339: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): sendAppendEntries: 0 is present for follower follower339 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Sending AppendEntries to follower follower339: AppendEntries [leaderId=leader337, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Checking sendAppendEntries for follower follower338: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): sendAppendEntries: 0 is present for follower follower338 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Sending AppendEntries to follower follower338: AppendEntries [leaderId=leader337, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: Persist data SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Checking sendAppendEntries for follower follower339: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): sendAppendEntries: 0 is present for follower follower339 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Checking sendAppendEntries for follower follower338: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): sendAppendEntries: 0 is present for follower follower338 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): handleAppendEntries: AppendEntries [leaderId=leader337, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): Number of entries to be appended = 1 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): Append entry to log zero 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): Log size is now 1 01:48:10,220 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower338, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:10,221 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower338: Lagging 0 entries behind leader leader337 and reached -1 (of expected -1) 01:48:10,221 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower338 updated: matchIndex: 0, nextIndex: 1 01:48:10,221 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Checking sendAppendEntries for follower follower338: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:10,221 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): sendAppendEntries: 1 is present for follower follower338 01:48:10,221 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Sending AppendEntries to follower follower338: AppendEntries [leaderId=leader337, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:10,221 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:10,221 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:48:10,221 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Setting last applied to 0 01:48:10,221 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: Moving last applied index from -1 to 0 01:48:10,221 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: Applying state for log index 0 data zero 01:48:10,221 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: applyState called: zero 01:48:10,221 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: Persisting ApplyJournalEntries with index=0 01:48:10,222 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:10,222 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] [WARN] [09/16/2024 13:48:10.222] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower338] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@735b7cfd 01:48:10,222 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): handleAppendEntries: AppendEntries [leaderId=leader337, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:10,222 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): Number of entries to be appended = 1 01:48:10,222 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:48:10,222 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): Append entry to log one 01:48:10,222 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] [INFO] [akkaDeadLetter][09/16/2024 13:48:10.222] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower338] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower338] 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'. 01:48:10,222 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): Log size is now 2 01:48:10,222 PM [test-akka.actor.default-dispatcher-7] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower338] 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'. 01:48:10,222 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower338, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:10,222 PM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower338: Lagging 0 entries behind leader leader337 and reached -1 (of expected -1) 01:48:10,222 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower338 updated: matchIndex: 1, nextIndex: 2 01:48:10,222 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:48:10,222 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Setting last applied to 1 01:48:10,222 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: Moving last applied index from 0 to 1 01:48:10,222 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: Applying state for log index 1 data one 01:48:10,222 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: applyState called: one 01:48:10,222 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Checking sendAppendEntries for follower follower338: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:10,222 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: Persisting ApplyJournalEntries with index=1 01:48:10,223 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:10,223 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): Commit index set to 1 01:48:10,223 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower338: Lagging 0 entries behind leader leader337 and reached 1 (of expected -1) 01:48:10,223 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:48:10,223 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): Setting last applied to 0 01:48:10,223 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338: Moving last applied index from -1 to 0 01:48:10,223 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338: Applying state for log index 0 data zero 01:48:10,223 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower338: applyState called: zero 01:48:10,223 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338 (Follower): Setting last applied to 1 01:48:10,223 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338: Moving last applied index from 0 to 1 01:48:10,223 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338: Applying state for log index 1 data one 01:48:10,223 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower338: applyState called: one 01:48:10,223 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338: Persisting ApplyJournalEntries with index=1 01:48:10,327 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): sendAppendEntries: 0 is present for follower follower339 01:48:10,327 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Sending AppendEntries to follower follower339: AppendEntries [leaderId=leader337, 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]]] 01:48:10,328 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower338: Lagging 0 entries behind leader leader337 and reached 1 (of expected -1) 01:48:10,376 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testReplicationsWithLaggingFollowerCaughtUpViaAppendEntries: new entries applied - resuming follower follower339 01:48:10,448 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): sendAppendEntries: 0 is present for follower follower339 01:48:10,448 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Sending AppendEntries to follower follower339: AppendEntries [leaderId=leader337, 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]]] 01:48:10,448 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower338: Lagging 0 entries behind leader leader337 and reached 1 (of expected -1) 01:48:10,448 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): handleAppendEntries: AppendEntries [leaderId=leader337, 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]]] 01:48:10,448 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): Number of entries to be appended = 2 01:48:10,448 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:48:10,448 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): Append entry to log zero 01:48:10,448 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:10,448 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): Append entry to log one 01:48:10,448 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:10,448 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): Log size is now 2 01:48:10,448 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): Commit index set to 1 01:48:10,449 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower339, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:10,449 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower339: Lagging 0 entries behind leader leader337 and reached 1 (of expected -1) 01:48:10,449 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:48:10,449 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): Setting last applied to 0 01:48:10,449 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower339 updated: matchIndex: 1, nextIndex: 2 01:48:10,449 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339: Moving last applied index from -1 to 0 01:48:10,449 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337: fakeSnapshot purging log to 0 for term 6 01:48:10,449 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339: Applying state for log index 0 data zero 01:48:10,449 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader337 (Leader): Checking sendAppendEntries for follower follower339: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:48:10,449 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower339: applyState called: zero 01:48:10,449 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339 (Follower): Setting last applied to 1 01:48:10,449 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339: Moving last applied index from 0 to 1 01:48:10,449 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339: Applying state for log index 1 data one 01:48:10,449 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower339: applyState called: one 01:48:10,450 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:10,450 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:10,450 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339: Persisting ApplyJournalEntries with index=1 [WARN] [09/16/2024 13:48:10.451] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower339] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@63a01544 [INFO] [akkaDeadLetter][09/16/2024 13:48:10.451] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower339] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower339] 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'. 01:48:10,451 PM [test-akka.actor.default-dispatcher-16] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower339] 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'. 01:48:10,568 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower338: Lagging 0 entries behind leader leader337 and reached 1 (of expected -1) 01:48:10,568 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower338: fakeSnapshot purging log to 0 for term 6 01:48:10,568 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower339: Lagging 0 entries behind leader leader337 and reached 1 (of expected -1) 01:48:10,568 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower339: fakeSnapshot purging log to 0 for term 6 01:48:10,578 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testReplicationsWithLaggingFollowerCaughtUpViaAppendEntries complete 01:48:10,578 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower338-collector340#1469078625] 01:48:10,590 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower338] 01:48:10,590 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower339-collector341#-1865040099] 01:48:10,590 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower339] 01:48:10,591 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader337-collector342#960112672] 01:48:10,592 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader337] 01:48:10,593 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotWithLaggingFollowerCaughtUpViaInstallSnapshot starting 01:48:10,596 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower347 with journal batch size 1000 [WARN] [09/16/2024 13:48:10.596] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower347]: org.opendaylight.controller.cluster.common.actor.Monitor@33507673 [INFO] [akkaDeadLetter][09/16/2024 13:48:10.596] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower347] 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'. 01:48:10,596 PM [test-akka.actor.default-dispatcher-13] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower347] 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'. 01:48:10,602 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:48:10,698 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower348 with journal batch size 1000 [WARN] [09/16/2024 13:48:10.698] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower348]: org.opendaylight.controller.cluster.common.actor.Monitor@61bdc654 [INFO] [akkaDeadLetter][09/16/2024 13:48:10.698] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower348] 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'. 01:48:10,698 PM [test-akka.actor.default-dispatcher-13] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower348] 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'. 01:48:10,699 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [09/16/2024 13:48:10.703] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader346]: org.opendaylight.controller.cluster.common.actor.Monitor@569bbca7 [INFO] [akkaDeadLetter][09/16/2024 13:48:10.703] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader346] 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'. 01:48:10,703 PM [test-akka.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader346] 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'. 01:48:10,704 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader346 with journal batch size 1000 01:48:10,705 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Set currentTerm=5, votedFor=leader346 01:48:10,705 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:48:11,168 PM [test-akka.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:11,168 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.21:25520, Removed) 01:48:11,168 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Follower): Received ElectionTimeout - switching to Candidate 01:48:11,168 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Candidate): Election: Candidate has following voting peers: [follower348, follower347] 01:48:11,168 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Set currentTerm=6, votedFor=leader346 01:48:11,168 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Candidate): Starting new election term 6 01:48:11,168 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Candidate): Sending RequestVote [term=6, candidateId=leader346, lastLogIndex=-1, lastLogTerm=-1] to peer follower348 01:48:11,168 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Candidate): Sending RequestVote [term=6, candidateId=leader346, lastLogIndex=-1, lastLogTerm=-1] to peer follower347 01:48:11,169 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Follower) :- Switching from behavior Follower to Candidate, election term: 6 01:48:11,169 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:48:11,169 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:48:11,169 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): Cluster state: [] 01:48:11,169 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Cluster state: [] 01:48:11,169 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader346, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 01:48:11,169 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader346, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 01:48:11,169 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: Set currentTerm=6, votedFor=null 01:48:11,169 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader346, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 01:48:11,169 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader346, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 01:48:11,169 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Set currentTerm=6, votedFor=null 01:48:11,169 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): In requestVote: RequestVote [term=6, candidateId=leader346, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 01:48:11,169 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: Set currentTerm=6, votedFor=leader346 01:48:11,169 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): In requestVote: RequestVote [term=6, candidateId=leader346, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 01:48:11,169 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Set currentTerm=6, votedFor=leader346 01:48:11,169 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 01:48:11,169 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 01:48:11,170 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Candidate): RaftRPC message received RequestVoteReply [term=6, voteGranted=true], my term is 6 01:48:11,170 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Candidate): handleRequestVoteReply: RequestVoteReply [term=6, voteGranted=true], current voteCount: 1 01:48:11,170 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Election: Leader has following peers: [follower348, follower347] 01:48:11,170 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower348: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:11,170 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:11,170 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower348: Last sync leader does not match current leader leader346, need to catch up to -1 01:48:11,170 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Candidate) :- Switching from behavior Candidate to Leader, election term: 6 01:48:11,171 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower347: Last sync leader does not match current leader leader346, need to catch up to -1 [WARN] [09/16/2024 13:48:11.171] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower348] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@446f2e6b 01:48:11,171 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower348 updated: matchIndex: -1, nextIndex: 0 01:48:11,171 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower348: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:11,171 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower347 updated: matchIndex: -1, nextIndex: 0 [WARN] [09/16/2024 13:48:11.171] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower347] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@496b50d 01:48:11,171 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:11,210 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - Leader created and elected 01:48:11,210 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persist data SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:11,210 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:11,210 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:11,210 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower348: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:11,210 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendAppendEntries: 0 is present for follower follower348 01:48:11,210 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Sending AppendEntries to follower follower348: AppendEntries [leaderId=leader346, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:11,210 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:11,210 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendAppendEntries: 0 is present for follower follower347 01:48:11,210 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Sending AppendEntries to follower follower347: AppendEntries [leaderId=leader346, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:11,210 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): handleAppendEntries: AppendEntries [leaderId=leader346, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:11,210 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persist data SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:11,210 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): Number of entries to be appended = 1 01:48:11,210 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:11,210 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:48:11,210 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): Append entry to log zero 01:48:11,210 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:11,210 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:11,211 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower348: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:11,211 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendAppendEntries: 0 is present for follower follower348 01:48:11,211 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): handleAppendEntries: AppendEntries [leaderId=leader346, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:11,211 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:11,211 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Number of entries to be appended = 1 01:48:11,211 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendAppendEntries: 0 is present for follower follower347 01:48:11,211 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:48:11,211 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): Log size is now 1 01:48:11,211 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Append entry to log zero 01:48:11,211 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:11,211 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower348, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:11,211 PM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower348: Lagging 0 entries behind leader leader346 and reached -1 (of expected -1) 01:48:11,211 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Log size is now 1 01:48:11,211 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower348 updated: matchIndex: 0, nextIndex: 1 01:48:11,211 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower347, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:11,211 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower348: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:11,211 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached -1 (of expected -1) 01:48:11,211 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendAppendEntries: 1 is present for follower follower348 01:48:11,211 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Sending AppendEntries to follower follower348: AppendEntries [leaderId=leader346, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:11,211 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower347 updated: matchIndex: 0, nextIndex: 1 01:48:11,211 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:11,211 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendAppendEntries: 1 is present for follower follower347 01:48:11,211 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Sending AppendEntries to follower follower347: AppendEntries [leaderId=leader346, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:11,211 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:11,212 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:11,212 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:48:11,212 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Setting last applied to 0 01:48:11,212 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Moving last applied index from -1 to 0 01:48:11,212 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Applying state for log index 0 data zero 01:48:11,212 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:11,212 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): handleAppendEntries: AppendEntries [leaderId=leader346, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:11,212 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): Number of entries to be appended = 1 01:48:11,212 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:48:11,212 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): Append entry to log one 01:48:11,212 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:11,212 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): Log size is now 2 01:48:11,212 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower348, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:11,212 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower348: Lagging 0 entries behind leader leader346 and reached -1 (of expected -1) [WARN] [09/16/2024 13:48:11.212] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower348] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5dd037e0 [WARN] [09/16/2024 13:48:11.212] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower347] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@775d332 01:48:11,212 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): handleAppendEntries: AppendEntries [leaderId=leader346, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:11,212 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Number of entries to be appended = 1 01:48:11,212 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: applyState called: zero 01:48:11,212 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:48:11,212 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Append entry to log one 01:48:11,212 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:11,212 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower348 updated: matchIndex: 1, nextIndex: 2 01:48:11,212 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Log size is now 2 01:48:11,212 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower347, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:11,212 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower348: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:11,212 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached -1 (of expected -1) 01:48:11,212 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persisting ApplyJournalEntries with index=0 01:48:11,212 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:11,212 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower347 updated: matchIndex: 1, nextIndex: 2 01:48:11,212 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): Commit index set to 0 01:48:11,212 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower348: Lagging 0 entries behind leader leader346 and reached 0 (of expected -1) 01:48:11,212 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:11,213 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 01:48:11,213 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): Setting last applied to 0 01:48:11,213 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: Moving last applied index from -1 to 0 01:48:11,213 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: Applying state for log index 0 data zero 01:48:11,213 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: applyState called: zero 01:48:11,213 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: Persisting ApplyJournalEntries with index=0 01:48:11,213 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:11,213 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:48:11,213 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Setting last applied to 1 01:48:11,213 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Moving last applied index from 0 to 1 01:48:11,213 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Applying state for log index 1 data one 01:48:11,213 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: applyState called: one 01:48:11,213 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: fakeSnapshot purging log to 0 for term 6 01:48:11,213 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persisting ApplyJournalEntries with index=1 01:48:11,213 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Commit index set to 0 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 0 (of expected -1) 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Setting last applied to 0 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Moving last applied index from -1 to 0 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Applying state for log index 0 data zero 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: applyState called: zero 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Commit index set to 1 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 1 (of expected -1) 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Setting last applied to 1 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Moving last applied index from 0 to 1 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Applying state for log index 1 data one 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: applyState called: one 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: fakeSnapshot purging log to 0 for term 6 01:48:11,214 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Persisting ApplyJournalEntries with index=0 01:48:11,215 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Persisting ApplyJournalEntries with index=1 01:48:11,408 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 1 (of expected -1) 01:48:11,408 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): Commit index set to 1 01:48:11,408 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower348: Lagging 0 entries behind leader leader346 and reached 1 (of expected -1) 01:48:11,408 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:48:11,408 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): Setting last applied to 1 01:48:11,408 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: Moving last applied index from 0 to 1 01:48:11,408 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: Applying state for log index 1 data one 01:48:11,408 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: applyState called: one 01:48:11,408 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: fakeSnapshot purging log to 0 for term 6 01:48:11,408 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: Persisting ApplyJournalEntries with index=1 01:48:11,528 PM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 1 (of expected -1) 01:48:11,528 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower348: Lagging 0 entries behind leader leader346 and reached 1 (of expected -1) 01:48:11,648 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 1 (of expected -1) 01:48:11,768 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 1 (of expected -1) 01:48:11,888 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 1 (of expected -1) 01:48:11,968 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persist data SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:11,968 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:11,968 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:11,968 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower348: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:11,968 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:11,968 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendAppendEntries: 2 is present for follower follower347 01:48:11,968 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Sending AppendEntries to follower follower347: AppendEntries [leaderId=leader346, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 01:48:11,968 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persist data SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:11,968 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:11,968 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): handleAppendEntries: AppendEntries [leaderId=leader346, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 01:48:11,969 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Number of entries to be appended = 1 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:11,969 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:48:11,969 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Append entry to log two 01:48:11,969 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower348: active: false, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 0 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 0 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendAppendEntries: 2 is present for follower follower347 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persist data SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:11,969 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Log size is now 2 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:11,969 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower347, logLastIndex=2, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:11,969 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 1 (of expected -1) 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower348: active: false, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: 0 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: 0 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendAppendEntries: 2 is present for follower follower347 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower347 updated: matchIndex: 2, nextIndex: 3 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: 0 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendAppendEntries: 3 is present for follower follower347 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Sending AppendEntries to follower follower347: AppendEntries [leaderId=leader346, 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]]] 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persist data SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Replicate message: identifier: MockIdentifier{value=five}, logIndex: 5, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:11,969 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower348: active: false, followerNextIndex: 2, leaderLastIndex: 5, leaderSnapShotIndex: 0 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 3, leaderLastIndex: 5, leaderSnapShotIndex: 0 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendAppendEntries: 3 is present for follower follower347 01:48:11,969 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): handleAppendEntries: AppendEntries [leaderId=leader346, 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]]] 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persist data SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Append log entry and persist SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:11,969 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Number of entries to be appended = 2 01:48:11,969 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 01:48:11,969 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Append entry to log three 01:48:11,969 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Replicate message: identifier: MockIdentifier{value=six}, logIndex: 6, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:11,969 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Append entry to log four 01:48:11,969 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower348: active: false, followerNextIndex: 2, leaderLastIndex: 6, leaderSnapShotIndex: 0 01:48:11,969 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 3, leaderLastIndex: 6, leaderSnapShotIndex: 0 01:48:11,970 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Log size is now 4 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendAppendEntries: 3 is present for follower follower347 01:48:11,970 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower347, logLastIndex=4, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:11,970 PM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 1 (of expected -1) 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower347 updated: matchIndex: 4, nextIndex: 5 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 5, leaderLastIndex: 6, leaderSnapShotIndex: 0 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendAppendEntries: 5 is present for follower follower347 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Sending AppendEntries to follower follower347: AppendEntries [leaderId=leader346, prevLogIndex=4, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five], SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Setting last applied to 2 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Moving last applied index from 1 to 2 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Applying state for log index 2 data two 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: applyState called: two 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: fakeSnapshot purging log to 1 for term 6 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persisting ApplyJournalEntries with index=2 01:48:11,970 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:11,970 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=6, lastIndex=3, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=4, mandatoryTrim=false] 01:48:11,970 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): handleAppendEntries: AppendEntries [leaderId=leader346, prevLogIndex=4, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five], SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 01:48:11,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: lastSequenceNumber prior to capture: 8 01:48:11,970 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Number of entries to be appended = 2 01:48:11,970 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): After cleanup, lastIndex: 4, entries to be added from: 0 01:48:11,971 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Append entry to log five 01:48:11,971 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 01:48:11,971 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:11,971 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Setting last applied to 3 01:48:11,971 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Moving last applied index from 2 to 3 01:48:11,971 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Applying state for log index 3 data three 01:48:11,971 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Append entry to log six 01:48:11,971 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Append log entry and persist SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:11,971 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: applyState called: three 01:48:11,971 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: CaptureSnapshotReply received by actor 01:48:11,971 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: 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=leader346, ServerConfigPayload=null] 01:48:11,971 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: log size 5 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 2 01:48:11,971 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 6 01:48:11,971 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persisting ApplyJournalEntries with index=3 01:48:11,971 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Log size is now 6 01:48:11,971 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower347, logLastIndex=6, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:11,971 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 1 (of expected -1) 01:48:11,971 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower347 updated: matchIndex: 6, nextIndex: 7 01:48:11,971 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 7, leaderLastIndex: 6, leaderSnapShotIndex: 2 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Setting last applied to 4 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Moving last applied index from 3 to 4 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Applying state for log index 4 data four 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: persist complete SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: applyState called: four 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persisting ApplyJournalEntries with index=4 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Commit index set to 3 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 3 (of expected -1) 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 1, lastIndex(): 6 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Setting last applied to 2 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Moving last applied index from 1 to 2 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Applying state for log index 2 data two 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: applyState called: two 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Setting last applied to 3 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Moving last applied index from 2 to 3 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Applying state for log index 3 data three 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: applyState called: three 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: fakeSnapshot purging log to 1 for term 6 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Applying to log - commitIndex: 5, lastAppliedIndex: 4 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Setting last applied to 5 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Moving last applied index from 4 to 5 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Applying state for log index 5 data five 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Commit index set to 4 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 4 (of expected -1) 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 6 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: applyState called: five 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Setting last applied to 4 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Moving last applied index from 3 to 4 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Applying state for log index 4 data four 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: applyState called: four 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persisting ApplyJournalEntries with index=5 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Persisting ApplyJournalEntries with index=3 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: persist complete SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Applying to log - commitIndex: 6, lastAppliedIndex: 5 01:48:11,972 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Commit index set to 5 01:48:11,972 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Setting last applied to 6 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 5 (of expected -1) 01:48:11,973 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Moving last applied index from 5 to 6 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 5, context.getLastApplied(): 4, lastIndex(): 6 01:48:11,973 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Applying state for log index 6 data six 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Setting last applied to 5 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Moving last applied index from 4 to 5 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Applying state for log index 5 data five 01:48:11,973 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: applyState called: six 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: applyState called: five 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Persisting ApplyJournalEntries with index=4 01:48:11,973 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persisting ApplyJournalEntries with index=6 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Persisting ApplyJournalEntries with index=5 01:48:11,973 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: SaveSnapshotSuccess received for snapshot, sequenceNr: 8 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Commit index set to 6 01:48:11,973 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Snapshot success - sequence number: 8 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 6 (of expected -1) 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 6, context.getLastApplied(): 5, lastIndex(): 6 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Setting last applied to 6 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Moving last applied index from 5 to 6 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Applying state for log index 6 data six 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: applyState called: six 01:48:11,973 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: SnapshotComplete received 01:48:11,973 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Persisting ApplyJournalEntries with index=6 01:48:11,973 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: handled a snapshot response 01:48:11,974 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: handled a journal response 01:48:12,18 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotWithLaggingFollowerCaughtUpViaInstallSnapshot: sending 1 more payload to trigger second snapshot 01:48:12,18 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persist data SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 01:48:12,18 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Append log entry and persist SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 01:48:12,19 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Replicate message: identifier: MockIdentifier{value=seven}, logIndex: 7, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:12,19 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower348: active: false, followerNextIndex: 2, leaderLastIndex: 7, leaderSnapShotIndex: 2 01:48:12,19 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 7, leaderLastIndex: 7, leaderSnapShotIndex: 2 01:48:12,19 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendAppendEntries: 7 is present for follower follower347 01:48:12,19 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Sending AppendEntries to follower follower347: AppendEntries [leaderId=leader346, prevLogIndex=6, prevLogTerm=6, leaderCommit=6, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=7, term=6, payload=seven]]] 01:48:12,19 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): handleAppendEntries: AppendEntries [leaderId=leader346, prevLogIndex=6, prevLogTerm=6, leaderCommit=6, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=7, term=6, payload=seven]]] 01:48:12,19 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Number of entries to be appended = 1 01:48:12,19 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): After cleanup, lastIndex: 6, entries to be added from: 0 01:48:12,19 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Append entry to log seven 01:48:12,19 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Append log entry and persist SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 01:48:12,19 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Log size is now 6 01:48:12,19 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower347, logLastIndex=7, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:12,19 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower347 updated: matchIndex: 7, nextIndex: 8 01:48:12,19 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 6 (of expected -1) 01:48:12,19 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 8, leaderLastIndex: 7, leaderSnapShotIndex: 2 01:48:12,20 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: persist complete SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 01:48:12,20 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=6, lastAppliedTerm=6, lastIndex=7, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=1, mandatoryTrim=false] 01:48:12,20 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: lastSequenceNumber prior to capture: 17 01:48:12,20 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Applying to log - commitIndex: 7, lastAppliedIndex: 6 01:48:12,20 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Setting last applied to 7 01:48:12,20 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Moving last applied index from 6 to 7 01:48:12,20 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Applying state for log index 7 data seven 01:48:12,20 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: persist complete SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 01:48:12,20 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: applyState called: seven 01:48:12,20 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: CaptureSnapshotReply received by actor 01:48:12,21 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: 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=leader346, ServerConfigPayload=null] 01:48:12,21 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: log size 5 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 6 01:48:12,21 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 6 and term: 6 01:48:12,21 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persisting ApplyJournalEntries with index=7 01:48:12,21 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: SaveSnapshotSuccess received for snapshot, sequenceNr: 17 01:48:12,21 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Snapshot success - sequence number: 17 01:48:12,21 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: SnapshotComplete received 01:48:12,21 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: handled a snapshot response 01:48:12,21 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: handled a journal response 01:48:12,128 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Commit index set to 7 01:48:12,128 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 7 (of expected -1) 01:48:12,128 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 7, context.getLastApplied(): 6, lastIndex(): 7 01:48:12,128 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Setting last applied to 7 01:48:12,128 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Moving last applied index from 6 to 7 01:48:12,128 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Applying state for log index 7 data seven 01:48:12,128 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: applyState called: seven 01:48:12,128 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Persisting ApplyJournalEntries with index=7 01:48:12,170 PM [main] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Updated server config: isVoting: true, peers: [PeerInfo [id=follower348, address=akka://test/user/follower348, votingState=NON_VOTING], PeerInfo [id=follower347, address=akka://test/user/follower347, votingState=NON_VOTING]] 01:48:12,170 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persist data SimpleReplicatedLogEntry [index=8, term=6, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader346, isVoting=true], ServerInfo[peerId=follower347, isVoting=false], ServerInfo[peerId=follower348, isVoting=false]]]] 01:48:12,171 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Append log entry and persist SimpleReplicatedLogEntry [index=8, term=6, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader346, isVoting=true], ServerInfo[peerId=follower347, isVoting=false], ServerInfo[peerId=follower348, isVoting=false]]]] 01:48:12,171 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Replicate message: identifier: MockIdentifier{value=serverConfig}, logIndex: 8, payload: class org.opendaylight.controller.cluster.raft.persisted.ServerConfigurationPayload, isSendImmediate: true 01:48:12,171 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower348: active: false, followerNextIndex: 2, leaderLastIndex: 8, leaderSnapShotIndex: 6 01:48:12,171 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 8, leaderLastIndex: 8, leaderSnapShotIndex: 6 01:48:12,171 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendAppendEntries: 8 is present for follower follower347 01:48:12,171 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Sending AppendEntries to follower follower347: AppendEntries [leaderId=leader346, 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=leader346, isVoting=true], ServerInfo[peerId=follower347, isVoting=false], ServerInfo[peerId=follower348, isVoting=false]]]]]] 01:48:12,171 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): handleAppendEntries: AppendEntries [leaderId=leader346, 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=leader346, isVoting=true], ServerInfo[peerId=follower347, isVoting=false], ServerInfo[peerId=follower348, isVoting=false]]]]]] 01:48:12,171 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Number of entries to be appended = 1 01:48:12,171 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): After cleanup, lastIndex: 7, entries to be added from: 0 01:48:12,171 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader346, isVoting=true], ServerInfo[peerId=follower347, isVoting=false], ServerInfo[peerId=follower348, isVoting=false]]] 01:48:12,171 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Append log entry and persist SimpleReplicatedLogEntry [index=8, term=6, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader346, isVoting=true], ServerInfo[peerId=follower347, isVoting=false], ServerInfo[peerId=follower348, isVoting=false]]]] 01:48:12,172 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Updated server config: isVoting: false, peers: [PeerInfo [id=follower348, address=akka://test/user/follower348, votingState=NON_VOTING], PeerInfo [id=leader346, address=akka://test/user/leader346, votingState=VOTING]] 01:48:12,172 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Log size is now 7 01:48:12,172 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower347, logLastIndex=8, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:12,172 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 7 (of expected -1) 01:48:12,172 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower347 updated: matchIndex: 8, nextIndex: 9 01:48:12,172 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Checking sendAppendEntries for follower follower347: active: true, followerNextIndex: 9, leaderLastIndex: 8, leaderSnapShotIndex: 6 01:48:12,172 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: persist complete SimpleReplicatedLogEntry [index=8, term=6, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader346, isVoting=true], ServerInfo[peerId=follower347, isVoting=false], ServerInfo[peerId=follower348, isVoting=false]]]] 01:48:12,172 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Applying to log - commitIndex: 8, lastAppliedIndex: 7 01:48:12,172 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: persist complete SimpleReplicatedLogEntry [index=8, term=6, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader346, isVoting=true], ServerInfo[peerId=follower347, isVoting=false], ServerInfo[peerId=follower348, isVoting=false]]]] 01:48:12,172 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Setting last applied to 8 01:48:12,172 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Moving last applied index from 7 to 8 01:48:12,172 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Applying state for log index 8 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader346, isVoting=true], ServerInfo[peerId=follower347, isVoting=false], ServerInfo[peerId=follower348, isVoting=false]]] 01:48:12,172 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Persisting ApplyJournalEntries with index=8 01:48:12,368 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Commit index set to 8 01:48:12,368 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 8 (of expected -1) 01:48:12,368 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): 7, lastIndex(): 8 01:48:12,368 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347 (Follower): Setting last applied to 8 01:48:12,368 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Moving last applied index from 7 to 8 01:48:12,368 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Applying state for log index 8 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=leader346, isVoting=true], ServerInfo[peerId=follower347, isVoting=false], ServerInfo[peerId=follower348, isVoting=false]]] 01:48:12,368 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: Persisting ApplyJournalEntries with index=8 01:48:12,373 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyInstallSnapshotToLaggingFollower starting 01:48:12,488 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower348: Lagging -2 entries behind leader leader346 and reached 1 (of expected -1) 01:48:12,488 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 8 (of expected -1) 01:48:12,489 PM [test-akka.actor.default-dispatcher-15] [WARN] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply [term=6, success=true, followerId=follower348, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], timeSinceLastActivity : 960, lastApplied : 8, commitIndex : 8 01:48:12,489 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Initiating install snapshot to follower follower348: follower nextIndex: 2, leader snapshotIndex: 6, leader lastIndex: 8, leader log size: 2 01:48:12,489 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: 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 follower348 01:48:12,489 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: lastSequenceNumber prior to capture: 20 01:48:12,490 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: CaptureSnapshotReply received by actor 01:48:12,490 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: 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=leader346, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower348, isVoting=false], ServerInfo[peerId=follower347, isVoting=false], ServerInfo[peerId=leader346, isVoting=true]]]] 01:48:12,490 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 6 and term: 6 01:48:12,490 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): sendInstallSnapshot 01:48:12,490 PM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader346 (Leader): Snapshot 431 bytes, total chunks to send: 1 01:48:12,490 PM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader346 (Leader): Next chunk: total length=431, offset=0, size=431, hashCode=1645026355 01:48:12,490 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): next snapshot chunk size for follower follower348: 431 01:48:12,490 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): InstallSnapshot sent to follower Vector(user, follower348), Chunk: 1/1 01:48:12,490 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower348: Lagging -2 entries behind leader leader346 and reached 1 (of expected -1) 01:48:12,490 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): handleInstallSnapshot: InstallSnapshot [term=6, leaderId=leader346, lastIncludedIndex=8, lastIncludedTerm=6, datasize=431, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower348, isVoting=false], ServerInfo[peerId=follower347, isVoting=false], ServerInfo[peerId=leader346, isVoting=true]]]] 01:48:12,491 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower348: Lagging 7 entries behind leader leader346 and reached 1 (of expected -1) 01:48:12,491 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:48:12,491 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): Snapshot installed from leader: leader346 01:48:12,491 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: SaveSnapshotSuccess received for snapshot, sequenceNr: 20 01:48:12,491 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: Snapshot success - sequence number: 20 01:48:12,491 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: SnapshotComplete received 01:48:12,491 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: handled a snapshot response 01:48:12,492 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: 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=leader346, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower348, isVoting=false], ServerInfo[peerId=follower347, isVoting=false], ServerInfo[peerId=leader346, isVoting=true]]]] 01:48:12,492 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: 6 01:48:12,492 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: handled a journal response 01:48:12,493 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: SaveSnapshotSuccess received for snapshot, sequenceNr: 6 01:48:12,493 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: Snapshot success - sequence number: 6 01:48:12,493 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: Moving last applied index from 1 to 8 01:48:12,493 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: Set currentTerm=6, votedFor=leader346 01:48:12,493 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: Updated server config: isVoting: false, peers: [PeerInfo [id=follower347, address=akka://test/user/follower347, votingState=NON_VOTING], PeerInfo [id=leader346, address=akka://test/user/leader346, votingState=VOTING]] 01:48:12,493 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: applySnapshot called 01:48:12,493 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=6, followerId=follower348, chunkIndex=1, success=true] 01:48:12,494 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: SnapshotComplete received 01:48:12,494 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=6, followerId=follower348, chunkIndex=1, success=true] 01:48:12,494 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader346 (Leader): Snapshot successfully installed on follower follower348 (last chunk 1) - matchIndex set to 8, nextIndex set to 9 01:48:12,494 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader346: fakeSnapshot purging log to 7 for term 6 01:48:12,494 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: handled a journal response 01:48:12,500 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower348: handled a snapshot response 01:48:12,608 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower348: Lagging 0 entries behind leader leader346 and reached 8 (of expected -1) 01:48:12,608 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower347: Lagging 0 entries behind leader leader346 and reached 8 (of expected -1) 01:48:12,608 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower347: fakeSnapshot purging log to 7 for term 6 01:48:12,626 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyInstallSnapshotToLaggingFollower complete 01:48:12,626 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotWithLaggingFollowerCaughtUpViaInstallSnapshot complete 01:48:12,626 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower347-collector349#-1956413564] 01:48:12,637 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower347] 01:48:12,637 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower348-collector350#-1727673721] 01:48:12,638 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower348] 01:48:12,638 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader346-collector351#1641297616] 01:48:12,638 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader346] 01:48:12,639 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotWithLaggingFollowerCaughtUpViaAppendEntries starting [WARN] [09/16/2024 13:48:12.641] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower356]: org.opendaylight.controller.cluster.common.actor.Monitor@5ddb9b29 01:48:12,642 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower356 with journal batch size 1000 [WARN] [09/16/2024 13:48:12.644] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower357]: org.opendaylight.controller.cluster.common.actor.Monitor@4610e996 01:48:12,645 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower357 with journal batch size 1000 01:48:12,646 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:48:12,646 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [09/16/2024 13:48:12.646] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader355]: org.opendaylight.controller.cluster.common.actor.Monitor@2c42185f 01:48:12,647 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader355 with journal batch size 1000 01:48:12,648 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Set currentTerm=5, votedFor=leader355 01:48:12,648 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:48:13,148 PM [test-akka.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:13,148 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.21:25520, Removed) 01:48:13,148 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Follower): Received ElectionTimeout - switching to Candidate 01:48:13,148 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Candidate): Election: Candidate has following voting peers: [follower357, follower356] 01:48:13,148 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Set currentTerm=6, votedFor=leader355 01:48:13,148 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Candidate): Starting new election term 6 01:48:13,148 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Candidate): Sending RequestVote [term=6, candidateId=leader355, lastLogIndex=-1, lastLogTerm=-1] to peer follower357 01:48:13,148 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Candidate): Sending RequestVote [term=6, candidateId=leader355, lastLogIndex=-1, lastLogTerm=-1] to peer follower356 01:48:13,148 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:48:13,148 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Follower) :- Switching from behavior Follower to Candidate, election term: 6 01:48:13,148 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Cluster state: [] 01:48:13,148 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader355, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 01:48:13,149 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader355, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 01:48:13,149 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:48:13,149 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Set currentTerm=6, votedFor=null 01:48:13,149 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Cluster state: [] 01:48:13,149 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): In requestVote: RequestVote [term=6, candidateId=leader355, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 01:48:13,149 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Set currentTerm=6, votedFor=leader355 01:48:13,149 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader355, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 01:48:13,149 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 01:48:13,149 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader355, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 01:48:13,149 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Set currentTerm=6, votedFor=null 01:48:13,149 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): In requestVote: RequestVote [term=6, candidateId=leader355, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 01:48:13,149 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Set currentTerm=6, votedFor=leader355 01:48:13,149 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 01:48:13,149 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Candidate): RaftRPC message received RequestVoteReply [term=6, voteGranted=true], my term is 6 01:48:13,149 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Candidate): handleRequestVoteReply: RequestVoteReply [term=6, voteGranted=true], current voteCount: 1 01:48:13,150 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Election: Leader has following peers: [follower357, follower356] 01:48:13,150 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower357: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:13,150 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower356: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:13,150 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Candidate) :- Switching from behavior Candidate to Leader, election term: 6 01:48:13,150 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower357: Last sync leader does not match current leader leader355, need to catch up to -1 01:48:13,150 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower357 updated: matchIndex: -1, nextIndex: 0 01:48:13,150 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower357: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:13,150 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower356: Last sync leader does not match current leader leader355, need to catch up to -1 01:48:13,150 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower356 updated: matchIndex: -1, nextIndex: 0 01:48:13,150 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower356: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [09/16/2024 13:48:13.150] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower357] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@26c13d29 [WARN] [09/16/2024 13:48:13.150] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower356] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1ddfedfb 01:48:13,157 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - Leader created and elected 01:48:13,157 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Persist data SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:13,157 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:13,157 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:13,157 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower357: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:13,157 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 0 is present for follower follower357 01:48:13,157 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Sending AppendEntries to follower follower357: AppendEntries [leaderId=leader355, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:13,157 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower356: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:13,157 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 0 is present for follower follower356 01:48:13,157 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Sending AppendEntries to follower follower356: AppendEntries [leaderId=leader355, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:13,157 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): handleAppendEntries: AppendEntries [leaderId=leader355, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:13,157 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Number of entries to be appended = 1 01:48:13,157 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:48:13,157 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Append entry to log zero 01:48:13,157 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:13,157 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Persist data SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:13,157 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:13,157 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Log size is now 1 01:48:13,157 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:13,157 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower357, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:13,158 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower357: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:13,158 PM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower357: Lagging 0 entries behind leader leader355 and reached -1 (of expected -1) 01:48:13,158 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 0 is present for follower follower357 01:48:13,158 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower356: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:13,158 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 0 is present for follower follower356 01:48:13,158 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower357 updated: matchIndex: 0, nextIndex: 1 01:48:13,158 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): handleAppendEntries: AppendEntries [leaderId=leader355, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:13,158 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower357: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:13,158 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Number of entries to be appended = 1 01:48:13,158 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 1 is present for follower follower357 01:48:13,158 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:48:13,158 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Append entry to log zero 01:48:13,158 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:13,158 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Sending AppendEntries to follower follower357: AppendEntries [leaderId=leader355, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:13,158 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Log size is now 1 01:48:13,158 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower356, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:13,158 PM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached -1 (of expected -1) 01:48:13,158 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower356 updated: matchIndex: 0, nextIndex: 1 01:48:13,158 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower356: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:13,158 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 1 is present for follower follower356 01:48:13,158 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Sending AppendEntries to follower follower356: AppendEntries [leaderId=leader355, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:13,159 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:13,159 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:48:13,159 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Setting last applied to 0 01:48:13,159 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Moving last applied index from -1 to 0 01:48:13,159 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Applying state for log index 0 data zero 01:48:13,159 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: applyState called: zero 01:48:13,159 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Persisting ApplyJournalEntries with index=0 01:48:13,159 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:13,159 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): handleAppendEntries: AppendEntries [leaderId=leader355, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:13,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Number of entries to be appended = 1 01:48:13,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:48:13,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Append entry to log one 01:48:13,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:13,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Log size is now 2 01:48:13,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower357, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:13,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower357: Lagging 0 entries behind leader leader355 and reached -1 (of expected -1) [WARN] [09/16/2024 13:48:13.160] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower357] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7fd46936 01:48:13,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower357 updated: matchIndex: 1, nextIndex: 2 01:48:13,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower357: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:13,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:13,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): handleAppendEntries: AppendEntries [leaderId=leader355, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:13,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Number of entries to be appended = 1 01:48:13,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:48:13,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Append entry to log one 01:48:13,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:13,161 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Log size is now 2 01:48:13,161 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower356, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:13,161 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached -1 (of expected -1) [WARN] [09/16/2024 13:48:13.161] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower356] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6a7131b7 01:48:13,161 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower356 updated: matchIndex: 1, nextIndex: 2 01:48:13,161 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower356: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:13,161 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:13,161 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:48:13,161 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Setting last applied to 1 01:48:13,161 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Moving last applied index from 0 to 1 01:48:13,161 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Applying state for log index 1 data one 01:48:13,161 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: applyState called: one 01:48:13,161 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: fakeSnapshot purging log to 0 for term 6 01:48:13,161 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Persisting ApplyJournalEntries with index=1 01:48:13,161 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Commit index set to 0 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower357: Lagging 0 entries behind leader leader355 and reached 0 (of expected -1) 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Setting last applied to 0 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Moving last applied index from -1 to 0 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Applying state for log index 0 data zero 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: applyState called: zero 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Persisting ApplyJournalEntries with index=0 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Commit index set to 0 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached 0 (of expected -1) 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Setting last applied to 0 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Moving last applied index from -1 to 0 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Applying state for log index 0 data zero 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: applyState called: zero 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Persisting ApplyJournalEntries with index=0 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Commit index set to 1 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower357: Lagging 0 entries behind leader leader355 and reached 1 (of expected -1) 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Setting last applied to 1 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Moving last applied index from 0 to 1 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Applying state for log index 1 data one 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: applyState called: one 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: fakeSnapshot purging log to 0 for term 6 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Persisting ApplyJournalEntries with index=1 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Commit index set to 1 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached 1 (of expected -1) 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Setting last applied to 1 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Moving last applied index from 0 to 1 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Applying state for log index 1 data one 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: applyState called: one 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: fakeSnapshot purging log to 0 for term 6 01:48:13,162 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Persisting ApplyJournalEntries with index=1 01:48:13,268 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower357: Lagging 0 entries behind leader leader355 and reached 1 (of expected -1) 01:48:13,268 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached 1 (of expected -1) 01:48:13,308 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Persist data SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:13,308 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:13,309 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:13,309 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower357: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:13,309 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 2 is present for follower follower357 01:48:13,309 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Sending AppendEntries to follower follower357: AppendEntries [leaderId=leader355, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 01:48:13,309 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower356: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:13,309 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 2 is present for follower follower356 01:48:13,309 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Sending AppendEntries to follower follower356: AppendEntries [leaderId=leader355, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 01:48:13,309 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): handleAppendEntries: AppendEntries [leaderId=leader355, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 01:48:13,309 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Number of entries to be appended = 1 01:48:13,309 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:48:13,309 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Append entry to log two 01:48:13,309 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:13,309 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Log size is now 2 01:48:13,309 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower356, logLastIndex=2, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:13,309 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached 1 (of expected -1) 01:48:13,309 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower356 updated: matchIndex: 2, nextIndex: 3 01:48:13,309 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower356: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:13,310 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:13,310 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:48:13,310 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Setting last applied to 2 01:48:13,310 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Moving last applied index from 1 to 2 01:48:13,310 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Applying state for log index 2 data two 01:48:13,310 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: applyState called: two 01:48:13,310 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: fakeSnapshot purging log to 1 for term 6 01:48:13,310 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:13,310 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Persisting ApplyJournalEntries with index=2 01:48:13,388 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 2 is present for follower follower357 01:48:13,388 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Sending AppendEntries to follower follower357: AppendEntries [leaderId=leader355, prevLogIndex=1, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 01:48:13,507 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 2 is present for follower follower357 01:48:13,507 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Sending AppendEntries to follower follower357: AppendEntries [leaderId=leader355, prevLogIndex=1, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 01:48:13,508 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Commit index set to 2 01:48:13,508 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached 2 (of expected -1) 01:48:13,508 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:48:13,508 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Setting last applied to 2 01:48:13,508 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Moving last applied index from 1 to 2 01:48:13,508 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Applying state for log index 2 data two 01:48:13,508 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: applyState called: two 01:48:13,508 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: fakeSnapshot purging log to 1 for term 6 01:48:13,508 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Persisting ApplyJournalEntries with index=2 01:48:13,511 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Persist data SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:13,511 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:13,511 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:13,511 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower357: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 1 01:48:13,511 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 2 is present for follower follower357 01:48:13,511 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower356: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 01:48:13,511 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 3 is present for follower follower356 01:48:13,511 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Sending AppendEntries to follower follower356: AppendEntries [leaderId=leader355, prevLogIndex=2, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 01:48:13,511 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): handleAppendEntries: AppendEntries [leaderId=leader355, prevLogIndex=2, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 01:48:13,511 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Number of entries to be appended = 1 01:48:13,511 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 01:48:13,511 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:13,511 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Append entry to log three 01:48:13,511 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:13,511 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=6, lastIndex=3, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=1, mandatoryTrim=false] 01:48:13,512 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: lastSequenceNumber prior to capture: 9 01:48:13,512 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: CaptureSnapshotReply received by actor 01:48:13,512 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Log size is now 2 01:48:13,512 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: 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=leader355, ServerConfigPayload=null] 01:48:13,512 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 6 01:48:13,512 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower356, logLastIndex=3, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:13,512 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached 2 (of expected -1) 01:48:13,512 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower356 updated: matchIndex: 3, nextIndex: 4 01:48:13,512 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 01:48:13,512 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Setting last applied to 3 01:48:13,512 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Moving last applied index from 2 to 3 01:48:13,512 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Applying state for log index 3 data three 01:48:13,512 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: applyState called: three 01:48:13,512 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower356: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 01:48:13,512 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Persisting ApplyJournalEntries with index=3 01:48:13,512 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:13,512 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: SaveSnapshotSuccess received for snapshot, sequenceNr: 9 01:48:13,512 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Commit index set to 3 01:48:13,512 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Snapshot success - sequence number: 9 01:48:13,512 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached 3 (of expected -1) 01:48:13,512 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 01:48:13,512 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Setting last applied to 3 01:48:13,512 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Moving last applied index from 2 to 3 01:48:13,512 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Applying state for log index 3 data three 01:48:13,513 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: applyState called: three 01:48:13,513 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Persisting ApplyJournalEntries with index=3 01:48:13,513 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: SnapshotComplete received 01:48:13,513 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: handled a snapshot response 01:48:13,513 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: handled a journal response 01:48:13,561 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotWithLaggingFollowerCaughtUpViaAppendEntries: sending 2 more payloads 01:48:13,561 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Persist data SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:13,561 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:13,561 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:13,561 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower357: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: 1 01:48:13,561 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 2 is present for follower follower357 01:48:13,561 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Sending AppendEntries to follower follower357: AppendEntries [leaderId=leader355, 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]]] 01:48:13,561 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower356: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: 1 01:48:13,561 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 4 is present for follower follower356 01:48:13,561 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Sending AppendEntries to follower follower356: AppendEntries [leaderId=leader355, prevLogIndex=3, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 01:48:13,562 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Persist data SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:13,562 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:13,562 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): handleAppendEntries: AppendEntries [leaderId=leader355, prevLogIndex=3, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 01:48:13,562 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Replicate message: identifier: MockIdentifier{value=five}, logIndex: 5, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:13,562 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Number of entries to be appended = 1 01:48:13,562 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 01:48:13,562 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Append entry to log four 01:48:13,562 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:13,562 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower357: active: true, followerNextIndex: 2, leaderLastIndex: 5, leaderSnapShotIndex: 1 01:48:13,562 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 2 is present for follower follower357 01:48:13,562 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower356: active: true, followerNextIndex: 4, leaderLastIndex: 5, leaderSnapShotIndex: 1 01:48:13,562 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 4 is present for follower follower356 01:48:13,562 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Log size is now 3 01:48:13,562 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower356, logLastIndex=4, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:13,562 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached 3 (of expected -1) 01:48:13,562 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower356 updated: matchIndex: 4, nextIndex: 5 01:48:13,562 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower356: active: true, followerNextIndex: 5, leaderLastIndex: 5, leaderSnapShotIndex: 1 01:48:13,562 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 5 is present for follower follower356 01:48:13,562 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Sending AppendEntries to follower follower356: AppendEntries [leaderId=leader355, prevLogIndex=4, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five]]] 01:48:13,562 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:13,562 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 01:48:13,562 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Setting last applied to 4 01:48:13,562 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Moving last applied index from 3 to 4 01:48:13,562 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Applying state for log index 4 data four 01:48:13,562 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:13,563 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: applyState called: four 01:48:13,563 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): handleAppendEntries: AppendEntries [leaderId=leader355, prevLogIndex=4, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five]]] 01:48:13,563 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Persisting ApplyJournalEntries with index=4 01:48:13,563 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Number of entries to be appended = 1 01:48:13,563 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): After cleanup, lastIndex: 4, entries to be added from: 0 01:48:13,563 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Append entry to log five 01:48:13,563 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:13,563 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Log size is now 4 01:48:13,563 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower356, logLastIndex=5, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:13,563 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached 3 (of expected -1) 01:48:13,563 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower356 updated: matchIndex: 5, nextIndex: 6 01:48:13,563 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower356: active: true, followerNextIndex: 6, leaderLastIndex: 5, leaderSnapShotIndex: 1 01:48:13,563 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:13,563 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Applying to log - commitIndex: 5, lastAppliedIndex: 4 01:48:13,563 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Setting last applied to 5 01:48:13,563 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Moving last applied index from 4 to 5 01:48:13,563 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Applying state for log index 5 data five 01:48:13,563 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:13,564 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Commit index set to 4 01:48:13,564 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached 4 (of expected -1) 01:48:13,564 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 5 01:48:13,564 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Setting last applied to 4 01:48:13,564 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Moving last applied index from 3 to 4 01:48:13,564 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Applying state for log index 4 data four 01:48:13,564 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: applyState called: four 01:48:13,564 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: applyState called: five 01:48:13,564 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Persisting ApplyJournalEntries with index=4 01:48:13,564 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: Persisting ApplyJournalEntries with index=5 01:48:13,564 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Commit index set to 5 01:48:13,564 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached 5 (of expected -1) 01:48:13,564 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 5, context.getLastApplied(): 4, lastIndex(): 5 01:48:13,564 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356 (Follower): Setting last applied to 5 01:48:13,564 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Moving last applied index from 4 to 5 01:48:13,564 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Applying state for log index 5 data five 01:48:13,564 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: applyState called: five 01:48:13,564 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: Persisting ApplyJournalEntries with index=5 01:48:13,627 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): sendAppendEntries: 2 is present for follower follower357 01:48:13,628 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Sending AppendEntries to follower follower357: AppendEntries [leaderId=leader355, 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]]] 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): handleAppendEntries: AppendEntries [leaderId=leader355, 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]]] 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Number of entries to be appended = 4 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Append entry to log two 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Append entry to log three 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Append entry to log four 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Append entry to log five 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Log size is now 5 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Commit index set to 5 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower357, logLastIndex=5, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower357: Lagging 0 entries behind leader leader355 and reached 5 (of expected -1) 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 5, context.getLastApplied(): 1, lastIndex(): 5 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Setting last applied to 2 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Moving last applied index from 1 to 2 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Applying state for log index 2 data two 01:48:13,628 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower357 updated: matchIndex: 5, nextIndex: 6 01:48:13,628 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355: fakeSnapshot purging log to 4 for term 6 01:48:13,628 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader355 (Leader): Checking sendAppendEntries for follower follower357: active: true, followerNextIndex: 6, leaderLastIndex: 5, leaderSnapShotIndex: 4 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: applyState called: two 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Setting last applied to 3 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Moving last applied index from 2 to 3 01:48:13,628 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Applying state for log index 3 data three 01:48:13,629 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: applyState called: three 01:48:13,629 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Setting last applied to 4 01:48:13,629 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Moving last applied index from 3 to 4 01:48:13,629 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Applying state for log index 4 data four 01:48:13,629 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: applyState called: four 01:48:13,629 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357 (Follower): Setting last applied to 5 01:48:13,629 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Moving last applied index from 4 to 5 01:48:13,629 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Applying state for log index 5 data five 01:48:13,629 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: applyState called: five 01:48:13,629 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: fakeSnapshot purging log to 1 for term 6 01:48:13,630 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:13,630 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:13,630 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:13,630 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:13,630 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: Persisting ApplyJournalEntries with index=5 01:48:13,748 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower357: Lagging 0 entries behind leader leader355 and reached 5 (of expected -1) 01:48:13,748 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower357: fakeSnapshot purging log to 4 for term 6 01:48:13,748 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached 5 (of expected -1) 01:48:13,748 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower356: fakeSnapshot purging log to 4 for term 6 01:48:13,868 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower357: Lagging 0 entries behind leader leader355 and reached 5 (of expected -1) 01:48:13,868 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached 5 (of expected -1) 01:48:13,988 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower356: Lagging 0 entries behind leader leader355 and reached 5 (of expected -1) 01:48:13,988 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower357: Lagging 0 entries behind leader leader355 and reached 5 (of expected -1) 01:48:14,16 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotWithLaggingFollowerCaughtUpViaAppendEntries complete 01:48:14,16 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower356-collector358#-149989308] 01:48:14,27 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower356] 01:48:14,27 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower357-collector359#1934165328] 01:48:14,27 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower357] 01:48:14,28 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader355-collector360#-1735464080] 01:48:14,28 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader355] 01:48:14,29 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderInstallsSnapshotWithRestartedFollowerDuringSnapshotInstallation starting [WARN] [09/16/2024 13:48:14.034] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower365]: org.opendaylight.controller.cluster.common.actor.Monitor@7bbfa95 01:48:14,34 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower365 with journal batch size 1000 [WARN] [09/16/2024 13:48:14.036] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower366]: org.opendaylight.controller.cluster.common.actor.Monitor@3b5ebc9c 01:48:14,36 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:48:14,36 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower366 with journal batch size 1000 01:48:14,37 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader364 with journal batch size 1000 [WARN] [09/16/2024 13:48:14.037] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader364]: org.opendaylight.controller.cluster.common.actor.Monitor@6665169f 01:48:14,37 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:48:14,38 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Set currentTerm=5, votedFor=leader364 01:48:14,38 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:48:14,488 PM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:14,488 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.21:25520, Removed) 01:48:14,488 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Follower): Received ElectionTimeout - switching to Candidate 01:48:14,488 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Candidate): Election: Candidate has following voting peers: [follower366, follower365] 01:48:14,488 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Set currentTerm=6, votedFor=leader364 01:48:14,488 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Candidate): Starting new election term 6 01:48:14,488 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Candidate): Sending RequestVote [term=6, candidateId=leader364, lastLogIndex=-1, lastLogTerm=-1] to peer follower366 01:48:14,489 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Candidate): Sending RequestVote [term=6, candidateId=leader364, lastLogIndex=-1, lastLogTerm=-1] to peer follower365 01:48:14,489 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Follower) :- Switching from behavior Follower to Candidate, election term: 6 01:48:14,489 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:48:14,489 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Cluster state: [] 01:48:14,489 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader364, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 01:48:14,489 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:48:14,489 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader364, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 01:48:14,489 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Set currentTerm=6, votedFor=null 01:48:14,489 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Cluster state: [] 01:48:14,489 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader364, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 01:48:14,489 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader364, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 01:48:14,489 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Set currentTerm=6, votedFor=null 01:48:14,489 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): In requestVote: RequestVote [term=6, candidateId=leader364, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 01:48:14,489 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Set currentTerm=6, votedFor=leader364 01:48:14,489 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 01:48:14,489 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): In requestVote: RequestVote [term=6, candidateId=leader364, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 01:48:14,489 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Set currentTerm=6, votedFor=leader364 01:48:14,489 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 01:48:14,489 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Candidate): RaftRPC message received RequestVoteReply [term=6, voteGranted=true], my term is 6 01:48:14,489 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Candidate): handleRequestVoteReply: RequestVoteReply [term=6, voteGranted=true], current voteCount: 1 01:48:14,490 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Election: Leader has following peers: [follower366, follower365] 01:48:14,490 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower366: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:14,490 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:14,490 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Candidate) :- Switching from behavior Candidate to Leader, election term: 6 01:48:14,490 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower365: Last sync leader does not match current leader leader364, need to catch up to -1 01:48:14,490 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower366: Last sync leader does not match current leader leader364, need to catch up to -1 01:48:14,490 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower365 updated: matchIndex: -1, nextIndex: 0 01:48:14,490 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:14,490 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower366 updated: matchIndex: -1, nextIndex: 0 01:48:14,490 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower366: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [09/16/2024 13:48:14.490] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower365] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@25a9eb35 [WARN] [09/16/2024 13:48:14.490] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower366] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@212df37 01:48:14,491 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - Leader created and elected 01:48:14,491 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persist data SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:14,491 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower366: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendAppendEntries: 0 is present for follower follower366 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Sending AppendEntries to follower follower366: AppendEntries [leaderId=leader364, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendAppendEntries: 0 is present for follower follower365 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): handleAppendEntries: AppendEntries [leaderId=leader364, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Sending AppendEntries to follower follower365: AppendEntries [leaderId=leader364, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Number of entries to be appended = 1 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Append entry to log zero 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Log size is now 1 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persist data SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower366, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower366: Lagging 0 entries behind leader leader364 and reached -1 (of expected -1) 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): handleAppendEntries: AppendEntries [leaderId=leader364, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Number of entries to be appended = 1 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Append entry to log zero 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower366: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendAppendEntries: 0 is present for follower follower366 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Log size is now 1 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower365, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached -1 (of expected -1) 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendAppendEntries: 0 is present for follower follower365 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower366 updated: matchIndex: 0, nextIndex: 1 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower366: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendAppendEntries: 1 is present for follower follower366 01:48:14,492 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] [WARN] [09/16/2024 13:48:14.492] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower366] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@230104aa 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Sending AppendEntries to follower follower366: AppendEntries [leaderId=leader364, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:14,492 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower365 updated: matchIndex: 0, nextIndex: 1 [WARN] [09/16/2024 13:48:14.492] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower365] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6a164922 01:48:14,493 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): handleAppendEntries: AppendEntries [leaderId=leader364, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:14,493 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Number of entries to be appended = 1 01:48:14,493 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:14,493 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:48:14,493 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendAppendEntries: 1 is present for follower follower365 01:48:14,493 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Append entry to log one 01:48:14,493 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:14,493 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Sending AppendEntries to follower follower365: AppendEntries [leaderId=leader364, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:14,493 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Log size is now 2 01:48:14,493 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower366, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:14,493 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower366: Lagging 0 entries behind leader leader364 and reached -1 (of expected -1) 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): handleAppendEntries: AppendEntries [leaderId=leader364, prevLogIndex=0, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:14,493 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower366 updated: matchIndex: 1, nextIndex: 2 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Number of entries to be appended = 1 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Append entry to log one 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Log size is now 2 01:48:14,493 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower366: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower365, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached -1 (of expected -1) 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower365 updated: matchIndex: 1, nextIndex: 2 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Setting last applied to 0 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Moving last applied index from -1 to 0 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Applying state for log index 0 data zero 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: applyState called: zero 01:48:14,493 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persisting ApplyJournalEntries with index=0 01:48:14,493 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:14,493 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:14,493 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:14,493 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:48:14,493 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Setting last applied to 1 01:48:14,493 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Moving last applied index from 0 to 1 01:48:14,493 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Applying state for log index 1 data one 01:48:14,494 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: applyState called: one 01:48:14,494 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: fakeSnapshot purging log to 0 for term 6 01:48:14,494 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persisting ApplyJournalEntries with index=1 01:48:14,608 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Commit index set to 1 01:48:14,608 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Commit index set to 1 01:48:14,608 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower366: Lagging 0 entries behind leader leader364 and reached 1 (of expected -1) 01:48:14,608 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached 1 (of expected -1) 01:48:14,608 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:48:14,608 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 01:48:14,608 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Setting last applied to 0 01:48:14,608 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Moving last applied index from -1 to 0 01:48:14,608 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Setting last applied to 0 01:48:14,608 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Applying state for log index 0 data zero 01:48:14,608 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Moving last applied index from -1 to 0 01:48:14,608 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Applying state for log index 0 data zero 01:48:14,608 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: applyState called: zero 01:48:14,608 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Setting last applied to 1 01:48:14,608 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Moving last applied index from 0 to 1 01:48:14,608 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Applying state for log index 1 data one 01:48:14,608 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: applyState called: zero 01:48:14,608 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Setting last applied to 1 01:48:14,608 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Moving last applied index from 0 to 1 01:48:14,608 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Applying state for log index 1 data one 01:48:14,608 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: applyState called: one 01:48:14,608 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: fakeSnapshot purging log to 0 for term 6 01:48:14,608 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: applyState called: one 01:48:14,608 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: fakeSnapshot purging log to 0 for term 6 01:48:14,608 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Persisting ApplyJournalEntries with index=1 01:48:14,609 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Persisting ApplyJournalEntries with index=1 01:48:14,729 PM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower366: Lagging 0 entries behind leader leader364 and reached 1 (of expected -1) 01:48:14,729 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached 1 (of expected -1) 01:48:14,848 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached 1 (of expected -1) [WARN] [09/16/2024 13:48:14.848] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower366] received dead letter from TestActor[akka://test/user/leader364]: AppendEntries [leaderId=leader364, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 01:48:14,968 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached 1 (of expected -1) [WARN] [09/16/2024 13:48:14.968] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower366] received dead letter from TestActor[akka://test/user/leader364]: AppendEntries [leaderId=leader364, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 01:48:15,88 PM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached 1 (of expected -1) [WARN] [09/16/2024 13:48:15.088] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower366] received dead letter from TestActor[akka://test/user/leader364]: AppendEntries [leaderId=leader364, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 01:48:15,150 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persist data SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:15,150 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:15,150 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:15,151 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower366: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:15,151 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:15,151 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendAppendEntries: 2 is present for follower follower365 01:48:15,151 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Sending AppendEntries to follower follower365: AppendEntries [leaderId=leader364, 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] [09/16/2024 13:48:15.151] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower366] received dead letter from TestActor[akka://test/user/leader364]: AppendEntries [leaderId=leader364, prevLogIndex=1, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 01:48:15,151 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): handleAppendEntries: AppendEntries [leaderId=leader364, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 01:48:15,151 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Number of entries to be appended = 1 01:48:15,151 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persist data SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:15,151 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:48:15,151 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:15,151 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Append entry to log two 01:48:15,151 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:15,151 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:15,151 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Log size is now 2 01:48:15,151 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower366: active: false, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 0 01:48:15,151 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower365, logLastIndex=2, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:15,151 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached 1 (of expected -1) 01:48:15,151 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: 0 01:48:15,151 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendAppendEntries: 2 is present for follower follower365 [WARN] [09/16/2024 13:48:15.151] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower366] received dead letter from TestActor[akka://test/user/leader364]: AppendEntries [leaderId=leader364, prevLogIndex=1, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 01:48:15,151 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower365 updated: matchIndex: 2, nextIndex: 3 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 0 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendAppendEntries: 3 is present for follower follower365 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Sending AppendEntries to follower follower365: AppendEntries [leaderId=leader364, prevLogIndex=2, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persist data SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower366: active: false, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: 0 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: 0 [WARN] [09/16/2024 13:48:15.152] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower366] received dead letter from TestActor[akka://test/user/leader364]: AppendEntries [leaderId=leader364, prevLogIndex=1, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendAppendEntries: 3 is present for follower follower365 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persist data SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Replicate message: identifier: MockIdentifier{value=five}, logIndex: 5, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:15,152 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower366: active: false, followerNextIndex: 2, leaderLastIndex: 5, leaderSnapShotIndex: 0 01:48:15,152 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): handleAppendEntries: AppendEntries [leaderId=leader364, prevLogIndex=2, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: true, followerNextIndex: 3, leaderLastIndex: 5, leaderSnapShotIndex: 0 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendAppendEntries: 3 is present for follower follower365 01:48:15,152 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Number of entries to be appended = 1 01:48:15,152 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 01:48:15,152 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Append entry to log three 01:48:15,152 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persist data SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Append log entry and persist SimpleReplicatedLogEntry [index=6, term=6, payload=six] [WARN] [09/16/2024 13:48:15.152] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower366] received dead letter from TestActor[akka://test/user/leader364]: AppendEntries [leaderId=leader364, prevLogIndex=1, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 01:48:15,152 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Log size is now 3 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Replicate message: identifier: MockIdentifier{value=six}, logIndex: 6, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower366: active: false, followerNextIndex: 2, leaderLastIndex: 6, leaderSnapShotIndex: 0 01:48:15,152 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower365, logLastIndex=3, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:15,152 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached 1 (of expected -1) 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: true, followerNextIndex: 3, leaderLastIndex: 6, leaderSnapShotIndex: 0 01:48:15,152 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendAppendEntries: 3 is present for follower follower365 [WARN] [09/16/2024 13:48:15.152] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower366] received dead letter from TestActor[akka://test/user/leader364]: AppendEntries [leaderId=leader364, prevLogIndex=1, prevLogTerm=6, leaderCommit=-1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 01:48:15,153 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower365 updated: matchIndex: 3, nextIndex: 4 01:48:15,153 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: true, followerNextIndex: 4, leaderLastIndex: 6, leaderSnapShotIndex: 0 01:48:15,153 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendAppendEntries: 4 is present for follower follower365 01:48:15,153 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Sending AppendEntries to follower follower365: AppendEntries [leaderId=leader364, prevLogIndex=3, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four], SimpleReplicatedLogEntry [index=5, term=6, payload=five], SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 01:48:15,153 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:15,153 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:48:15,153 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Setting last applied to 2 01:48:15,153 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Moving last applied index from 1 to 2 01:48:15,153 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:15,153 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Applying state for log index 2 data two 01:48:15,153 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): handleAppendEntries: AppendEntries [leaderId=leader364, prevLogIndex=3, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four], SimpleReplicatedLogEntry [index=5, term=6, payload=five], SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 01:48:15,153 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Number of entries to be appended = 3 01:48:15,153 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 01:48:15,153 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Append entry to log four 01:48:15,153 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:15,153 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: applyState called: two 01:48:15,153 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: fakeSnapshot purging log to 1 for term 6 01:48:15,153 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Append entry to log five 01:48:15,153 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:15,153 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Append entry to log six 01:48:15,153 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persisting ApplyJournalEntries with index=2 01:48:15,153 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Append log entry and persist SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:15,153 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Log size is now 6 01:48:15,153 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower365, logLastIndex=6, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:15,153 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached 1 (of expected -1) 01:48:15,153 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower365 updated: matchIndex: 6, nextIndex: 7 01:48:15,153 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: true, followerNextIndex: 7, leaderLastIndex: 6, leaderSnapShotIndex: 1 01:48:15,153 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:15,153 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=6, lastIndex=3, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=4, mandatoryTrim=false] 01:48:15,153 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: lastSequenceNumber prior to capture: 8 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Setting last applied to 3 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Moving last applied index from 2 to 3 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Applying state for log index 3 data three 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: applyState called: three 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: CaptureSnapshotReply received by actor 01:48:15,154 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:15,154 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:15,154 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: persist complete SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: 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=leader364, ServerConfigPayload=null] 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: log size 5 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 2 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 6 01:48:15,154 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Commit index set to 2 01:48:15,154 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached 2 (of expected -1) 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persisting ApplyJournalEntries with index=3 01:48:15,154 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 6 01:48:15,154 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Setting last applied to 2 01:48:15,154 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Moving last applied index from 1 to 2 01:48:15,154 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Applying state for log index 2 data two 01:48:15,154 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: applyState called: two 01:48:15,154 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: fakeSnapshot purging log to 1 for term 6 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Persisting ApplyJournalEntries with index=2 01:48:15,154 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:15,154 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Commit index set to 3 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached 3 (of expected -1) 01:48:15,154 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Setting last applied to 4 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 6 01:48:15,154 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Moving last applied index from 3 to 4 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Setting last applied to 3 01:48:15,154 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Applying state for log index 4 data four 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Moving last applied index from 2 to 3 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Applying state for log index 3 data three 01:48:15,154 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: applyState called: three 01:48:15,155 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Persisting ApplyJournalEntries with index=3 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: applyState called: four 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persisting ApplyJournalEntries with index=4 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Commit index set to 4 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached 4 (of expected -1) 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 6 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Setting last applied to 4 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Moving last applied index from 3 to 4 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Applying state for log index 4 data four 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: applyState called: four 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Persisting ApplyJournalEntries with index=4 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Applying to log - commitIndex: 5, lastAppliedIndex: 4 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Setting last applied to 5 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Moving last applied index from 4 to 5 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Applying state for log index 5 data five 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: applyState called: five 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persisting ApplyJournalEntries with index=5 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: persist complete SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Applying to log - commitIndex: 6, lastAppliedIndex: 5 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Setting last applied to 6 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Moving last applied index from 5 to 6 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Applying state for log index 6 data six 01:48:15,155 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: applyState called: six 01:48:15,156 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persisting ApplyJournalEntries with index=6 01:48:15,156 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: SaveSnapshotSuccess received for snapshot, sequenceNr: 8 01:48:15,156 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Snapshot success - sequence number: 8 01:48:15,156 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: SnapshotComplete received 01:48:15,156 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: handled a snapshot response 01:48:15,156 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: handled a journal response 01:48:15,201 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderInstallsSnapshotWithRestartedFollowerDuringSnapshotInstallation: sending 1 more payload to trigger second snapshot 01:48:15,201 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persist data SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 01:48:15,201 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Append log entry and persist SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 01:48:15,201 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Replicate message: identifier: MockIdentifier{value=seven}, logIndex: 7, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:15,201 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower366: active: false, followerNextIndex: 2, leaderLastIndex: 7, leaderSnapShotIndex: 2 01:48:15,201 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: true, followerNextIndex: 7, leaderLastIndex: 7, leaderSnapShotIndex: 2 01:48:15,201 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendAppendEntries: 7 is present for follower follower365 01:48:15,202 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Sending AppendEntries to follower follower365: AppendEntries [leaderId=leader364, 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] [09/16/2024 13:48:15.202] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower366] received dead letter from TestActor[akka://test/user/leader364]: AppendEntries [leaderId=leader364, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): handleAppendEntries: AppendEntries [leaderId=leader364, prevLogIndex=6, prevLogTerm=6, leaderCommit=6, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=7, term=6, payload=seven]]] 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Number of entries to be appended = 1 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): After cleanup, lastIndex: 6, entries to be added from: 0 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Append entry to log seven 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Append log entry and persist SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Log size is now 6 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Commit index set to 6 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower365, logLastIndex=7, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached 6 (of expected -1) 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 6, context.getLastApplied(): 4, lastIndex(): 7 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Setting last applied to 5 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Moving last applied index from 4 to 5 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Applying state for log index 5 data five 01:48:15,202 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower365 updated: matchIndex: 7, nextIndex: 8 01:48:15,202 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower365: active: true, followerNextIndex: 8, leaderLastIndex: 7, leaderSnapShotIndex: 2 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: applyState called: five 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Setting last applied to 6 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Moving last applied index from 5 to 6 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Applying state for log index 6 data six 01:48:15,202 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: applyState called: six 01:48:15,203 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: persist complete SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 01:48:15,203 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: persist complete SimpleReplicatedLogEntry [index=7, term=6, payload=seven] 01:48:15,203 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=6, lastAppliedTerm=6, lastIndex=7, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=1, mandatoryTrim=false] 01:48:15,203 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Persisting ApplyJournalEntries with index=6 01:48:15,203 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: lastSequenceNumber prior to capture: 17 01:48:15,203 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Applying to log - commitIndex: 7, lastAppliedIndex: 6 01:48:15,203 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Setting last applied to 7 01:48:15,203 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Moving last applied index from 6 to 7 01:48:15,203 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Applying state for log index 7 data seven 01:48:15,203 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: applyState called: seven 01:48:15,203 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: CaptureSnapshotReply received by actor 01:48:15,204 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: 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=leader364, ServerConfigPayload=null] 01:48:15,204 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: log size 5 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 6 01:48:15,204 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 6 and term: 6 01:48:15,204 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Persisting ApplyJournalEntries with index=7 01:48:15,204 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: SaveSnapshotSuccess received for snapshot, sequenceNr: 17 01:48:15,204 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Snapshot success - sequence number: 17 01:48:15,204 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: SnapshotComplete received 01:48:15,204 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: handled a journal response 01:48:15,205 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: handled a snapshot response [WARN] [09/16/2024 13:48:15.208] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower366] received dead letter from TestActor[akka://test/user/leader364]: AppendEntries [leaderId=leader364, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [09/16/2024 13:48:15.328] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower366] received dead letter from TestActor[akka://test/user/leader364]: AppendEntries [leaderId=leader364, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]] 01:48:15,328 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Commit index set to 7 01:48:15,328 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached 7 (of expected -1) 01:48:15,328 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 7, context.getLastApplied(): 6, lastIndex(): 7 01:48:15,328 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365 (Follower): Setting last applied to 7 01:48:15,328 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Moving last applied index from 6 to 7 01:48:15,329 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Applying state for log index 7 data seven 01:48:15,329 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: applyState called: seven 01:48:15,329 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: Persisting ApplyJournalEntries with index=7 [WARN] [09/16/2024 13:48:15.354] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower366]: org.opendaylight.controller.cluster.common.actor.Monitor@4b208bcb 01:48:15,355 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower366 with journal batch size 1000 01:48:15,357 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Set currentTerm=6, votedFor=null 01:48:15,357 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Set currentTerm=6, votedFor=leader364 01:48:15,358 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Received ReplicatedLogEntry for recovery: index: 0, size: 4 01:48:15,358 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Received ReplicatedLogEntry for recovery: index: 1, size: 3 01:48:15,358 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Received apply journal entries for recovery, applying to state: 0 to 1 01:48:15,358 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Moving last applied index from -1 to 1 01:48:15,358 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Recovery completed in 82.11 μs - Switching actor to Follower - last log index = 1, last log term = 6, snapshot index = -1, snapshot term = -1, journal size = 2 01:48:15,448 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached 7 (of expected -1) 01:48:15,448 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower366: Last sync leader does not match current leader leader364, need to catch up to -1 01:48:15,448 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: fakeSnapshot purging log to 0 for term 6 01:48:15,448 PM [test-akka.actor.default-dispatcher-17] [WARN] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply [term=6, success=true, followerId=follower366, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], timeSinceLastActivity : 719, lastApplied : 7, commitIndex : 7 01:48:15,448 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Initiating install snapshot to follower follower366: follower nextIndex: 2, leader snapshotIndex: 6, leader lastIndex: 7, leader log size: 1 01:48:15,448 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: 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 follower366 [WARN] [09/16/2024 13:48:15.448] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower366] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@da092ab 01:48:15,448 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: lastSequenceNumber prior to capture: 18 01:48:15,449 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: CaptureSnapshotReply received by actor 01:48:15,449 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower366: Lagging -2 entries behind leader leader364 and reached 1 (of expected -1) 01:48:15,449 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: 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=leader364, ServerConfigPayload=null] [WARN] [09/16/2024 13:48:15.449] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower366] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@20747794 01:48:15,449 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 6 and term: 6 01:48:15,449 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendInstallSnapshot 01:48:15,449 PM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader364 (Leader): Snapshot 431 bytes, total chunks to send: 1 01:48:15,449 PM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader364 (Leader): Next chunk: total length=431, offset=0, size=431, hashCode=1645026355 01:48:15,449 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): next snapshot chunk size for follower follower366: 431 01:48:15,449 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): InstallSnapshot sent to follower Vector(user, follower366), Chunk: 1/1 01:48:15,449 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: SaveSnapshotSuccess received for snapshot, sequenceNr: 18 01:48:15,449 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Snapshot success - sequence number: 18 01:48:15,449 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): handleInstallSnapshot: InstallSnapshot [term=6, leaderId=leader364, lastIncludedIndex=7, lastIncludedTerm=6, datasize=431, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null] 01:48:15,449 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower366: Lagging 6 entries behind leader leader364 and reached 1 (of expected -1) 01:48:15,449 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:48:15,449 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: SnapshotComplete received 01:48:15,449 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Snapshot installed from leader: leader364 01:48:15,450 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: handled a journal response 01:48:15,450 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: 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=leader364, ServerConfigPayload=null] 01:48:15,450 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: 5 01:48:15,451 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: handled a snapshot response 01:48:15,451 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: SaveSnapshotSuccess received for snapshot, sequenceNr: 5 01:48:15,451 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Snapshot success - sequence number: 5 01:48:15,451 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Moving last applied index from 1 to 7 01:48:15,451 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Set currentTerm=6, votedFor=leader364 01:48:15,451 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: applySnapshot called 01:48:15,451 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=6, followerId=follower366, chunkIndex=1, success=true] 01:48:15,451 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: SnapshotComplete received 01:48:15,451 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=6, followerId=follower366, chunkIndex=1, success=true] 01:48:15,451 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Snapshot successfully installed on follower follower366 (last chunk 1) - matchIndex set to 7, nextIndex set to 8 01:48:15,451 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: handled a journal response 01:48:15,451 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: handled a snapshot response [WARN] [09/16/2024 13:48:15.457] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower366]: org.opendaylight.controller.cluster.common.actor.Monitor@7e8651bd 01:48:15,458 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower366 with journal batch size 1000 01:48:15,459 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:48:15,569 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower365: Lagging 0 entries behind leader leader364 and reached 7 (of expected -1) 01:48:15,569 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower365: fakeSnapshot purging log to 6 for term 6 01:48:15,569 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Term 6 in "AppendEntries [leaderId=leader364, prevLogIndex=7, prevLogTerm=6, leaderCommit=7, replicatedToAllIndex=6, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 01:48:15,569 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Set currentTerm=6, votedFor=null 01:48:15,569 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): The followers log is empty and the senders prevLogIndex is 7 01:48:15,569 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=6, success=false, followerId=follower366, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:15,570 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower366: Last sync leader does not match current leader leader364, need to catch up to 7 01:48:15,570 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=6, success=false, followerId=follower366, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: 6, snapshotTerm: 6, replicatedToAllIndex: 6 01:48:15,570 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower366 updated: matchIndex: -1, nextIndex: 0 01:48:15,570 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): follower follower366 appears to be behind the leader from the last snapshot - updated: matchIndex: -1, nextIndex: 0 01:48:15,570 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Checking sendAppendEntries for follower follower366: active: true, followerNextIndex: 0, leaderLastIndex: 7, leaderSnapShotIndex: 6 01:48:15,570 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Initiating install snapshot to follower follower366: follower nextIndex: 0, leader snapshotIndex: 6, leader lastIndex: 7, leader log size: 1 01:48:15,570 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: 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 follower366 01:48:15,570 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: lastSequenceNumber prior to capture: 18 [WARN] [09/16/2024 13:48:15.570] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower366] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7b715c98 01:48:15,571 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: CaptureSnapshotReply received by actor 01:48:15,571 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Cannot append entries because the replicatedToAllIndex 6 does not appear to be in the in-memory journal - lastIndex: -1, snapshotIndex: -1, snapshotTerm: -1 01:48:15,571 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: 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=leader364, ServerConfigPayload=null] 01:48:15,571 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 6 and term: 6 01:48:15,571 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=6, success=false, followerId=follower366, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:15,571 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): sendInstallSnapshot 01:48:15,571 PM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader364 (Leader): Snapshot 431 bytes, total chunks to send: 1 01:48:15,571 PM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader364 (Leader): Next chunk: total length=431, offset=0, size=431, hashCode=1645026355 01:48:15,571 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): next snapshot chunk size for follower follower366: 431 01:48:15,571 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): InstallSnapshot sent to follower Vector(user, follower366), Chunk: 1/1 01:48:15,571 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): handleInstallSnapshot: InstallSnapshot [term=6, leaderId=leader364, lastIncludedIndex=7, lastIncludedTerm=6, datasize=431, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null] 01:48:15,571 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:48:15,571 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=6, success=false, followerId=follower366, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: 6, snapshotTerm: 6, replicatedToAllIndex: 6 01:48:15,571 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): Snapshot installed from leader: leader364 01:48:15,571 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): follower follower366 appears to be behind the leader from the last snapshot - updated: matchIndex: -1, nextIndex: 0 01:48:15,571 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: SaveSnapshotSuccess received for snapshot, sequenceNr: 18 01:48:15,572 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: Snapshot success - sequence number: 18 01:48:15,572 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: SnapshotComplete received 01:48:15,572 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: handled a snapshot response 01:48:15,572 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: 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] 01:48:15,572 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: 1 01:48:15,572 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364: handled a journal response 01:48:15,572 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: SaveSnapshotSuccess received for snapshot, sequenceNr: 1 01:48:15,572 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Snapshot success - sequence number: 1 01:48:15,572 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Moving last applied index from -1 to 7 01:48:15,572 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: Set currentTerm=6, votedFor=null 01:48:15,572 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: applySnapshot called 01:48:15,572 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=6, followerId=follower366, chunkIndex=1, success=true] 01:48:15,573 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: SnapshotComplete received 01:48:15,573 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=6, followerId=follower366, chunkIndex=1, success=true] 01:48:15,573 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader364 (Leader): Snapshot successfully installed on follower follower366 (last chunk 1) - matchIndex set to 7, nextIndex set to 8 01:48:15,573 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: handled a journal response 01:48:15,573 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower366: handled a snapshot response 01:48:15,610 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower365-collector367#1839024895] 01:48:15,621 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower365] 01:48:15,621 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower366-collector368#1591256078] 01:48:15,623 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower366] 01:48:15,624 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader364-collector369#2143223327] 01:48:15,624 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader364] 01:48:15,625 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower366-collector370#-427808010] 01:48:15,625 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower366] 01:48:15,625 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower366-collector371#-1037621804] 01:48:15,626 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower366] 01:48:15,627 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotTriggeredByMemoryThresholdExceededWithLaggingFollower starting [WARN] [09/16/2024 13:48:15.628] [test-akka.actor.default-dispatcher-13] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower376]: org.opendaylight.controller.cluster.common.actor.Monitor@346b0601 01:48:15,629 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower376 with journal batch size 1000 01:48:15,630 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [09/16/2024 13:48:15.631] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower377]: org.opendaylight.controller.cluster.common.actor.Monitor@6f622b24 01:48:15,631 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower377 with journal batch size 1000 01:48:15,632 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [09/16/2024 13:48:15.733] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader375]: org.opendaylight.controller.cluster.common.actor.Monitor@69dda9d1 01:48:15,734 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader375 with journal batch size 1000 01:48:15,736 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Set currentTerm=5, votedFor=leader375 01:48:15,736 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:48:16,238 PM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:48:16,238 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.21:25520, Removed) 01:48:16,238 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Follower): Received ElectionTimeout - switching to Candidate 01:48:16,238 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Candidate): Election: Candidate has following voting peers: [follower377, follower376] 01:48:16,238 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Set currentTerm=6, votedFor=leader375 01:48:16,238 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Candidate): Starting new election term 6 01:48:16,239 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Candidate): Sending RequestVote [term=6, candidateId=leader375, lastLogIndex=-1, lastLogTerm=-1] to peer follower377 01:48:16,239 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Candidate): Sending RequestVote [term=6, candidateId=leader375, lastLogIndex=-1, lastLogTerm=-1] to peer follower376 01:48:16,239 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Follower) :- Switching from behavior Follower to Candidate, election term: 6 01:48:16,239 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:48:16,239 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:48:16,239 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Cluster state: [] 01:48:16,239 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Cluster state: [] 01:48:16,239 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader375, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 01:48:16,239 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Candidate in requestVote:RequestVote [term=6, candidateId=leader375, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 01:48:16,239 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader375, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 01:48:16,239 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Term 6 in "RequestVote [term=6, candidateId=leader375, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 01:48:16,239 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Set currentTerm=6, votedFor=null 01:48:16,239 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Set currentTerm=6, votedFor=null 01:48:16,239 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): In requestVote: RequestVote [term=6, candidateId=leader375, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 01:48:16,239 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): In requestVote: RequestVote [term=6, candidateId=leader375, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 6, votedFor: null, lastIndex: -1, lastTerm: -1 01:48:16,239 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Set currentTerm=6, votedFor=leader375 01:48:16,239 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Set currentTerm=6, votedFor=leader375 01:48:16,239 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 01:48:16,239 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): requestVote returning: RequestVoteReply [term=6, voteGranted=true] 01:48:16,240 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Candidate): RaftRPC message received RequestVoteReply [term=6, voteGranted=true], my term is 6 01:48:16,240 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Candidate): handleRequestVoteReply: RequestVoteReply [term=6, voteGranted=true], current voteCount: 1 01:48:16,240 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Election: Leader has following peers: [follower377, follower376] 01:48:16,240 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower377: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:16,240 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:48:16,240 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Candidate) :- Switching from behavior Candidate to Leader, election term: 6 01:48:16,240 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower377: Last sync leader does not match current leader leader375, need to catch up to -1 01:48:16,240 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower377 updated: matchIndex: -1, nextIndex: 0 01:48:16,240 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower377: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [09/16/2024 13:48:16.240] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower377] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@47ac6895 01:48:16,241 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower376: Last sync leader does not match current leader leader375, need to catch up to -1 01:48:16,241 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower376 updated: matchIndex: -1, nextIndex: 0 01:48:16,241 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [09/16/2024 13:48:16.241] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower376] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1c36449e 01:48:16,241 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - Leader created and elected 01:48:16,241 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Persist data SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:16,241 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:16,241 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:16,241 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower377: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:16,241 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): sendAppendEntries: 0 is present for follower follower377 01:48:16,241 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Sending AppendEntries to follower follower377: AppendEntries [leaderId=leader375, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:16,241 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:16,241 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): sendAppendEntries: 0 is present for follower follower376 01:48:16,241 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): handleAppendEntries: AppendEntries [leaderId=leader375, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:16,241 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Sending AppendEntries to follower follower376: AppendEntries [leaderId=leader375, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:16,241 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Number of entries to be appended = 1 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Append entry to log zero 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:16,242 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): handleAppendEntries: AppendEntries [leaderId=leader375, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=6, payload=zero]]] 01:48:16,242 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Number of entries to be appended = 1 01:48:16,242 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Log size is now 1 01:48:16,242 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Append entry to log zero 01:48:16,242 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower377, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower377: Lagging 0 entries behind leader leader375 and reached -1 (of expected -1) 01:48:16,242 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Log size is now 1 01:48:16,242 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower376, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower377 updated: matchIndex: 0, nextIndex: 1 01:48:16,242 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached -1 (of expected -1) 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower377: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower376 updated: matchIndex: 0, nextIndex: 1 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Setting last applied to 0 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Moving last applied index from -1 to 0 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Applying state for log index 0 data zero 01:48:16,242 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: applyState called: zero 01:48:16,242 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Persisting ApplyJournalEntries with index=0 01:48:16,242 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: persist complete SimpleReplicatedLogEntry [index=0, term=6, payload=zero] [WARN] [09/16/2024 13:48:16.242] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower377] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@12ba8136 [WARN] [09/16/2024 13:48:16.243] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower376] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4bdc5f81 01:48:16,358 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Commit index set to 0 01:48:16,358 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Commit index set to 0 01:48:16,358 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 0 (of expected -1) 01:48:16,358 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower377: Lagging 0 entries behind leader leader375 and reached 0 (of expected -1) 01:48:16,358 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:48:16,358 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:48:16,358 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Setting last applied to 0 01:48:16,358 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Setting last applied to 0 01:48:16,358 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Moving last applied index from -1 to 0 01:48:16,358 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Moving last applied index from -1 to 0 01:48:16,358 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Applying state for log index 0 data zero 01:48:16,358 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Applying state for log index 0 data zero 01:48:16,358 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: applyState called: zero 01:48:16,358 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: applyState called: zero 01:48:16,358 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Persisting ApplyJournalEntries with index=0 01:48:16,358 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Persisting ApplyJournalEntries with index=0 01:48:16,478 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 0 (of expected -1) 01:48:16,478 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower377: Lagging 0 entries behind leader leader375 and reached 0 (of expected -1) 01:48:16,598 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 0 (of expected -1) 01:48:16,718 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 0 (of expected -1) 01:48:16,838 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 0 (of expected -1) 01:48:16,901 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Persist data SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:16,901 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:16,901 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:16,901 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower377: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:16,901 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:16,901 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): sendAppendEntries: 1 is present for follower follower376 01:48:16,901 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Sending AppendEntries to follower follower376: AppendEntries [leaderId=leader375, prevLogIndex=0, prevLogTerm=6, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:16,901 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): handleAppendEntries: AppendEntries [leaderId=leader375, prevLogIndex=0, prevLogTerm=6, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=6, payload=one]]] 01:48:16,901 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Number of entries to be appended = 1 01:48:16,901 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:48:16,901 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Append entry to log one 01:48:16,901 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:16,901 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Log size is now 2 01:48:16,901 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower376, logLastIndex=1, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:16,901 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 0 (of expected -1) 01:48:16,902 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower376 updated: matchIndex: 1, nextIndex: 2 01:48:16,902 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:48:16,902 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:16,902 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 01:48:16,902 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Setting last applied to 1 01:48:16,902 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Moving last applied index from 0 to 1 01:48:16,902 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Applying state for log index 1 data one 01:48:16,902 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: applyState called: one 01:48:16,902 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: fakeSnapshot purging log to 0 for term 6 01:48:16,902 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Persisting ApplyJournalEntries with index=1 01:48:16,903 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: persist complete SimpleReplicatedLogEntry [index=1, term=6, payload=one] 01:48:17,78 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Commit index set to 1 01:48:17,78 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 1 (of expected -1) 01:48:17,78 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:48:17,78 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Setting last applied to 1 01:48:17,78 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Moving last applied index from 0 to 1 01:48:17,79 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Applying state for log index 1 data one 01:48:17,79 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: applyState called: one 01:48:17,79 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: fakeSnapshot purging log to 0 for term 6 01:48:17,79 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Persisting ApplyJournalEntries with index=1 01:48:17,198 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 1 (of expected -1) 01:48:17,318 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 1 (of expected -1) 01:48:17,357 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Persist data SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:17,357 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:17,357 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:17,357 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower377: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:17,357 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:17,357 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): sendAppendEntries: 2 is present for follower follower376 01:48:17,357 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Sending AppendEntries to follower follower376: AppendEntries [leaderId=leader375, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 01:48:17,357 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): handleAppendEntries: AppendEntries [leaderId=leader375, prevLogIndex=1, prevLogTerm=6, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=6, payload=two]]] 01:48:17,357 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Number of entries to be appended = 1 01:48:17,357 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:48:17,357 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Append entry to log two 01:48:17,357 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:17,357 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Log size is now 2 01:48:17,358 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower376, logLastIndex=2, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:17,358 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 1 (of expected -1) 01:48:17,358 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower376 updated: matchIndex: 2, nextIndex: 3 01:48:17,358 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:48:17,358 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:17,358 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=6, lastIndex=2, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=1, mandatoryTrim=false] 01:48:17,358 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: lastSequenceNumber prior to capture: 7 01:48:17,358 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 01:48:17,358 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Setting last applied to 2 01:48:17,358 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Moving last applied index from 1 to 2 01:48:17,358 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Applying state for log index 2 data two 01:48:17,358 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: persist complete SimpleReplicatedLogEntry [index=2, term=6, payload=two] 01:48:17,358 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: applyState called: two 01:48:17,358 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: CaptureSnapshotReply received by actor 01:48:17,358 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Persisting of snapshot done: Snapshot [lastIndex=2, lastTerm=6, lastAppliedIndex=1, lastAppliedTerm=6, unAppliedEntries size=1, state=MockSnapshotState [state=[zero, one]], electionTerm=6, electionVotedFor=leader375, ServerConfigPayload=null] 01:48:17,359 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: log data size 705 exceeds the memory threshold 700 - doing snapshotPreCommit with index 1 01:48:17,359 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 6 01:48:17,359 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Persisting ApplyJournalEntries with index=2 01:48:17,359 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: SaveSnapshotSuccess received for snapshot, sequenceNr: 7 01:48:17,359 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Snapshot success - sequence number: 7 01:48:17,359 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: SnapshotComplete received 01:48:17,359 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: handled a journal response 01:48:17,359 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: handled a snapshot response 01:48:17,558 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Commit index set to 2 01:48:17,558 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 2 (of expected -1) 01:48:17,558 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:48:17,558 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Setting last applied to 2 01:48:17,558 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Moving last applied index from 1 to 2 01:48:17,558 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Applying state for log index 2 data two 01:48:17,558 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: applyState called: two 01:48:17,558 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Persisting ApplyJournalEntries with index=2 01:48:17,559 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyInstallSnapshotToLaggingFollower starting 01:48:17,678 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 2 (of expected -1) 01:48:17,678 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower377: Lagging -1 entries behind leader leader375 and reached 0 (of expected -1) 01:48:17,678 PM [test-akka.actor.default-dispatcher-13] [WARN] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply [term=6, success=true, followerId=follower377, logLastIndex=0, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], timeSinceLastActivity : 1199, lastApplied : 2, commitIndex : 2 01:48:17,678 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Initiating install snapshot to follower follower377: follower nextIndex: 1, leader snapshotIndex: 1, leader lastIndex: 2, leader log size: 1 01:48:17,678 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: 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 follower377 01:48:17,678 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: lastSequenceNumber prior to capture: 8 01:48:17,678 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: CaptureSnapshotReply received by actor 01:48:17,678 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: 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=leader375, ServerConfigPayload=null] 01:48:17,678 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 6 01:48:17,678 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): sendInstallSnapshot 01:48:17,678 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower377: Lagging -1 entries behind leader leader375 and reached 0 (of expected -1) 01:48:17,678 PM [test-akka.actor.default-dispatcher-13] [DEBUG] LeaderInstallSnapshotState - leader375 (Leader): Snapshot 345 bytes, total chunks to send: 1 01:48:17,678 PM [test-akka.actor.default-dispatcher-13] [DEBUG] LeaderInstallSnapshotState - leader375 (Leader): Next chunk: total length=345, offset=0, size=345, hashCode=-119615070 01:48:17,678 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): next snapshot chunk size for follower follower377: 345 01:48:17,678 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): InstallSnapshot sent to follower Vector(user, follower377), Chunk: 1/1 01:48:17,678 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): handleInstallSnapshot: InstallSnapshot [term=6, leaderId=leader375, lastIncludedIndex=2, lastIncludedTerm=6, datasize=345, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null] 01:48:17,678 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower377: Lagging 2 entries behind leader leader375 and reached 0 (of expected -1) 01:48:17,679 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:48:17,679 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Snapshot installed from leader: leader375 01:48:17,679 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: SaveSnapshotSuccess received for snapshot, sequenceNr: 8 01:48:17,679 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Snapshot success - sequence number: 8 01:48:17,679 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: SnapshotComplete received 01:48:17,679 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: handled a journal response 01:48:17,679 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: 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=leader375, ServerConfigPayload=null] 01:48:17,679 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: 4 01:48:17,681 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: handled a snapshot response 01:48:17,681 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: SaveSnapshotSuccess received for snapshot, sequenceNr: 4 01:48:17,681 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Snapshot success - sequence number: 4 01:48:17,681 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Moving last applied index from 0 to 2 01:48:17,681 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Set currentTerm=6, votedFor=leader375 01:48:17,681 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: applySnapshot called 01:48:17,681 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=6, followerId=follower377, chunkIndex=1, success=true] 01:48:17,682 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=6, followerId=follower377, chunkIndex=1, success=true] 01:48:17,682 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: SnapshotComplete received 01:48:17,682 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Snapshot successfully installed on follower follower377 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 01:48:17,682 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: handled a snapshot response 01:48:17,682 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: handled a journal response 01:48:17,798 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 2 (of expected -1) 01:48:17,798 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower377: Lagging 0 entries behind leader leader375 and reached 2 (of expected -1) 01:48:17,798 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: fakeSnapshot purging log to 1 for term 6 01:48:17,811 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyInstallSnapshotToLaggingFollower complete 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Persist data SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower377: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): sendAppendEntries: 3 is present for follower follower377 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Sending AppendEntries to follower follower377: AppendEntries [leaderId=leader375, prevLogIndex=2, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): sendAppendEntries: 3 is present for follower follower376 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Sending AppendEntries to follower follower376: AppendEntries [leaderId=leader375, prevLogIndex=2, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 01:48:17,812 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): handleAppendEntries: AppendEntries [leaderId=leader375, prevLogIndex=2, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 01:48:17,812 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Number of entries to be appended = 1 01:48:17,812 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 01:48:17,812 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Append entry to log three 01:48:17,812 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): handleAppendEntries: AppendEntries [leaderId=leader375, prevLogIndex=2, prevLogTerm=6, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=6, payload=three]]] 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Number of entries to be appended = 1 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Append entry to log three 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:17,812 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Log size is now 1 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Log size is now 2 01:48:17,812 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower377, logLastIndex=3, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower376, logLastIndex=3, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:17,812 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower377: Lagging 0 entries behind leader leader375 and reached 2 (of expected -1) 01:48:17,812 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 2 (of expected -1) 01:48:17,812 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower377 updated: matchIndex: 3, nextIndex: 4 01:48:17,813 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower377: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 01:48:17,813 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower376 updated: matchIndex: 3, nextIndex: 4 01:48:17,813 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 01:48:17,813 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:17,813 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 01:48:17,813 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Setting last applied to 3 01:48:17,813 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Moving last applied index from 2 to 3 01:48:17,813 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Applying state for log index 3 data three 01:48:17,813 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:17,813 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: applyState called: three 01:48:17,813 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: persist complete SimpleReplicatedLogEntry [index=3, term=6, payload=three] 01:48:17,813 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: fakeSnapshot purging log to 2 for term 6 01:48:17,813 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Persisting ApplyJournalEntries with index=3 01:48:17,917 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Commit index set to 3 01:48:17,917 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 3 (of expected -1) 01:48:17,917 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 01:48:17,917 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Setting last applied to 3 01:48:17,917 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Moving last applied index from 2 to 3 01:48:17,917 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Applying state for log index 3 data three 01:48:17,917 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Commit index set to 3 01:48:17,918 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower377: Lagging 0 entries behind leader leader375 and reached 3 (of expected -1) 01:48:17,918 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 01:48:17,918 PM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: applyState called: three 01:48:17,918 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Setting last applied to 3 01:48:17,918 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: fakeSnapshot purging log to 2 for term 6 01:48:17,918 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Moving last applied index from 2 to 3 01:48:17,918 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Applying state for log index 3 data three 01:48:17,918 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Persisting ApplyJournalEntries with index=3 01:48:17,918 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: applyState called: three 01:48:17,918 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Persisting ApplyJournalEntries with index=3 01:48:17,963 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyReplicationsAndSnapshotWithNoLaggingAfterInstallSnapshot starting: replicatedToAllIndex: 2 01:48:17,963 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Persist data SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:17,963 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:17,963 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:17,963 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower377: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: 2 01:48:17,963 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): sendAppendEntries: 4 is present for follower follower377 01:48:17,963 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Sending AppendEntries to follower follower377: AppendEntries [leaderId=leader375, prevLogIndex=3, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 01:48:17,963 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: 2 01:48:17,963 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): sendAppendEntries: 4 is present for follower follower376 01:48:17,963 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Sending AppendEntries to follower follower376: AppendEntries [leaderId=leader375, prevLogIndex=3, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): handleAppendEntries: AppendEntries [leaderId=leader375, prevLogIndex=3, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Number of entries to be appended = 1 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Append entry to log four 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Log size is now 2 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower377, logLastIndex=4, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower377: Lagging 0 entries behind leader leader375 and reached 3 (of expected -1) 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): handleAppendEntries: AppendEntries [leaderId=leader375, prevLogIndex=3, prevLogTerm=6, leaderCommit=3, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=6, payload=four]]] 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Number of entries to be appended = 1 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Append entry to log four 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Log size is now 2 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower376, logLastIndex=4, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 3 (of expected -1) 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower377 updated: matchIndex: 4, nextIndex: 5 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower377: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: 2 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower376 updated: matchIndex: 4, nextIndex: 5 01:48:17,964 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: 2 01:48:17,965 PM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:17,965 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:17,965 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: persist complete SimpleReplicatedLogEntry [index=4, term=6, payload=four] 01:48:17,965 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=3, lastAppliedTerm=6, lastIndex=4, lastTerm=6, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=1, mandatoryTrim=false] 01:48:17,965 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: lastSequenceNumber prior to capture: 11 01:48:17,965 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 01:48:17,965 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Setting last applied to 4 01:48:17,965 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Moving last applied index from 3 to 4 01:48:17,965 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Applying state for log index 4 data four 01:48:17,965 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: applyState called: four 01:48:17,965 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: CaptureSnapshotReply received by actor 01:48:17,965 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: 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=leader375, ServerConfigPayload=null] 01:48:17,965 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 6 01:48:17,965 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Persisting ApplyJournalEntries with index=4 01:48:17,966 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: SaveSnapshotSuccess received for snapshot, sequenceNr: 11 01:48:17,966 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Snapshot success - sequence number: 11 01:48:17,966 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: SnapshotComplete received 01:48:17,966 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: handled a journal response 01:48:17,966 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: handled a snapshot response 01:48:18,13 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Persist data SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Replicate message: identifier: MockIdentifier{value=five}, logIndex: 5, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower377: active: true, followerNextIndex: 5, leaderLastIndex: 5, leaderSnapShotIndex: 2 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): sendAppendEntries: 5 is present for follower follower377 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Sending AppendEntries to follower follower377: AppendEntries [leaderId=leader375, prevLogIndex=4, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five]]] 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: true, followerNextIndex: 5, leaderLastIndex: 5, leaderSnapShotIndex: 2 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): sendAppendEntries: 5 is present for follower follower376 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Sending AppendEntries to follower follower376: AppendEntries [leaderId=leader375, prevLogIndex=4, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five]]] 01:48:18,14 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): handleAppendEntries: AppendEntries [leaderId=leader375, prevLogIndex=4, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five]]] 01:48:18,14 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Number of entries to be appended = 1 01:48:18,14 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): After cleanup, lastIndex: 4, entries to be added from: 0 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Persist data SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:18,14 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Append entry to log five 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Append log entry and persist SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:18,14 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Replicate message: identifier: MockIdentifier{value=six}, logIndex: 6, payload: class org.opendaylight.controller.cluster.raft.MockRaftActorContext$MockPayload, isSendImmediate: true 01:48:18,14 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Log size is now 3 01:48:18,14 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Commit index set to 4 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower377: active: true, followerNextIndex: 5, leaderLastIndex: 6, leaderSnapShotIndex: 2 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): sendAppendEntries: 5 is present for follower follower377 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: true, followerNextIndex: 5, leaderLastIndex: 6, leaderSnapShotIndex: 2 01:48:18,14 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower377, logLastIndex=5, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): sendAppendEntries: 5 is present for follower follower376 01:48:18,14 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower377: Lagging 0 entries behind leader leader375 and reached 4 (of expected -1) 01:48:18,14 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 5 01:48:18,14 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Setting last applied to 4 01:48:18,14 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Moving last applied index from 3 to 4 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower377 updated: matchIndex: 5, nextIndex: 6 01:48:18,14 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Applying state for log index 4 data four 01:48:18,14 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: fakeSnapshot purging log to 3 for term 6 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower377: active: true, followerNextIndex: 6, leaderLastIndex: 6, leaderSnapShotIndex: 3 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): sendAppendEntries: 6 is present for follower follower377 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Sending AppendEntries to follower follower377: AppendEntries [leaderId=leader375, prevLogIndex=5, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 01:48:18,15 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: applyState called: four 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): handleAppendEntries: AppendEntries [leaderId=leader375, prevLogIndex=4, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=2, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=5, term=6, payload=five]]] 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Number of entries to be appended = 1 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): After cleanup, lastIndex: 4, entries to be added from: 0 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Append entry to log five 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Log size is now 3 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Commit index set to 4 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower376, logLastIndex=5, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 4 (of expected -1) 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 5 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Setting last applied to 4 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Moving last applied index from 3 to 4 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Applying state for log index 4 data four 01:48:18,15 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: applyState called: four 01:48:18,15 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower376 updated: matchIndex: 5, nextIndex: 6 01:48:18,15 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: true, followerNextIndex: 6, leaderLastIndex: 6, leaderSnapShotIndex: 3 01:48:18,15 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): sendAppendEntries: 6 is present for follower follower376 01:48:18,15 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:18,15 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Sending AppendEntries to follower follower376: AppendEntries [leaderId=leader375, prevLogIndex=5, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 01:48:18,15 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): handleAppendEntries: AppendEntries [leaderId=leader375, prevLogIndex=5, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 01:48:18,16 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Number of entries to be appended = 1 01:48:18,16 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): After cleanup, lastIndex: 5, entries to be added from: 0 01:48:18,16 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Append entry to log six 01:48:18,16 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Append log entry and persist SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Applying to log - commitIndex: 5, lastAppliedIndex: 4 01:48:18,16 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Log size is now 4 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Setting last applied to 5 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Moving last applied index from 4 to 5 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Applying state for log index 5 data five 01:48:18,16 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower377, logLastIndex=6, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:18,16 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower377: Lagging 0 entries behind leader leader375 and reached 4 (of expected -1) 01:48:18,16 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: fakeSnapshot purging log to 3 for term 6 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: applyState called: five 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: fakeSnapshot purging log to 4 for term 6 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower377 updated: matchIndex: 6, nextIndex: 7 01:48:18,16 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: persist complete SimpleReplicatedLogEntry [index=5, term=6, payload=five] 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower377: active: true, followerNextIndex: 7, leaderLastIndex: 6, leaderSnapShotIndex: 4 01:48:18,16 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Persisting ApplyJournalEntries with index=4 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Persisting ApplyJournalEntries with index=5 01:48:18,16 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): handleAppendEntries: AppendEntries [leaderId=leader375, prevLogIndex=5, prevLogTerm=6, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=6, term=6, payload=six]]] 01:48:18,16 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Number of entries to be appended = 1 01:48:18,16 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): After cleanup, lastIndex: 5, entries to be added from: 0 01:48:18,16 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Append entry to log six 01:48:18,16 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Append log entry and persist SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: persist complete SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Applying to log - commitIndex: 6, lastAppliedIndex: 5 01:48:18,16 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Log size is now 4 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Setting last applied to 6 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Moving last applied index from 5 to 6 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Applying state for log index 6 data six 01:48:18,16 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): handleAppendEntries returning : AppendEntriesReply [term=6, success=true, followerId=follower376, logLastIndex=6, logLastTerm=6, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:48:18,16 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 4 (of expected -1) 01:48:18,16 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: fakeSnapshot purging log to 3 for term 6 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: applyState called: six 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: fakeSnapshot purging log to 5 for term 6 01:48:18,16 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: persist complete SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower376 updated: matchIndex: 6, nextIndex: 7 01:48:18,16 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Persisting ApplyJournalEntries with index=4 01:48:18,16 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Checking sendAppendEntries for follower follower376: active: true, followerNextIndex: 7, leaderLastIndex: 6, leaderSnapShotIndex: 5 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Commit index set to 5 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower377: Lagging 0 entries behind leader leader375 and reached 5 (of expected -1) 01:48:18,17 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Persisting ApplyJournalEntries with index=6 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 5, context.getLastApplied(): 4, lastIndex(): 6 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Setting last applied to 5 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Moving last applied index from 4 to 5 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Applying state for log index 5 data five 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: applyState called: five 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: fakeSnapshot purging log to 4 for term 6 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Commit index set to 6 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower377: Lagging 0 entries behind leader leader375 and reached 6 (of expected -1) 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 6, context.getLastApplied(): 5, lastIndex(): 6 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377 (Follower): Setting last applied to 6 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Moving last applied index from 5 to 6 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Applying state for log index 6 data six 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: applyState called: six 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: fakeSnapshot purging log to 5 for term 6 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Persisting ApplyJournalEntries with index=5 01:48:18,17 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower377: Persisting ApplyJournalEntries with index=6 01:48:18,17 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: persist complete SimpleReplicatedLogEntry [index=6, term=6, payload=six] 01:48:18,17 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Commit index set to 6 01:48:18,17 PM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 6 (of expected -1) 01:48:18,17 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 6, context.getLastApplied(): 4, lastIndex(): 6 01:48:18,17 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Setting last applied to 5 01:48:18,17 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Moving last applied index from 4 to 5 01:48:18,17 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Applying state for log index 5 data five 01:48:18,18 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: applyState called: five 01:48:18,18 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376 (Follower): Setting last applied to 6 01:48:18,18 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Moving last applied index from 5 to 6 01:48:18,18 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Applying state for log index 6 data six 01:48:18,18 PM [test-akka.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: applyState called: six 01:48:18,18 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: fakeSnapshot purging log to 5 for term 6 01:48:18,18 PM [test-akka.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower376: Persisting ApplyJournalEntries with index=6 01:48:18,158 PM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower377: Lagging 0 entries behind leader leader375 and reached 6 (of expected -1) 01:48:18,158 PM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower376: Lagging 0 entries behind leader leader375 and reached 6 (of expected -1) 01:48:18,167 PM [main] [INFO] InMemoryJournal - Journal log for leader375: 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] 01:48:18,171 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyReplicationsAndSnapshotWithNoLaggingAfterInstallSnapshot ending 01:48:18,171 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyLeaderRecoveryAfterReinstatement starting: lastIndex: 6, snapshotIndex: 3, firstJournalEntryIndex: 4 [WARN] [09/16/2024 13:48:18.183] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader375]: org.opendaylight.controller.cluster.common.actor.Monitor@33a6d273 01:48:18,184 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader375 with journal batch size 1000 01:48:18,184 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: SnapshotOffer called. 01:48:18,184 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Moving last applied index from -1 to 3 01:48:18,184 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Set currentTerm=6, votedFor=leader375 01:48:18,184 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Recovery snapshot applied for leader375 in 105.0 μs: snapshotIndex=3, snapshotTerm=6, journal-size=1 01:48:18,186 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Received apply journal entries for recovery, applying to state: 4 to 4 01:48:18,186 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Moving last applied index from 3 to 4 01:48:18,186 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Received ReplicatedLogEntry for recovery: index: 5, size: 4 01:48:18,186 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Received ReplicatedLogEntry for recovery: index: 6, size: 3 01:48:18,187 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Received apply journal entries for recovery, applying to state: 5 to 5 01:48:18,187 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Moving last applied index from 4 to 5 01:48:18,187 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Received apply journal entries for recovery, applying to state: 6 to 6 01:48:18,187 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Moving last applied index from 5 to 6 01:48:18,187 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Recovery completed in 2.525 ms - Switching actor to Follower - last log index = 6, last log term = 6, snapshot index = 3, snapshot term = 6, journal size = 3 01:48:18,187 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - verifyLeaderRecoveryAfterReinstatement ending 01:48:18,187 PM [main] [INFO] ReplicationAndSnapshotsWithLaggingFollowerIntegrationTest - testLeaderSnapshotTriggeredByMemoryThresholdExceeded ending 01:48:18,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower376-collector378#222107994] 01:48:18,187 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Follower): Received TimeoutNow - switching to Candidate 01:48:18,187 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Candidate): Election: Candidate has following voting peers: [] 01:48:18,187 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375: Set currentTerm=7, votedFor=leader375 01:48:18,187 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Candidate): Starting new election term 7 01:48:18,187 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Follower) :- Switching from behavior Follower to Candidate, election term: 7 01:48:18,188 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Candidate): Received ElectionTimeout 01:48:18,189 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Leader): Election: Leader has following peers: [] 01:48:18,189 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader375 (Candidate) :- Switching from behavior Candidate to Leader, election term: 7 01:48:18,198 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower376] 01:48:18,198 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower377-collector379#2066097285] 01:48:18,198 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower377] 01:48:18,199 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader375-collector380#1447844209] 01:48:18,199 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader375] 01:48:18,199 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader375-collector381#843822266] 01:48:18,199 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader375] [INFO] [09/16/2024 13:48:18.200] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:48:18,201 PM [test-akka.actor.default-dispatcher-18] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [09/16/2024 13:48:18.201] [test-akka.actor.default-dispatcher-15] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.21:25520) [INFO] [09/16/2024 13:48:18.202] [test-akka.actor.internal-dispatcher-11] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Exiting completed [INFO] [09/16/2024 13:48:18.202] [test-akka.actor.internal-dispatcher-11] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Shutting down... [INFO] [09/16/2024 13:48:18.202] [test-akka.actor.internal-dispatcher-11] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.21:25520] - Successfully shut down 01:48:18,202 PM [test-akka.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Exiting completed 01:48:18,202 PM [test-akka.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Shutting down... 01:48:18,202 PM [test-akka.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [akka://test@10.30.170.21:25520] - Successfully shut down 01:48:18,205 PM [test-akka.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [09/16/2024 13:48:18.205] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.170.21:25520/system/remoting-terminator] Shutting down remote daemon. 01:48:18,205 PM [test-akka.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [09/16/2024 13:48:18.205] [test-akka.remote.default-remote-dispatcher-10] [akka://test@10.30.170.21:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [09/16/2024 13:48:18.207] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.21:25520/system/remoting-terminator] Remoting shut down. 01:48:18,207 PM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [09/16/2024 13:48:18.207] [test-akka.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger