[DEBUG] [11/11/2024 11:54:28.687] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 11:54:28,688 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/11/2024 11:54:28.688] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [11/11/2024 11:54:28.688] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [11/11/2024 11:54:28.696] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.0:17355] with UID [-5876937947125245851] 11:54:28,696 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.0:17355] with UID [-5876937947125245851] [INFO] [11/11/2024 11:54:28.697] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.0:17355] - Starting up, Pekko version [1.0.3] ... 11:54:28,697 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.0:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [11/11/2024 11:54:28.699] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.0:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 11:54:28,699 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.0:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [11/11/2024 11:54:28.699] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.0:17355] - Started up successfully 11:54:28,699 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.0:17355] - Started up successfully [INFO] [11/11/2024 11:54:28.699] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.0:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [11/11/2024 11:54:28.700] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.0:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 11:54:28,700 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.0:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 11:54:28,700 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.0:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [WARN] [11/11/2024 11:54:28.712] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower520]: org.opendaylight.controller.cluster.common.actor.Monitor@6bbc2ba4 [INFO] [pekkoDeadLetter][11/11/2024 11:54:28.712] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower520] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:28,712 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower520] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:28,714 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower520 with journal batch size 1000 [WARN] [11/11/2024 11:54:28.715] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader519]: org.opendaylight.controller.cluster.common.actor.Monitor@5a9d8327 [INFO] [pekkoDeadLetter][11/11/2024 11:54:28.715] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader519] to Actor[pekko://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:28,715 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader519] to Actor[pekko://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:28,715 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader519 with journal batch size 1000 11:54:28,716 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:54:28,716 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:54:29,181 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:54:29,181 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.0:17355, Removed) 11:54:29,181 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Follower): Received ElectionTimeout - switching to Candidate 11:54:29,181 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate): Election: Candidate has following voting peers: [follower520, follower521] 11:54:29,181 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Set currentTerm=1, votedFor=leader519 11:54:29,181 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate): Starting new election term 1 11:54:29,181 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate): Sending RequestVote{term=1, candidateId=leader519, lastLogIndex=-1, lastLogTerm=-1} to peer follower520 11:54:29,182 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 11:54:29,182 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate): Sending RequestVote{term=1, candidateId=leader519, lastLogIndex=-1, lastLogTerm=-1} to peer follower521 11:54:29,182 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Follower) :- Switching from behavior Follower to Candidate, election term: 1 11:54:29,182 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Cluster state: [] 11:54:29,182 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Candidate in requestVote:RequestVote{term=1, candidateId=leader519, lastLogIndex=-1, lastLogTerm=-1} with higher term appears reachable, updating term. 11:54:29,182 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Term 1 in "RequestVote{term=1, candidateId=leader519, lastLogIndex=-1, lastLogTerm=-1}" message is greater than follower's term 0 - updating term 11:54:29,182 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Set currentTerm=1, votedFor=null 11:54:29,182 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): In requestVote: RequestVote{term=1, candidateId=leader519, lastLogIndex=-1, lastLogTerm=-1} - currentTerm: 1, votedFor: null, lastIndex: -1, lastTerm: -1 11:54:29,182 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Set currentTerm=1, votedFor=leader519 [WARN] [11/11/2024 11:54:29.182] [test-pekko.actor.default-dispatcher-5] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader519]: RequestVote{term=1, candidateId=leader519, lastLogIndex=-1, lastLogTerm=-1} 11:54:29,182 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} [INFO] [pekkoDeadLetter][11/11/2024 11:54:29.182] [test-pekko.actor.default-dispatcher-14] [pekko://test/] Message [org.opendaylight.controller.cluster.raft.messages.RequestVote] from TestActor[pekko://test/user/leader519] to Actor[pekko://test/] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:29,183 AM [test-pekko.actor.default-dispatcher-14] [INFO] LocalActorRefProvider$$anon$2 - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.RequestVote] from TestActor[pekko://test/user/leader519] to Actor[pekko://test/] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:29,183 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 1 11:54:29,183 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 11:54:29,183 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Election: Leader has following peers: [follower520, follower521] 11:54:29,183 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:54:29,184 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower521: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:54:29,184 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 11:54:29,184 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower520: Last sync leader does not match current leader leader519, need to catch up to -1 11:54:29,184 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower520 updated: matchIndex: -1, nextIndex: 0 [WARN] [11/11/2024 11:54:29.184] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/follower520] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6c515495 11:54:29,184 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [INFO] [pekkoDeadLetter][11/11/2024 11:54:29.184] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/follower520] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower520] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:29,184 AM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower520] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [11/11/2024 11:54:29.184] [test-pekko.actor.default-dispatcher-17] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader519]: AppendEntries{term=1, leaderId=leader519, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} [INFO] [pekkoDeadLetter][11/11/2024 11:54:29.184] [test-pekko.actor.default-dispatcher-11] [pekko://test/] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader519] to Actor[pekko://test/] was unhandled. [5] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:29,184 AM [test-pekko.actor.default-dispatcher-17] [INFO] LocalActorRefProvider$$anon$2 - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader519] to Actor[pekko://test/] was unhandled. [5] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:29,221 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:29,221 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:29,221 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 11:54:29,221 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:54:29,221 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): sendAppendEntries: 0 is present for follower follower520 11:54:29,221 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Sending AppendEntries to follower follower520: AppendEntries{term=1, leaderId=leader519, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]} 11:54:29,221 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower521: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:54:29,221 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader519, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]} 11:54:29,221 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Number of entries to be appended = 1 11:54:29,221 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:54:29,221 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Append entry to log zero 11:54:29,221 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] [WARN] [11/11/2024 11:54:29.221] [test-pekko.actor.default-dispatcher-5] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader519]: AppendEntries{term=1, leaderId=leader519, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:29,221 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Log size is now 1 11:54:29,221 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower520, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:29,222 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower520: Lagging 0 entries behind leader leader519 and reached -1 (of expected -1) [INFO] [pekkoDeadLetter][11/11/2024 11:54:29.221] [test-pekko.actor.default-dispatcher-5] [pekko://test/] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader519] to Actor[pekko://test/] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:29,222 AM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRefProvider$$anon$2 - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader519] to Actor[pekko://test/] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:29,222 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower520 updated: matchIndex: 0, nextIndex: 1 11:54:29,222 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:29,222 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:54:29,222 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:29,222 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 [WARN] [11/11/2024 11:54:29.222] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/follower520] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2953d77b 11:54:29,222 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Setting last applied to 0 11:54:29,222 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Moving last applied index from -1 to 0 [INFO] [pekkoDeadLetter][11/11/2024 11:54:29.222] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower520] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower520] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:29,222 AM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower520] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:29,222 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Applying state for log index 0 data zero 11:54:29,223 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: applyState called: zero 11:54:29,223 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Persisting ApplyJournalEntries with index=0 11:54:29,272 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Persist data SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:29,272 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:29,272 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 11:54:29,272 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:54:29,272 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): sendAppendEntries: 1 is present for follower follower520 11:54:29,272 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Sending AppendEntries to follower follower520: AppendEntries{term=1, leaderId=leader519, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]} 11:54:29,273 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower521: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:54:29,273 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader519, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]} 11:54:29,273 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Number of entries to be appended = 1 11:54:29,273 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:54:29,273 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Append entry to log one 11:54:29,273 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:29,273 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Log size is now 2 11:54:29,273 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Commit index set to 0 11:54:29,273 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower520, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:29,273 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower520: Lagging 0 entries behind leader leader519 and reached 0 (of expected -1) 11:54:29,273 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 11:54:29,273 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Setting last applied to 0 11:54:29,273 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Moving last applied index from -1 to 0 11:54:29,273 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Applying state for log index 0 data zero 11:54:29,273 AM [test-pekko.actor.default-dispatcher-14] [INFO] LocalActorRefProvider$$anon$2 - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader519] to Actor[pekko://test/] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:29,273 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: applyState called: zero [WARN] [11/11/2024 11:54:29.273] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader519]: AppendEntries{term=1, leaderId=leader519, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} [INFO] [pekkoDeadLetter][11/11/2024 11:54:29.273] [test-pekko.actor.default-dispatcher-14] [pekko://test/] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader519] to Actor[pekko://test/] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:29,274 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:29,274 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower520 updated: matchIndex: 1, nextIndex: 2 11:54:29,274 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:54:29,274 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Persisting ApplyJournalEntries with index=0 11:54:29,274 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:29,274 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 11:54:29,274 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Setting last applied to 1 11:54:29,274 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Moving last applied index from 0 to 1 11:54:29,274 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Applying state for log index 1 data one 11:54:29,274 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: applyState called: one 11:54:29,274 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Persisting ApplyJournalEntries with index=1 [WARN] [11/11/2024 11:54:29.301] [test-pekko.actor.default-dispatcher-17] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader519]: AppendEntries{term=1, leaderId=leader519, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} [INFO] [pekkoDeadLetter][11/11/2024 11:54:29.301] [test-pekko.actor.default-dispatcher-16] [pekko://test/] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader519] to Actor[pekko://test/] was unhandled. [9] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:29,301 AM [test-pekko.actor.default-dispatcher-16] [INFO] LocalActorRefProvider$$anon$2 - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader519] to Actor[pekko://test/] was unhandled. [9] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:29,323 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Persist data SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:29,323 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:29,323 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 11:54:29,323 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:54:29,323 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): sendAppendEntries: 2 is present for follower follower520 11:54:29,323 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Sending AppendEntries to follower follower520: AppendEntries{term=1, leaderId=leader519, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]} 11:54:29,323 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower521: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:54:29,323 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Persist data SimpleReplicatedLogEntry [index=3, term=1, payload=three] 11:54:29,323 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 11:54:29,323 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, isSendImmediate: true 11:54:29,323 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: -1 11:54:29,323 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): sendAppendEntries: 2 is present for follower follower520 11:54:29,323 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower521: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 11:54:29,323 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader519, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]} 11:54:29,324 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:29,324 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Number of entries to be appended = 1 11:54:29,324 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:54:29,324 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Append entry to log two 11:54:29,324 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:29,324 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 11:54:29,324 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Log size is now 3 11:54:29,324 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Commit index set to 1 11:54:29,324 AM [test-pekko.actor.default-dispatcher-14] [INFO] LocalActorRefProvider$$anon$2 - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader519] to Actor[pekko://test/] was unhandled. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:29,324 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower520, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:29,324 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower520: Lagging 0 entries behind leader leader519 and reached 1 (of expected -1) 11:54:29,324 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 2 11:54:29,324 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Setting last applied to 1 11:54:29,324 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=3, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 11:54:29,324 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Moving last applied index from 0 to 1 11:54:29,324 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Applying state for log index 1 data one 11:54:29,324 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: lastSequenceNumber prior to capture: 7 [WARN] [11/11/2024 11:54:29.324] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader519]: AppendEntries{term=1, leaderId=leader519, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} [WARN] [11/11/2024 11:54:29.324] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader519]: AppendEntries{term=1, leaderId=leader519, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} [INFO] [pekkoDeadLetter][11/11/2024 11:54:29.324] [test-pekko.actor.default-dispatcher-14] [pekko://test/] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader519] to Actor[pekko://test/] was unhandled. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:54:29,324 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower520 updated: matchIndex: 2, nextIndex: 3 11:54:29,324 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 11:54:29,324 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Setting last applied to 2 11:54:29,324 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Moving last applied index from 1 to 2 11:54:29,324 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Applying state for log index 2 data two 11:54:29,324 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: applyState called: one 11:54:29,324 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: applyState called: two 11:54:29,324 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: -1 11:54:29,324 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): sendAppendEntries: 3 is present for follower follower520 11:54:29,324 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Sending AppendEntries to follower follower520: AppendEntries{term=1, leaderId=leader519, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=3, term=1, payload=three]]} 11:54:29,324 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: CaptureSnapshotReply received by actor 11:54:29,325 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Persisting of snapshot done: Snapshot [lastIndex=3, lastTerm=1, lastAppliedIndex=1, lastAppliedTerm=1, unAppliedEntries size=2, state=MockSnapshotState [state=[zero, one]], electionTerm=1, electionVotedFor=leader519, ServerConfigPayload=null] 11:54:29,325 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: log size 4 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 1 11:54:29,325 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 11:54:29,325 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Persisting ApplyJournalEntries with index=2 11:54:29,325 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: SaveSnapshotSuccess received for snapshot, sequenceNr: 7 11:54:29,325 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Snapshot success - sequence number: 7 11:54:29,326 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:29,326 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: SnapshotComplete received 11:54:29,326 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: handled a snapshot response 11:54:29,326 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: handled a journal response 11:54:29,326 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Persisting ApplyJournalEntries with index=1 11:54:29,326 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader519, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=3, term=1, payload=three]]} 11:54:29,326 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Number of entries to be appended = 1 11:54:29,326 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 11:54:29,326 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Append entry to log three 11:54:29,326 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 11:54:29,326 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Log size is now 4 11:54:29,326 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Commit index set to 2 11:54:29,326 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower520, logLastIndex=3, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:29,326 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower520: Lagging 0 entries behind leader leader519 and reached 2 (of expected -1) 11:54:29,327 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower520 updated: matchIndex: 3, nextIndex: 4 11:54:29,327 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 11:54:29,327 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Setting last applied to 3 11:54:29,327 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Moving last applied index from 2 to 3 11:54:29,327 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Applying state for log index 3 data three 11:54:29,327 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: applyState called: three 11:54:29,327 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 11:54:29,327 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Persisting ApplyJournalEntries with index=3 11:54:29,327 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 3 11:54:29,327 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Setting last applied to 2 11:54:29,327 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Moving last applied index from 1 to 2 11:54:29,327 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Applying state for log index 2 data two 11:54:29,328 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: applyState called: two 11:54:29,328 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 11:54:29,328 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Commit index set to 3 11:54:29,328 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower520: Lagging 0 entries behind leader leader519 and reached 3 (of expected -1) 11:54:29,328 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 11:54:29,328 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520 (Follower): Setting last applied to 3 11:54:29,328 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Moving last applied index from 2 to 3 11:54:29,328 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Applying state for log index 3 data three 11:54:29,328 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: applyState called: three 11:54:29,329 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Persisting ApplyJournalEntries with index=2 11:54:29,329 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower520: Persisting ApplyJournalEntries with index=3 11:54:29,385 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Persist data SimpleReplicatedLogEntry [index=4, term=1, payload=four] 11:54:29,385 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=four] 11:54:29,385 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, isSendImmediate: true 11:54:29,385 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: 1 11:54:29,385 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): sendAppendEntries: 4 is present for follower follower520 11:54:29,385 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Sending AppendEntries to follower follower520: AppendEntries{term=1, leaderId=leader519, prevLogIndex=3, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=4, term=1, payload=four]]} 11:54:29,385 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower521: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: 1 [WARN] [11/11/2024 11:54:29.386] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower520] received dead letter from TestActor[pekko://test/user/leader519]: AppendEntries{term=1, leaderId=leader519, prevLogIndex=3, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=4, term=1, payload=four]]} [WARN] [11/11/2024 11:54:29.386] [test-pekko.actor.default-dispatcher-11] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader519]: AppendEntries{term=1, leaderId=leader519, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:29,403 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Persist data SimpleReplicatedLogEntry [index=5, term=1, payload=five] 11:54:29,403 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=1, payload=five] 11:54:29,403 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Replicate message: identifier: MockIdentifier{value=five}, logIndex: 5, isSendImmediate: true 11:54:29,404 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: true, followerNextIndex: 4, leaderLastIndex: 5, leaderSnapShotIndex: 1 11:54:29,404 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): sendAppendEntries: 4 is present for follower follower520 11:54:29,404 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower521: active: false, followerNextIndex: -1, leaderLastIndex: 5, leaderSnapShotIndex: 1 [WARN] [11/11/2024 11:54:29.404] [test-pekko.actor.default-dispatcher-11] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader519]: AppendEntries{term=1, leaderId=leader519, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:29,404 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=four] 11:54:29,404 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: persist complete SimpleReplicatedLogEntry [index=5, term=1, payload=five] [WARN] [11/11/2024 11:54:29.420] [test-pekko.actor.default-dispatcher-11] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader519]: AppendEntries{term=1, leaderId=leader519, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:29,456 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Persist data SimpleReplicatedLogEntry [index=4, term=1, payload=newFour] 11:54:29,456 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=newFour] 11:54:29,456 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Replicate message: identifier: MockIdentifier{value=newFour}, logIndex: 4, isSendImmediate: true 11:54:29,456 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: 1 11:54:29,456 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): sendAppendEntries: 4 is present for follower follower520 11:54:29,456 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower521: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: 1 11:54:29,456 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Persist data SimpleReplicatedLogEntry [index=5, term=1, payload=newFive] 11:54:29,456 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=1, payload=newFive] 11:54:29,456 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Replicate message: identifier: MockIdentifier{value=newFive}, logIndex: 5, isSendImmediate: true 11:54:29,456 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower520: active: true, followerNextIndex: 4, leaderLastIndex: 5, leaderSnapShotIndex: 1 11:54:29,456 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): sendAppendEntries: 4 is present for follower follower520 11:54:29,456 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Checking sendAppendEntries for follower follower521: active: false, followerNextIndex: -1, leaderLastIndex: 5, leaderSnapShotIndex: 1 [WARN] [11/11/2024 11:54:29.457] [test-pekko.actor.default-dispatcher-15] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader519]: AppendEntries{term=1, leaderId=leader519, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:29,457 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=newFour] [WARN] [11/11/2024 11:54:29.457] [test-pekko.actor.default-dispatcher-15] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader519]: AppendEntries{term=1, leaderId=leader519, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:29,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: persist complete SimpleReplicatedLogEntry [index=5, term=1, payload=newFive] [WARN] [11/11/2024 11:54:29.469] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader519]: org.opendaylight.controller.cluster.common.actor.Monitor@3d9cbe82 11:54:29,470 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader519 with journal batch size 1000 11:54:29,471 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: SnapshotOffer called. 11:54:29,471 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Moving last applied index from -1 to 1 11:54:29,471 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Set currentTerm=1, votedFor=leader519 11:54:29,471 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Recovery snapshot applied for leader519 in 133.0 μs: snapshotIndex=1, snapshotTerm=1, journal-size=2 11:54:29,474 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Received apply journal entries for recovery, applying to state: 2 to 2 11:54:29,474 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Moving last applied index from 1 to 2 11:54:29,474 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Received apply journal entries for recovery, applying to state: 3 to 3 11:54:29,474 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Moving last applied index from 2 to 3 11:54:29,474 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Received ReplicatedLogEntry for recovery: index: 4, size: 4 11:54:29,474 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Received ReplicatedLogEntry for recovery: index: 5, size: 4 11:54:29,474 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Received ReplicatedLogEntry for recovery: index: 4, size: 7 11:54:29,474 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Received ReplicatedLogEntry for recovery: index: 5, size: 7 11:54:29,474 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Recovery completed in 3.240 ms - Switching actor to Follower - last log index = 5, last log term = 1, snapshot index = 1, snapshot term = 1, journal size = 4 11:54:29,475 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520-collector522#-1722264848] 11:54:29,475 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Follower): Received TimeoutNow - switching to Candidate 11:54:29,475 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate): Election: Candidate has following voting peers: [] 11:54:29,475 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519: Set currentTerm=2, votedFor=leader519 11:54:29,475 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate): Starting new election term 2 11:54:29,475 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:54:29,476 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate): Received ElectionTimeout 11:54:29,476 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Leader): Election: Leader has following peers: [] 11:54:29,476 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader519 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:54:29,485 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower520] 11:54:29,486 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519-collector523#124981975] 11:54:29,486 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader519] 11:54:29,486 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519-collector524#1861283156] 11:54:29,486 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader519] [WARN] [11/11/2024 11:54:29.489] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower526]: org.opendaylight.controller.cluster.common.actor.Monitor@2bd3271b 11:54:29,489 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower526 with journal batch size 1000 11:54:29,490 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [11/11/2024 11:54:29.491] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader525]: org.opendaylight.controller.cluster.common.actor.Monitor@5bbf2514 11:54:29,491 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader525 with journal batch size 1000 11:54:29,492 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:54:29,930 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:54:29,930 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.0:17355, Removed) 11:54:29,931 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Follower): Received ElectionTimeout - switching to Candidate 11:54:29,931 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Election: Candidate has following voting peers: [follower527, follower526] 11:54:29,931 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Set currentTerm=1, votedFor=leader525 11:54:29,931 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Starting new election term 1 11:54:29,931 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Sending RequestVote{term=1, candidateId=leader525, lastLogIndex=-1, lastLogTerm=-1} to peer follower527 11:54:29,931 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Sending RequestVote{term=1, candidateId=leader525, lastLogIndex=-1, lastLogTerm=-1} to peer follower526 11:54:29,931 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Follower) :- Switching from behavior Follower to Candidate, election term: 1 [WARN] [11/11/2024 11:54:29.931] [test-pekko.actor.default-dispatcher-5] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader525]: RequestVote{term=1, candidateId=leader525, lastLogIndex=-1, lastLogTerm=-1} 11:54:29,932 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 11:54:29,932 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Cluster state: [] 11:54:29,932 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Candidate in requestVote:RequestVote{term=1, candidateId=leader525, lastLogIndex=-1, lastLogTerm=-1} with higher term appears reachable, updating term. 11:54:29,932 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Term 1 in "RequestVote{term=1, candidateId=leader525, lastLogIndex=-1, lastLogTerm=-1}" message is greater than follower's term 0 - updating term 11:54:29,932 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Set currentTerm=1, votedFor=null 11:54:29,932 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): In requestVote: RequestVote{term=1, candidateId=leader525, lastLogIndex=-1, lastLogTerm=-1} - currentTerm: 1, votedFor: null, lastIndex: -1, lastTerm: -1 11:54:29,932 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Set currentTerm=1, votedFor=leader525 11:54:29,932 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 11:54:29,932 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 1 11:54:29,932 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 11:54:29,933 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Election: Leader has following peers: [follower527, follower526] 11:54:29,933 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower527: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:54:29,933 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:54:29,933 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 [WARN] [11/11/2024 11:54:29.933] [test-pekko.actor.default-dispatcher-17] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader525]: AppendEntries{term=1, leaderId=leader525, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:29,933 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower526: Last sync leader does not match current leader leader525, need to catch up to -1 11:54:29,933 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower526 updated: matchIndex: -1, nextIndex: 0 [WARN] [11/11/2024 11:54:29.933] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower526] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5fa86ef2 11:54:29,933 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:54:29,946 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:29,946 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:29,946 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 11:54:29,946 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower527: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:54:29,946 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:54:29,946 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 0 is present for follower follower526 11:54:29,946 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Sending AppendEntries to follower follower526: AppendEntries{term=1, leaderId=leader525, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]} [WARN] [11/11/2024 11:54:29.946] [test-pekko.actor.default-dispatcher-17] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader525]: AppendEntries{term=1, leaderId=leader525, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:29,946 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader525, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]} 11:54:29,946 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Number of entries to be appended = 1 11:54:29,946 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:54:29,946 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Append entry to log zero 11:54:29,946 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:29,947 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Log size is now 1 11:54:29,947 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower526, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:29,947 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower526: Lagging 0 entries behind leader leader525 and reached -1 (of expected -1) 11:54:29,947 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower526 updated: matchIndex: 0, nextIndex: 1 11:54:29,947 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:54:29,947 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:29,947 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:54:29,947 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Setting last applied to 0 11:54:29,947 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from -1 to 0 11:54:29,947 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Applying state for log index 0 data zero 11:54:29,947 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: applyState called: zero 11:54:29,947 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] [WARN] [11/11/2024 11:54:29.948] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower526] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@9c01e78 11:54:29,948 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persisting ApplyJournalEntries with index=0 11:54:29,996 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persist data SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:29,996 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:29,996 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 11:54:29,996 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower527: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:54:29,997 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:54:29,997 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 1 is present for follower follower526 11:54:29,997 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Sending AppendEntries to follower follower526: AppendEntries{term=1, leaderId=leader525, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]} 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader525, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]} 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Number of entries to be appended = 1 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Append entry to log one 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Log size is now 2 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Commit index set to 0 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower526, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower526: Lagging 0 entries behind leader leader525 and reached 0 (of expected -1) 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Setting last applied to 0 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Moving last applied index from -1 to 0 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Applying state for log index 0 data zero 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: applyState called: zero 11:54:29,997 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower526 updated: matchIndex: 1, nextIndex: 2 11:54:29,997 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 [WARN] [11/11/2024 11:54:29.997] [test-pekko.actor.default-dispatcher-15] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader525]: AppendEntries{term=1, leaderId=leader525, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Setting last applied to 1 11:54:29,997 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from 0 to 1 11:54:29,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Applying state for log index 1 data one 11:54:29,998 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: applyState called: one 11:54:29,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persisting ApplyJournalEntries with index=1 11:54:29,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:29,998 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Persisting ApplyJournalEntries with index=0 11:54:30,47 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persist data SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:30,47 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:30,47 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 11:54:30,47 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower527: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:54:30,47 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:54:30,47 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 2 is present for follower follower526 11:54:30,47 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Sending AppendEntries to follower follower526: AppendEntries{term=1, leaderId=leader525, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]} [WARN] [11/11/2024 11:54:30.047] [test-pekko.actor.default-dispatcher-15] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader525]: AppendEntries{term=1, leaderId=leader525, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:30,47 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persist data SimpleReplicatedLogEntry [index=3, term=1, payload=three] 11:54:30,47 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 11:54:30,48 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, isSendImmediate: true 11:54:30,48 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower527: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 11:54:30,48 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: -1 11:54:30,48 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 2 is present for follower follower526 [WARN] [11/11/2024 11:54:30.048] [test-pekko.actor.default-dispatcher-15] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader525]: AppendEntries{term=1, leaderId=leader525, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:30,48 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persist data SimpleReplicatedLogEntry [index=4, term=1, payload=four] 11:54:30,48 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=four] 11:54:30,48 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, isSendImmediate: true 11:54:30,48 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower527: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:54:30,48 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:54:30,48 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 2 is present for follower follower526 [WARN] [11/11/2024 11:54:30.048] [test-pekko.actor.default-dispatcher-14] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader525]: AppendEntries{term=1, leaderId=leader525, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:30,49 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:30,49 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 11:54:30,49 AM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=3, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=3, mandatoryTrim=false] 11:54:30,49 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: lastSequenceNumber prior to capture: 7 11:54:30,49 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: CaptureSnapshotReply received by actor 11:54:30,49 AM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persisting of snapshot done: Snapshot [lastIndex=3, lastTerm=1, lastAppliedIndex=1, lastAppliedTerm=1, unAppliedEntries size=3, state=MockSnapshotState [state=[zero, one]], electionTerm=1, electionVotedFor=leader525, ServerConfigPayload=null] 11:54:30,49 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: log size 5 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 1 11:54:30,49 AM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 11:54:30,49 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=four] 11:54:30,50 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: SaveSnapshotSuccess received for snapshot, sequenceNr: 7 11:54:30,50 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Snapshot success - sequence number: 7 11:54:30,50 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: SnapshotComplete received 11:54:30,50 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: handled a snapshot response 11:54:30,50 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: handled a journal response [WARN] [11/11/2024 11:54:30.051] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader525]: AppendEntries{term=1, leaderId=leader525, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:30,171 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 2 is present for follower follower526 11:54:30,171 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Sending AppendEntries to follower follower526: AppendEntries{term=1, leaderId=leader525, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three], SimpleReplicatedLogEntry [index=4, term=1, payload=four]]} [WARN] [11/11/2024 11:54:30.172] [test-pekko.actor.default-dispatcher-14] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader525]: AppendEntries{term=1, leaderId=leader525, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:30,291 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 2 is present for follower follower526 11:54:30,291 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Sending AppendEntries to follower follower526: AppendEntries{term=1, leaderId=leader525, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three], SimpleReplicatedLogEntry [index=4, term=1, payload=four]]} [WARN] [11/11/2024 11:54:30.291] [test-pekko.actor.default-dispatcher-17] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader525]: AppendEntries{term=1, leaderId=leader525, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} [WARN] [11/11/2024 11:54:30.411] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader525]: AppendEntries{term=1, leaderId=leader525, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:30,411 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower526: Lagging -1 entries behind leader leader525 and reached 0 (of expected -1) 11:54:30,411 AM [test-pekko.actor.default-dispatcher-17] [WARN] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply{term=1, success=true, followerId=follower526, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5}, timeSinceLastActivity : 413, lastApplied : 1, commitIndex : 1 11:54:30,411 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): sendAppendEntries: 2 is present for follower follower526 11:54:30,411 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Sending AppendEntries to follower follower526: AppendEntries{term=1, leaderId=leader525, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three], SimpleReplicatedLogEntry [index=4, term=1, payload=four]]} 11:54:30,411 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader525, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three], SimpleReplicatedLogEntry [index=4, term=1, payload=four]]} 11:54:30,411 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Number of entries to be appended = 3 11:54:30,411 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:54:30,411 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Append entry to log two 11:54:30,411 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:30,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Append entry to log three 11:54:30,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 11:54:30,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Append entry to log four 11:54:30,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=four] 11:54:30,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Log size is now 5 11:54:30,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Commit index set to 1 11:54:30,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower526, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:30,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower526: Lagging 0 entries behind leader leader525 and reached 1 (of expected -1) 11:54:30,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 4 11:54:30,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Setting last applied to 1 11:54:30,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Moving last applied index from 0 to 1 11:54:30,412 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Applying state for log index 1 data one 11:54:30,412 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: applyState called: one 11:54:30,412 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower526 updated: matchIndex: 4, nextIndex: 5 11:54:30,412 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 1 11:54:30,412 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Setting last applied to 2 11:54:30,412 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from 1 to 2 11:54:30,412 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Applying state for log index 2 data two 11:54:30,412 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: applyState called: two 11:54:30,412 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Setting last applied to 3 11:54:30,412 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from 2 to 3 11:54:30,412 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Applying state for log index 3 data three 11:54:30,412 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: applyState called: three 11:54:30,412 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Setting last applied to 4 11:54:30,412 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from 3 to 4 11:54:30,412 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Applying state for log index 4 data four 11:54:30,412 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: applyState called: four 11:54:30,412 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Checking sendAppendEntries for follower follower526: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: 1 11:54:30,413 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Persisting ApplyJournalEntries with index=4 11:54:30,413 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:30,413 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 11:54:30,413 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=four] 11:54:30,413 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Persisting ApplyJournalEntries with index=1 11:54:30,413 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Commit index set to 4 11:54:30,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower526: Lagging 0 entries behind leader leader525 and reached 4 (of expected -1) 11:54:30,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 1, lastIndex(): 4 11:54:30,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Setting last applied to 2 11:54:30,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Moving last applied index from 1 to 2 11:54:30,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Applying state for log index 2 data two 11:54:30,414 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: applyState called: two 11:54:30,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Setting last applied to 3 11:54:30,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Moving last applied index from 2 to 3 11:54:30,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Applying state for log index 3 data three 11:54:30,414 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: applyState called: three 11:54:30,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526 (Follower): Setting last applied to 4 11:54:30,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Moving last applied index from 3 to 4 11:54:30,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Applying state for log index 4 data four 11:54:30,414 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: applyState called: four 11:54:30,414 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower526: Persisting ApplyJournalEntries with index=4 [WARN] [11/11/2024 11:54:30.462] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader525]: org.opendaylight.controller.cluster.common.actor.Monitor@5f27e0be 11:54:30,463 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader525 with journal batch size 1000 11:54:30,464 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: SnapshotOffer called. 11:54:30,464 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from -1 to 1 11:54:30,464 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Set currentTerm=1, votedFor=leader525 11:54:30,464 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Recovery snapshot applied for leader525 in 111.2 μs: snapshotIndex=1, snapshotTerm=1, journal-size=3 11:54:30,465 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Received ReplicatedLogEntry for recovery: index: 4, size: 4 11:54:30,465 AM [test-pekko.actor.default-dispatcher-5] [WARN] AbstractReplicatedLogImpl - leader525: Cannot append new entry - new index 4 is not greater than the last index 4 java.lang.Exception: stack trace at org.opendaylight.controller.cluster.raft.AbstractReplicatedLogImpl.append(AbstractReplicatedLogImpl.java:133) at org.opendaylight.controller.cluster.raft.RaftActorRecoverySupport.onRecoveredJournalLogEntry(RaftActorRecoverySupport.java:177) at org.opendaylight.controller.cluster.raft.RaftActorRecoverySupport.handleRecoveryMessage(RaftActorRecoverySupport.java:63) at org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:163) at org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:651) at org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:769) at org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 11:54:30,466 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Received apply journal entries for recovery, applying to state: 2 to 4 11:54:30,466 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Moving last applied index from 1 to 4 11:54:30,466 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Recovery completed in 2.195 ms - Switching actor to Follower - last log index = 4, last log term = 1, snapshot index = 1, snapshot term = 1, journal size = 3 11:54:30,466 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Follower): Received TimeoutNow - switching to Candidate 11:54:30,466 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Election: Candidate has following voting peers: [] 11:54:30,466 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525: Set currentTerm=2, votedFor=leader525 11:54:30,466 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Starting new election term 2 11:54:30,467 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:54:30,467 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate): Received ElectionTimeout 11:54:30,467 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Leader): Election: Leader has following peers: [] 11:54:30,467 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader525 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:54:30,562 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526-collector528#934869486] 11:54:30,563 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower526] 11:54:30,564 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525-collector529#350064514] 11:54:30,564 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader525] 11:54:30,564 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525-collector530#1353903338] 11:54:30,564 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader525] [WARN] [11/11/2024 11:54:30.566] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower532]: org.opendaylight.controller.cluster.common.actor.Monitor@4bf94a37 11:54:30,566 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower532 with journal batch size 1000 [WARN] [11/11/2024 11:54:30.567] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader531]: org.opendaylight.controller.cluster.common.actor.Monitor@4a916259 11:54:30,568 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader531 with journal batch size 1000 11:54:30,568 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:54:30,568 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:54:31,10 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:54:31,11 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.0:17355, Removed) 11:54:31,11 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Follower): Received ElectionTimeout - switching to Candidate 11:54:31,11 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Election: Candidate has following voting peers: [follower533, follower532] 11:54:31,11 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Set currentTerm=1, votedFor=leader531 11:54:31,11 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Starting new election term 1 11:54:31,11 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Sending RequestVote{term=1, candidateId=leader531, lastLogIndex=-1, lastLogTerm=-1} to peer follower533 11:54:31,11 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): Sending RequestVote{term=1, candidateId=leader531, lastLogIndex=-1, lastLogTerm=-1} to peer follower532 11:54:31,12 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. [WARN] [11/11/2024 11:54:31.012] [test-pekko.actor.default-dispatcher-17] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader531]: RequestVote{term=1, candidateId=leader531, lastLogIndex=-1, lastLogTerm=-1} 11:54:31,12 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Cluster state: [] 11:54:31,12 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Candidate in requestVote:RequestVote{term=1, candidateId=leader531, lastLogIndex=-1, lastLogTerm=-1} with higher term appears reachable, updating term. 11:54:31,12 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Term 1 in "RequestVote{term=1, candidateId=leader531, lastLogIndex=-1, lastLogTerm=-1}" message is greater than follower's term 0 - updating term 11:54:31,12 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Set currentTerm=1, votedFor=null 11:54:31,12 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): In requestVote: RequestVote{term=1, candidateId=leader531, lastLogIndex=-1, lastLogTerm=-1} - currentTerm: 1, votedFor: null, lastIndex: -1, lastTerm: -1 11:54:31,12 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Set currentTerm=1, votedFor=leader531 11:54:31,12 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 11:54:31,12 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Follower) :- Switching from behavior Follower to Candidate, election term: 1 11:54:31,13 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 1 11:54:31,13 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 11:54:31,13 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Election: Leader has following peers: [follower533, follower532] 11:54:31,13 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower533: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:54:31,14 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:54:31,14 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 [WARN] [11/11/2024 11:54:31.014] [test-pekko.actor.default-dispatcher-17] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader531]: AppendEntries{term=1, leaderId=leader531, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:31,14 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower532: Last sync leader does not match current leader leader531, need to catch up to -1 11:54:31,14 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: -1, nextIndex: 0 11:54:31,14 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [11/11/2024 11:54:31.014] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/follower532] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@61c82014 11:54:31,22 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:31,22 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:31,22 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 11:54:31,22 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower533: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:54:31,22 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:54:31,22 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 0 is present for follower follower532 11:54:31,22 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Sending AppendEntries to follower follower532: AppendEntries{term=1, leaderId=leader531, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]} [WARN] [11/11/2024 11:54:31.022] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader531]: AppendEntries{term=1, leaderId=leader531, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:31,22 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader531, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]} 11:54:31,22 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Number of entries to be appended = 1 11:54:31,22 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:54:31,22 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Append entry to log zero 11:54:31,22 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:31,22 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Log size is now 1 11:54:31,22 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower532, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:31,22 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader531 and reached -1 (of expected -1) 11:54:31,22 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: 0, nextIndex: 1 11:54:31,22 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:54:31,30 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:31,30 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:54:31,30 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Setting last applied to 0 11:54:31,30 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Moving last applied index from -1 to 0 11:54:31,30 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Applying state for log index 0 data zero 11:54:31,30 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: applyState called: zero 11:54:31,30 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persisting ApplyJournalEntries with index=0 11:54:31,31 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] [WARN] [11/11/2024 11:54:31.031] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower532] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2593670a 11:54:31,72 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persist data SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:31,72 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:31,72 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 11:54:31,73 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower533: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:54:31,73 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:54:31,73 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 1 is present for follower follower532 11:54:31,73 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Sending AppendEntries to follower follower532: AppendEntries{term=1, leaderId=leader531, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]} [WARN] [11/11/2024 11:54:31.073] [test-pekko.actor.default-dispatcher-17] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader531]: AppendEntries{term=1, leaderId=leader531, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:31,73 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader531, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]} 11:54:31,73 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Number of entries to be appended = 1 11:54:31,73 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:54:31,73 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Append entry to log one 11:54:31,73 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:31,73 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Log size is now 2 11:54:31,73 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Commit index set to 0 11:54:31,73 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower532, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:31,73 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader531 and reached 0 (of expected -1) 11:54:31,73 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 11:54:31,73 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Setting last applied to 0 11:54:31,73 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from -1 to 0 11:54:31,73 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Applying state for log index 0 data zero 11:54:31,73 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: 1, nextIndex: 2 11:54:31,73 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applyState called: zero 11:54:31,73 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:54:31,74 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:31,74 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 11:54:31,74 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Setting last applied to 1 11:54:31,74 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Moving last applied index from 0 to 1 11:54:31,74 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Applying state for log index 1 data one 11:54:31,74 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: applyState called: one 11:54:31,74 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persisting ApplyJournalEntries with index=1 11:54:31,74 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:31,74 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Persisting ApplyJournalEntries with index=0 [WARN] [11/11/2024 11:54:31.131] [test-pekko.actor.default-dispatcher-17] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader531]: AppendEntries{term=1, leaderId=leader531, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} [WARN] [11/11/2024 11:54:31.131] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower533]: org.opendaylight.controller.cluster.common.actor.Monitor@6db5b5c8 11:54:31,138 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower533 with journal batch size 1000 11:54:31,138 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Peer address for peer follower533 set to pekko://test/user/follower533 11:54:31,138 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persist data SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:31,138 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:31,138 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 11:54:31,138 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower533: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:54:31,138 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:54:31,138 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 2 is present for follower follower532 11:54:31,139 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Sending AppendEntries to follower follower532: AppendEntries{term=1, leaderId=leader531, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]} 11:54:31,139 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader531, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]} 11:54:31,139 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Number of entries to be appended = 1 11:54:31,139 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:54:31,139 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Append entry to log two 11:54:31,139 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:31,139 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Log size is now 3 11:54:31,139 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Commit index set to 1 11:54:31,139 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower532, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:31,139 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader531 and reached 1 (of expected -1) 11:54:31,139 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 2 11:54:31,139 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Setting last applied to 1 11:54:31,139 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from 0 to 1 11:54:31,139 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Applying state for log index 1 data one 11:54:31,139 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: 2, nextIndex: 3 11:54:31,139 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applyState called: one 11:54:31,139 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:54:31,139 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:54:31,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:31,140 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader531, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 11:54:31,140 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:31,140 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Set currentTerm=1, votedFor=null 11:54:31,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 11:54:31,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Setting last applied to 2 11:54:31,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Moving last applied index from 1 to 2 11:54:31,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Applying state for log index 2 data two 11:54:31,140 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Persisting ApplyJournalEntries with index=1 11:54:31,140 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: applyState called: two 11:54:31,140 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower533: Last sync leader does not match current leader leader531, need to catch up to -1 11:54:31,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower533 updated: matchIndex: -1, nextIndex: 0 11:54:31,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower533: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:54:31,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendAppendEntries: 0 is present for follower follower533 11:54:31,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Sending AppendEntries to follower follower533: AppendEntries{term=1, leaderId=leader531, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=1, payload=zero], SimpleReplicatedLogEntry [index=1, term=1, payload=one], SimpleReplicatedLogEntry [index=2, term=1, payload=two]]} 11:54:31,140 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persisting ApplyJournalEntries with index=2 11:54:31,141 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader531, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=1, payload=zero], SimpleReplicatedLogEntry [index=1, term=1, payload=one], SimpleReplicatedLogEntry [index=2, term=1, payload=two]]} [WARN] [11/11/2024 11:54:31.141] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower533] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@62e14f67 11:54:31,141 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Number of entries to be appended = 3 11:54:31,141 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:54:31,141 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Append entry to log zero 11:54:31,141 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:31,141 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Append entry to log one 11:54:31,141 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Append entry to log two 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Log size is now 3 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Commit index set to 2 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower533, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower533: Lagging 0 entries behind leader leader531 and reached 2 (of expected -1) 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Setting last applied to 0 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Moving last applied index from -1 to 0 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Applying state for log index 0 data zero 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: applyState called: zero 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Setting last applied to 1 11:54:31,142 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower533 updated: matchIndex: 2, nextIndex: 3 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Moving last applied index from 0 to 1 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Applying state for log index 1 data one 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: applyState called: one 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Setting last applied to 2 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Moving last applied index from 1 to 2 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Applying state for log index 2 data two 11:54:31,142 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: applyState called: two 11:54:31,142 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: fakeSnapshot purging log to 1 for term 1 11:54:31,142 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower533: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:54:31,142 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:31,143 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:31,143 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:31,143 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Persisting ApplyJournalEntries with index=2 [WARN] [11/11/2024 11:54:31.143] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/follower533] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@52ce3fb8 [WARN] [11/11/2024 11:54:31.201] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower533]: org.opendaylight.controller.cluster.common.actor.Monitor@2af15807 11:54:31,203 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower533 with journal batch size 1000 11:54:31,203 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Peer address for peer follower533 set to pekko://test/user/follower533 11:54:31,206 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:54:31,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Commit index set to 2 11:54:31,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader531 and reached 2 (of expected -1) 11:54:31,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:54:31,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Setting last applied to 2 11:54:31,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from 1 to 2 11:54:31,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Applying state for log index 2 data two 11:54:31,251 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applyState called: two 11:54:31,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: fakeSnapshot purging log to 1 for term 1 11:54:31,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Persisting ApplyJournalEntries with index=2 11:54:31,252 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader531, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 0 - updating term 11:54:31,252 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Set currentTerm=1, votedFor=null 11:54:31,252 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): The followers log is empty and the senders prevLogIndex is 2 11:54:31,252 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower533, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:31,252 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply{term=1, success=false, followerId=follower533, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5}, leader snapshotIndex: 1, snapshotTerm: 1, replicatedToAllIndex: 1 11:54:31,252 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower533 updated: matchIndex: -1, nextIndex: 0 11:54:31,252 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): follower follower533 appears to be behind the leader from the last snapshot - updated: matchIndex: -1, nextIndex: 0 11:54:31,252 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Checking sendAppendEntries for follower follower533: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: 1 11:54:31,252 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower533: Last sync leader does not match current leader leader531, need to catch up to 2 11:54:31,252 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Initiating install snapshot to follower follower533: follower nextIndex: 0, leader snapshotIndex: 1, leader lastIndex: 2, leader log size: 1 11:54:31,253 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on follower533 11:54:31,253 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: lastSequenceNumber prior to capture: 7 11:54:31,253 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: CaptureSnapshotReply received by actor 11:54:31,253 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Persisting of snapshot done: Snapshot [lastIndex=2, lastTerm=1, lastAppliedIndex=2, lastAppliedTerm=1, unAppliedEntries size=0, state=MockSnapshotState [state=[zero, one, two]], electionTerm=1, electionVotedFor=leader531, ServerConfigPayload=null] 11:54:31,253 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 11:54:31,253 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): sendInstallSnapshot 11:54:31,254 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader531 (Leader): Snapshot 345 bytes, total chunks to send: 1 11:54:31,254 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader531 (Leader): Next chunk: total length=345, offset=0, size=345, hashCode=-1043722696 11:54:31,254 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): next snapshot chunk size for follower follower533: 345 11:54:31,254 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): InstallSnapshot sent to follower Vector(user, follower533), Chunk: 1/1 11:54:31,254 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: SaveSnapshotSuccess received for snapshot, sequenceNr: 7 11:54:31,254 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: Snapshot success - sequence number: 7 11:54:31,254 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: SnapshotComplete received 11:54:31,254 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: handled a snapshot response 11:54:31,255 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531: handled a journal response 11:54:31,255 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Cannot append entries because the replicatedToAllIndex 1 does not appear to be in the in-memory journal - lastIndex: -1, snapshotIndex: -1, snapshotTerm: -1 11:54:31,255 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower533, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:31,255 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader531, lastIncludedIndex=2, lastIncludedTerm=1, datasize=345, chunk=1/1, lastChunkHashCode=OptionalInt[-1]} 11:54:31,255 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply{term=1, success=false, followerId=follower533, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5}, leader snapshotIndex: 1, snapshotTerm: 1, replicatedToAllIndex: 1 11:54:31,255 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:54:31,255 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): follower follower533 appears to be behind the leader from the last snapshot - updated: matchIndex: -1, nextIndex: 0 11:54:31,255 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Snapshot installed from leader: leader531 11:54:31,256 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): Converted InstallSnapshot from leader: leader531 to state 11:54:31,256 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Applying snapshot on follower: Snapshot [lastIndex=2, lastTerm=1, lastAppliedIndex=2, lastAppliedTerm=1, unAppliedEntries size=0, state=MockSnapshotState [state=[zero, one, two]], electionTerm=1, electionVotedFor=null, ServerConfigPayload=null] 11:54:31,256 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: 1 11:54:31,256 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: SaveSnapshotSuccess received for snapshot, sequenceNr: 1 11:54:31,256 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Snapshot success - sequence number: 1 11:54:31,256 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Moving last applied index from -1 to 2 11:54:31,256 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Set currentTerm=1, votedFor=null 11:54:31,256 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: applySnapshot called [WARN] [11/11/2024 11:54:31.256] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower533] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2fc35293 11:54:31,256 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533 (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower533, chunkIndex=1, success=true} 11:54:31,256 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): handleInstallSnapshotReply: InstallSnapshotReply{term=1, followerId=follower533, chunkIndex=1, success=true} 11:54:31,256 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader531 (Leader): Snapshot successfully installed on follower follower533 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 11:54:31,257 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: SnapshotComplete received 11:54:31,257 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: handled a snapshot response 11:54:31,257 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: handled a journal response [WARN] [11/11/2024 11:54:31.317] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower533]: org.opendaylight.controller.cluster.common.actor.Monitor@6d596981 11:54:31,317 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower533 with journal batch size 1000 11:54:31,318 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: SnapshotOffer called. 11:54:31,318 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Moving last applied index from -1 to 2 11:54:31,318 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Set currentTerm=1, votedFor=null 11:54:31,318 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Recovery snapshot applied for follower533 in 98.79 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 11:54:31,319 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower533: Recovery completed in 1.183 ms - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 11:54:31,319 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532-collector534#1714175073] 11:54:31,330 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower532] 11:54:31,331 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531-collector535#1234103264] 11:54:31,331 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader531] 11:54:31,331 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533-collector536#-655477866] 11:54:31,331 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower533] 11:54:31,331 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533-collector537#-428717908] 11:54:31,331 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower533] 11:54:31,332 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533-collector538#926128674] 11:54:31,332 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower533] [WARN] [11/11/2024 11:54:31.335] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower540]: org.opendaylight.controller.cluster.common.actor.Monitor@2c698234 11:54:31,336 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower540 with journal batch size 1000 [WARN] [11/11/2024 11:54:31.337] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader539]: org.opendaylight.controller.cluster.common.actor.Monitor@3642c465 11:54:31,337 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:54:31,337 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader539 with journal batch size 1000 11:54:31,338 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:54:31,791 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:54:31,791 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.0:17355, Removed) 11:54:31,791 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Follower): Received ElectionTimeout - switching to Candidate 11:54:31,791 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Candidate): Election: Candidate has following voting peers: [follower541, follower540] 11:54:31,791 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Set currentTerm=1, votedFor=leader539 11:54:31,791 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Candidate): Starting new election term 1 11:54:31,791 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Candidate): Sending RequestVote{term=1, candidateId=leader539, lastLogIndex=-1, lastLogTerm=-1} to peer follower541 11:54:31,791 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Candidate): Sending RequestVote{term=1, candidateId=leader539, lastLogIndex=-1, lastLogTerm=-1} to peer follower540 11:54:31,792 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Follower) :- Switching from behavior Follower to Candidate, election term: 1 [WARN] [11/11/2024 11:54:31.792] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader539]: RequestVote{term=1, candidateId=leader539, lastLogIndex=-1, lastLogTerm=-1} 11:54:31,792 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 11:54:31,792 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Cluster state: [] 11:54:31,792 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Candidate in requestVote:RequestVote{term=1, candidateId=leader539, lastLogIndex=-1, lastLogTerm=-1} with higher term appears reachable, updating term. 11:54:31,792 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Term 1 in "RequestVote{term=1, candidateId=leader539, lastLogIndex=-1, lastLogTerm=-1}" message is greater than follower's term 0 - updating term 11:54:31,792 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Set currentTerm=1, votedFor=null 11:54:31,792 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): In requestVote: RequestVote{term=1, candidateId=leader539, lastLogIndex=-1, lastLogTerm=-1} - currentTerm: 1, votedFor: null, lastIndex: -1, lastTerm: -1 11:54:31,792 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Set currentTerm=1, votedFor=leader539 11:54:31,792 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 11:54:31,793 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Candidate): RaftRPC message received RequestVoteReply{term=1, voteGranted=true}, my term is 1 11:54:31,793 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Candidate): handleRequestVoteReply: RequestVoteReply{term=1, voteGranted=true}, current voteCount: 1 11:54:31,793 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Election: Leader has following peers: [follower541, follower540] 11:54:31,793 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower541: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:54:31,793 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower540: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 11:54:31,793 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 [WARN] [11/11/2024 11:54:31.793] [test-pekko.actor.default-dispatcher-17] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader539]: AppendEntries{term=1, leaderId=leader539, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:31,795 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower540: Last sync leader does not match current leader leader539, need to catch up to -1 11:54:31,795 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower540 updated: matchIndex: -1, nextIndex: 0 11:54:31,795 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower540: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [11/11/2024 11:54:31.795] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/follower540] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5928f25a 11:54:31,843 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:31,843 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:31,843 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 11:54:31,843 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower541: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:54:31,843 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower540: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:54:31,843 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): sendAppendEntries: 0 is present for follower follower540 11:54:31,843 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Sending AppendEntries to follower follower540: AppendEntries{term=1, leaderId=leader539, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]} [WARN] [11/11/2024 11:54:31.843] [test-pekko.actor.default-dispatcher-17] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader539]: AppendEntries{term=1, leaderId=leader539, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:31,844 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader539, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]} 11:54:31,844 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Number of entries to be appended = 1 11:54:31,844 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:54:31,844 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Append entry to log zero 11:54:31,844 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:31,844 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Log size is now 1 11:54:31,844 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower540, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:31,844 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower540: Lagging 0 entries behind leader leader539 and reached -1 (of expected -1) 11:54:31,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower540 updated: matchIndex: 0, nextIndex: 1 11:54:31,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower540: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 11:54:31,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 11:54:31,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 11:54:31,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Setting last applied to 0 11:54:31,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Moving last applied index from -1 to 0 11:54:31,844 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Applying state for log index 0 data zero 11:54:31,844 AM [test-pekko.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: applyState called: zero 11:54:31,845 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Persisting ApplyJournalEntries with index=0 11:54:31,845 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] [WARN] [11/11/2024 11:54:31.845] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/follower540] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5c13d0ed 11:54:31,893 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Persist data SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:31,894 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:31,894 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 11:54:31,894 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower541: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:54:31,894 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower540: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:54:31,894 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): sendAppendEntries: 1 is present for follower follower540 11:54:31,894 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Sending AppendEntries to follower follower540: AppendEntries{term=1, leaderId=leader539, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]} [WARN] [11/11/2024 11:54:31.894] [test-pekko.actor.default-dispatcher-17] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader539]: AppendEntries{term=1, leaderId=leader539, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:31,894 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader539, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]} 11:54:31,894 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Number of entries to be appended = 1 11:54:31,894 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 11:54:31,894 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Append entry to log one 11:54:31,894 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:31,894 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Log size is now 2 11:54:31,894 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Commit index set to 0 11:54:31,894 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower540, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:31,894 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower540: Lagging 0 entries behind leader leader539 and reached 0 (of expected -1) 11:54:31,894 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 11:54:31,894 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Setting last applied to 0 11:54:31,894 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Moving last applied index from -1 to 0 11:54:31,894 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Applying state for log index 0 data zero 11:54:31,894 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower540 updated: matchIndex: 1, nextIndex: 2 11:54:31,894 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower540: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 11:54:31,894 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: applyState called: zero 11:54:31,895 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:31,895 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 11:54:31,895 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Setting last applied to 1 11:54:31,895 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Moving last applied index from 0 to 1 11:54:31,895 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Applying state for log index 1 data one 11:54:31,895 AM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: applyState called: one 11:54:31,895 AM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Persisting ApplyJournalEntries with index=1 11:54:31,896 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 11:54:31,896 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Persisting ApplyJournalEntries with index=0 [WARN] [11/11/2024 11:54:31.910] [test-pekko.actor.default-dispatcher-5] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader539]: AppendEntries{term=1, leaderId=leader539, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:31,944 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Persist data SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:31,944 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:31,944 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 11:54:31,944 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower541: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:54:31,944 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower540: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 11:54:31,944 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): sendAppendEntries: 2 is present for follower follower540 11:54:31,944 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Sending AppendEntries to follower follower540: AppendEntries{term=1, leaderId=leader539, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]} 11:54:31,944 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Persist data SimpleReplicatedLogEntry [index=3, term=1, payload=three] [WARN] [11/11/2024 11:54:31.944] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader539]: AppendEntries{term=1, leaderId=leader539, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:31,944 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 11:54:31,945 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, isSendImmediate: true 11:54:31,945 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower541: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 11:54:31,945 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower540: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: -1 11:54:31,945 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): sendAppendEntries: 2 is present for follower follower540 [WARN] [11/11/2024 11:54:31.945] [test-pekko.actor.default-dispatcher-5] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader539]: AppendEntries{term=1, leaderId=leader539, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:31,945 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:31,946 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 11:54:31,946 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=3, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 11:54:31,946 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: lastSequenceNumber prior to capture: 7 11:54:32,31 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): sendAppendEntries: 2 is present for follower follower540 [WARN] [11/11/2024 11:54:32.031] [test-pekko.actor.default-dispatcher-5] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader539]: AppendEntries{term=1, leaderId=leader539, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:32,151 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): sendAppendEntries: 2 is present for follower follower540 11:54:32,151 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Sending AppendEntries to follower follower540: AppendEntries{term=1, leaderId=leader539, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three]]} [WARN] [11/11/2024 11:54:32.151] [test-pekko.actor.default-dispatcher-11] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader539]: AppendEntries{term=1, leaderId=leader539, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:32,271 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): sendAppendEntries: 2 is present for follower follower540 11:54:32,271 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Sending AppendEntries to follower follower540: AppendEntries{term=1, leaderId=leader539, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three]]} [WARN] [11/11/2024 11:54:32.271] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader539]: AppendEntries{term=1, leaderId=leader539, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:32,297 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Persist data SimpleReplicatedLogEntry [index=4, term=1, payload=four] 11:54:32,297 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=four] 11:54:32,297 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, isSendImmediate: true 11:54:32,297 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower541: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:54:32,297 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower540: active: false, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: -1 [WARN] [11/11/2024 11:54:32.297] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader539]: AppendEntries{term=1, leaderId=leader539, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} 11:54:32,297 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower540: Lagging -1 entries behind leader leader539 and reached 0 (of expected -1) 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [WARN] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply{term=1, success=true, followerId=follower540, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5}, timeSinceLastActivity : 403, lastApplied : 1, commitIndex : 1 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): sendAppendEntries: 2 is present for follower follower540 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Sending AppendEntries to follower follower540: AppendEntries{term=1, leaderId=leader539, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three], SimpleReplicatedLogEntry [index=4, term=1, payload=four]]} 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader539, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three], SimpleReplicatedLogEntry [index=4, term=1, payload=four]]} 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Number of entries to be appended = 3 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Append entry to log two 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Append entry to log three 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Append entry to log four 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=four] 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Log size is now 5 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Commit index set to 1 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower540, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower540: Lagging 0 entries behind leader leader539 and reached 1 (of expected -1) 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 4 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Setting last applied to 1 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Moving last applied index from 0 to 1 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Applying state for log index 1 data one 11:54:32,298 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower540 updated: matchIndex: 4, nextIndex: 5 11:54:32,298 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 1 11:54:32,298 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Setting last applied to 2 11:54:32,298 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Moving last applied index from 1 to 2 11:54:32,298 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Applying state for log index 2 data two 11:54:32,298 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: applyState called: one 11:54:32,299 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: applyState called: two 11:54:32,299 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Setting last applied to 3 11:54:32,299 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Moving last applied index from 2 to 3 11:54:32,299 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Applying state for log index 3 data three 11:54:32,299 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: applyState called: three 11:54:32,299 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Checking sendAppendEntries for follower follower540: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 11:54:32,299 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Persisting ApplyJournalEntries with index=3 11:54:32,299 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=four] 11:54:32,299 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 11:54:32,299 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Setting last applied to 4 11:54:32,299 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Moving last applied index from 3 to 4 11:54:32,299 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Applying state for log index 4 data four 11:54:32,299 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: applyState called: four 11:54:32,299 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Persisting ApplyJournalEntries with index=4 11:54:32,300 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 11:54:32,300 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 11:54:32,300 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=four] 11:54:32,300 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Persisting ApplyJournalEntries with index=1 11:54:32,300 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Commit index set to 3 11:54:32,300 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower540: Lagging 0 entries behind leader leader539 and reached 3 (of expected -1) 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 1, lastIndex(): 4 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Setting last applied to 2 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Moving last applied index from 1 to 2 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Applying state for log index 2 data two 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: applyState called: two 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Setting last applied to 3 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Moving last applied index from 2 to 3 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Applying state for log index 3 data three 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: applyState called: three 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Commit index set to 4 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower540: Lagging 0 entries behind leader leader539 and reached 4 (of expected -1) 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 4 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540 (Follower): Setting last applied to 4 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Moving last applied index from 3 to 4 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Applying state for log index 4 data four 11:54:32,301 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: applyState called: four 11:54:32,301 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Persisting ApplyJournalEntries with index=3 11:54:32,301 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower540: Persisting ApplyJournalEntries with index=4 11:54:32,347 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: CaptureSnapshotReply received by actor 11:54:32,347 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Persisting of snapshot done: Snapshot [lastIndex=3, lastTerm=1, lastAppliedIndex=1, lastAppliedTerm=1, unAppliedEntries size=2, state=MockSnapshotState [state=[zero, one]], electionTerm=1, electionVotedFor=leader539, ServerConfigPayload=null] 11:54:32,347 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: log size 5 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 1 11:54:32,347 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 11:54:32,348 AM [test-pekko.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: SaveSnapshotSuccess received for snapshot, sequenceNr: 7 11:54:32,348 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Snapshot success - sequence number: 7 11:54:32,348 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: SnapshotComplete received 11:54:32,348 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: handled a snapshot response 11:54:32,348 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: handled a journal response [WARN] [11/11/2024 11:54:32.391] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader539]: AppendEntries{term=1, leaderId=leader539, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, entries==[]} [WARN] [11/11/2024 11:54:32.410] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader539]: org.opendaylight.controller.cluster.common.actor.Monitor@5bdf8939 11:54:32,411 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader539 with journal batch size 1000 11:54:32,411 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: SnapshotOffer called. 11:54:32,411 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Moving last applied index from -1 to 1 11:54:32,411 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Set currentTerm=1, votedFor=leader539 11:54:32,412 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Recovery snapshot applied for leader539 in 136.8 μs: snapshotIndex=1, snapshotTerm=1, journal-size=2 11:54:32,413 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Received ReplicatedLogEntry for recovery: index: 4, size: 4 11:54:32,413 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Received apply journal entries for recovery, applying to state: 2 to 3 11:54:32,413 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Moving last applied index from 1 to 3 11:54:32,413 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Received apply journal entries for recovery, applying to state: 4 to 4 11:54:32,413 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Moving last applied index from 3 to 4 11:54:32,414 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Recovery completed in 2.157 ms - Switching actor to Follower - last log index = 4, last log term = 1, snapshot index = 1, snapshot term = 1, journal size = 3 11:54:32,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Follower): Received TimeoutNow - switching to Candidate 11:54:32,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Candidate): Election: Candidate has following voting peers: [] 11:54:32,414 AM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539: Set currentTerm=2, votedFor=leader539 11:54:32,414 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Candidate): Starting new election term 2 11:54:32,414 AM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:54:32,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Candidate): Received ElectionTimeout 11:54:32,415 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Leader): Election: Leader has following peers: [] 11:54:32,415 AM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader539 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 11:54:32,510 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower540-collector542#-480089210] 11:54:32,521 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower540] 11:54:32,522 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539-collector543#-542445497] 11:54:32,522 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader539] 11:54:32,522 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539-collector544#335667064] 11:54:32,522 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader539] 11:54:32,524 AM [test-pekko.actor.default-dispatcher-16] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 11:54:32,525 AM [test-pekko.actor.default-dispatcher-16] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.0:17355] - Exiting completed 11:54:32,526 AM [test-pekko.actor.default-dispatcher-16] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.0:17355] - Shutting down... 11:54:32,526 AM [test-pekko.actor.default-dispatcher-16] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.0:17355] - Successfully shut down 11:54:32,527 AM [test-pekko.actor.default-dispatcher-16] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 11:54:32,528 AM [test-pekko.actor.default-dispatcher-16] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 11:54:32,529 AM [test-pekko.actor.default-dispatcher-16] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [11/11/2024 11:54:32.524] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason]