[DEBUG] [07/01/2025 08:17:19.385] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 08:17:19,393 AM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/01/2025 08:17:19.393] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/01/2025 08:17:19.393] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [07/01/2025 08:17:19.406] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.123:17355] with UID [8242710270478722512] 08:17:19,408 AM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.123:17355] with UID [8242710270478722512] [INFO] [07/01/2025 08:17:19.407] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - Starting up, Pekko version [1.0.3] ... 08:17:19,408 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/01/2025 08:17:19.409] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 08:17:19,409 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/01/2025 08:17:19.409] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - Started up successfully 08:17:19,409 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - Started up successfully [INFO] [07/01/2025 08:17:19.410] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/01/2025 08:17:19.410] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 08:17:19,410 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 08:17:19,410 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 08:17:19,422 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 08:17:19,422 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,516 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:17:19,516 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:17:19,516 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:17:19,517 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:17:19,518 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 08:17:19,518 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 08:17:19,518 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 08:17:19,518 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 08:17:19,520 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 08:17:19,521 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#-75871110] 08:17:19,532 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#-1815794019] 08:17:19,532 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#585302846] 08:17:19,542 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 08:17:19,543 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,546 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 08:17:19,547 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 08:17:19,547 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,547 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 08:17:19,547 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#-676590879] 08:17:19,548 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-490189711] 08:17:19,548 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#1808859140] 08:17:19,550 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 08:17:19,550 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,551 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:17:19,551 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:17:19,551 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:17:19,551 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:17:19,551 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 08:17:19,551 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 08:17:19,551 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 08:17:19,552 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 08:17:19,553 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 08:17:19,553 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 08:17:19,553 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 08:17:19,554 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,554 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 08:17:19,554 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#670034264] 08:17:19,555 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#351532097] 08:17:19,555 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#1092302039] 08:17:19,558 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,558 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 08:17:19,562 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-1376009262] 08:17:19,573 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#352358670] 08:17:19,573 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-1186970121] 08:17:19,578 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 08:17:19,578 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,579 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 08:17:19,580 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 08:17:19,581 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:17:19,581 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:17:19,581 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:17:19,581 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:17:19,582 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:17:19,582 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,582 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:17:19,582 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 08:17:19,588 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 08:17:19,591 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-168471383] 08:17:19,591 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#1808405519] 08:17:19,592 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#-755038148] 08:17:19,594 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 08:17:19,594 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,595 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 08:17:19,595 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:17:19,596 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 08:17:19,596 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 08:17:19,596 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:17:19,596 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 08:17:19,596 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,596 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:17:19,596 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 08:17:19,596 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:17:19,596 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:17:19,596 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 08:17:19,596 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 08:17:19,597 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 08:17:19,598 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:17:19,598 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 08:17:19,598 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 08:17:19,598 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 08:17:19,598 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 08:17:19,598 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 08:17:19,598 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,598 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 08:17:19,598 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:17:19,598 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:17:19,598 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:17:19,598 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#1865047860] 08:17:19,599 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#346396111] 08:17:19,599 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-22244442] 08:17:19,600 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 08:17:19,601 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,601 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 08:17:19,602 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 08:17:19,602 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,602 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 08:17:19,602 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-1413290115] 08:17:19,603 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-499779745] 08:17:19,603 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-1432156217] 08:17:19,604 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,606 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#1613336226] 08:17:19,607 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#1978771674] 08:17:19,607 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#4424016] 08:17:19,610 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 08:17:19,610 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,610 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 08:17:19,611 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 08:17:19,611 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 08:17:19,612 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:17:19,612 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:17:19,612 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:17:19,612 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:17:19,612 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:17:19,612 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,612 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:17:19,612 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 08:17:19,612 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 08:17:19,612 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 08:17:19,612 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 08:17:19,613 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#363980196] 08:17:19,613 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#251220645] 08:17:19,614 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#1997786535] 08:17:19,616 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [07/01/2025 08:17:19.618] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@19ba170b [INFO] [pekkoDeadLetter][07/01/2025 08:17:19.618] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 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'. 08:17:19,620 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 08:17:19,620 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:17:19,620 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 08:17:19,620 AM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 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'. 08:17:19,622 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest442463347417116926/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 08:17:19,622 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 08:17:19,622 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:17:19,622 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:17:19,626 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:17:19,626 AM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 08:17:19,626 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4b9e0024 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 08:17:19,627 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 08:17:19,628 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 08:17:19,628 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 08:17:19,628 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 08:17:19,628 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 08:17:19,628 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 08:17:19,628 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 08:17:19,628 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 08:17:19,628 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 08:17:19,628 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d112410] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest442463347417116926/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863998F-2577AF13.tmp 08:17:19,633 AM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] 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] [07/01/2025 08:17:19.634] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 08:17:19.633] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] 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'. 08:17:19,636 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d112410] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest442463347417116926/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863998F-2577AF13.v1 08:17:19,636 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d112410] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest442463347417116926/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863998F-2577AF13.v1 08:17:19,636 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d112410] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest442463347417116926/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:17:19,636 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d112410] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-01T08:17:19.628600595Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest442463347417116926/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863998F-2577AF13.v1, size=555, entryCompress=NONE, stateCompress=NONE} 08:17:19,636 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d112410] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 08:17:19,636 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 08:17:19,636 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-07-01T08:17:19.628600595Z 08:17:19,636 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 08:17:19,636 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 08:17:19,637 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 08:17:19,780 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest442463347417116926/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863998F-2577AF13.v1 08:17:19,780 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest442463347417116926/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 08:17:19,780 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-01T08:17:19.628600595Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest442463347417116926/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863998F-2577AF13.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 08:17:19,782 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-792187567] 08:17:19,793 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#1492381731] 08:17:19,793 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#1201752061] 08:17:19,793 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 08:17:19,793 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:17:19,793 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 08:17:19,796 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,797 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#523949683] 08:17:19,801 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#-1268597904] 08:17:19,801 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#-190101160] 08:17:19,804 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 08:17:19,804 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,809 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 08:17:19,809 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 08:17:19,810 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#654799926] 08:17:19,810 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#-916856877] 08:17:19,810 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#1750944247] 08:17:19,812 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 08:17:19,812 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,812 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 08:17:19,813 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 08:17:19,813 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:17:19,813 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:17:19,813 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:17:19,813 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 08:17:19,813 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:17:19,813 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,813 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:17:19,813 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 08:17:19,813 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 08:17:19,814 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#1259802270] 08:17:19,814 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#540000215] 08:17:19,814 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#1241918958] 08:17:19,816 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 08:17:19,816 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,816 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 08:17:19,817 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 08:17:19,817 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 08:17:19,818 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,818 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:17:19,818 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 08:17:19,819 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 08:17:19,819 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 08:17:19,819 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,819 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 08:17:19,819 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-119694797] 08:17:19,820 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-1964497264] 08:17:19,820 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#892771239] 08:17:19,822 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,822 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-1721560381] 08:17:19,823 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#1470688485] 08:17:19,823 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-2143361382] 08:17:19,833 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 08:17:19,833 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,834 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 08:17:19,834 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 08:17:19,834 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 08:17:19,835 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,835 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:17:19,836 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 08:17:19,836 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 08:17:19,837 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 08:17:19,837 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,837 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 08:17:19,845 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 08:17:19,845 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 08:17:19,846 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,846 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 08:17:19,848 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-1246327954] 08:17:19,861 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#-765648413] 08:17:19,861 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-916928185] 08:17:19,874 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 08:17:19,874 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,875 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 08:17:19,875 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:17:19,875 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 08:17:19,875 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 08:17:19,875 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 08:17:19,875 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 08:17:19,875 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,875 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 08:17:19,875 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 08:17:19,875 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 08:17:19,877 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-31652543] 08:17:19,887 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-198846830] 08:17:19,887 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#1202396134] 08:17:19,889 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 08:17:19,889 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,890 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:17:19,897 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader476 08:17:19,897 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader476 08:17:19,900 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:17:19,901 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#-1455521757] 08:17:19,912 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-765656058] 08:17:19,912 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-364588076] 08:17:19,915 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 08:17:19,918 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,921 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 08:17:19,922 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 08:17:19,922 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:17:19,922 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 08:17:19,922 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 08:17:19,922 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 08:17:19,922 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 08:17:19,922 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,922 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:17:19,923 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 08:17:19,923 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 08:17:19,923 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-891468307] 08:17:19,934 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#688163368] 08:17:19,934 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#765251842] 08:17:19,939 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 08:17:19,940 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:19,940 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 08:17:19,941 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 08:17:19,941 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 08:17:19,941 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,941 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:17:19,942 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#1066514190] 08:17:19,942 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#-112744197] 08:17:19,943 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#1771153172] 08:17:19,947 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 08:17:19,948 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 08:17:19,948 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 08:17:19,948 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor [WARN] [07/01/2025 08:17:19.948] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@762647f7 [INFO] [pekkoDeadLetter][07/01/2025 08:17:19.948] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] 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'. 08:17:19,948 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] 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'. 08:17:19,950 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13166330329998473804/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 08:17:19,950 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 08:17:19,950 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 08:17:19,950 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:17:19,955 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 08:17:19,955 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 08:17:19,955 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@28400642 08:17:19,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 08:17:19,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 08:17:19,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:17:19,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 08:17:19,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 08:17:19,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 08:17:19,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 08:17:19,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 08:17:19,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 08:17:19,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 08:17:19,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 08:17:19,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:19,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 08:17:19,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 08:17:19,955 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 08:17:19,956 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 08:17:19,956 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 08:17:19,956 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 08:17:19,956 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 08:17:19,956 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 08:17:19,956 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 08:17:19,956 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 08:17:19,956 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 08:17:19,956 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 08:17:19,956 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 08:17:19,956 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 08:17:19,956 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 08:17:19,956 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 08:17:19,956 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d995332] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13166330329998473804/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863998F-3907790B.tmp [WARN] [07/01/2025 08:17:19.957] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 08:17:19.957] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 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'. 08:17:19,957 AM [test-pekko.actor.default-dispatcher-15] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 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'. 08:17:19,959 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d995332] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13166330329998473804/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863998F-3907790B.v1 08:17:19,959 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d995332] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13166330329998473804/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863998F-3907790B.v1 08:17:19,960 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d995332] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13166330329998473804/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 08:17:19,960 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d995332] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-01T08:17:19.956791051Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13166330329998473804/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863998F-3907790B.v1, size=701, entryCompress=NONE, stateCompress=NONE} 08:17:19,960 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d995332] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 08:17:19,960 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 08:17:19,960 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-07-01T08:17:19.956791051Z 08:17:19,960 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 08:17:19,960 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 08:17:19,960 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 08:17:20,59 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13166330329998473804/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863998F-3907790B.v1 08:17:20,59 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13166330329998473804/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 08:17:20,59 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-01T08:17:19.956791051Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13166330329998473804/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863998F-3907790B.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 08:17:20,61 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-1619928351] 08:17:20,72 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#1239102201] 08:17:20,72 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#1745146196] 08:17:20,72 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 08:17:20,72 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 08:17:20,72 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 08:17:20,75 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 08:17:20,75 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:20,76 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 08:17:20,77 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 08:17:20,77 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 08:17:20,77 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:20,78 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 08:17:20,78 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-2109263940] 08:17:20,89 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#1239896423] 08:17:20,89 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#964813284] 08:17:20,91 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 08:17:20,91 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:20,91 AM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 08:17:20,92 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 08:17:20,92 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 08:17:20,92 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 08:17:20,92 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 08:17:20,92 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#1672185361] 08:17:20,103 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-1812014103] 08:17:20,103 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-526946441] 08:17:20,105 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 08:17:20,105 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:20,106 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 08:17:20,106 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 08:17:20,106 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:17:20,106 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 08:17:20,107 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:17:20,107 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 08:17:20,107 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 08:17:20,107 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 08:17:20,107 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 08:17:20,107 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 08:17:20,107 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 08:17:20,107 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:20,107 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 08:17:20,107 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 08:17:20,107 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:17:20,107 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:17:20,108 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 08:17:20,108 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 08:17:20,108 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:17:20,108 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:17:20,108 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 08:17:20,108 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 08:17:20,108 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#472294056] 08:17:20,119 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-1103793863] 08:17:20,119 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-683397755] 08:17:20,121 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 08:17:20,121 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:20,122 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 08:17:20,122 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 08:17:20,123 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#84863423] 08:17:20,133 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#-1594651089] 08:17:20,134 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-1633450142] 08:17:20,135 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 08:17:20,135 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:20,135 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:17:20,135 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:17:20,135 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:17:20,136 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:17:20,136 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 08:17:20,136 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 08:17:20,136 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 08:17:20,136 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:17:20,137 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 08:17:20,137 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 08:17:20,137 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 08:17:20,137 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 08:17:20,137 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:20,137 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 08:17:20,137 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:17:20,137 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:17:20,137 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:17:20,137 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#521630830] 08:17:20,148 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-1542095076] 08:17:20,148 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#774297201] 08:17:20,150 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 08:17:20,150 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:20,151 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 08:17:20,151 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 08:17:20,151 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 08:17:20,152 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:20,152 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 08:17:20,152 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 08:17:20,153 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 08:17:20,153 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 08:17:20,154 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:20,154 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 08:17:20,154 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 08:17:20,154 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 08:17:20,155 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 08:17:20,155 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:20,155 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 08:17:20,156 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#765176225] 08:17:20,166 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#1303602074] 08:17:20,166 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#360979705] 08:17:20,168 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 08:17:20,168 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:20,369 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:17:20,369 AM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.123:17355, Removed) 08:17:20,369 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 08:17:20,369 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 08:17:20,369 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 08:17:20,369 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:17:20,369 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#1916810070] 08:17:20,380 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#698604517] 08:17:20,380 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#1005610298] 08:17:20,383 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:20,383 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 08:17:20,585 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:17:20,585 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-434929272] 08:17:20,596 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#1656024526] 08:17:20,596 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#1471295898] 08:17:20,601 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 08:17:20,601 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:20,604 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 08:17:20,604 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 08:17:20,605 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#-309311429] 08:17:20,605 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#181741506] 08:17:20,605 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#1035956291] 08:17:20,608 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 08:17:20,608 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:20,609 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 08:17:20,609 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:17:20,609 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 08:17:20,609 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 08:17:20,609 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 08:17:20,609 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 08:17:20,609 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 08:17:20,609 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:20,609 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 08:17:20,609 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 08:17:20,609 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:17:20,609 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:17:20,610 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 08:17:20,610 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 08:17:20,610 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 08:17:20,610 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 08:17:20,610 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 08:17:20,610 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 08:17:20,610 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 08:17:20,610 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 08:17:20,610 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-1393284761] 08:17:20,611 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#-216221453] 08:17:20,611 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#743940630] 08:17:20,614 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 08:17:20,614 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:20,614 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 08:17:20,615 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 08:17:20,615 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:17:20,615 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 08:17:20,616 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 08:17:20,616 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:20,617 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#104585066] 08:17:20,617 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-923359496] 08:17:20,617 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#1873269324] 08:17:20,618 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 08:17:20,619 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:20,619 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 08:17:20,619 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 08:17:20,619 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 08:17:20,619 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 08:17:20,620 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 08:17:20,620 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-926495855] 08:17:20,620 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#-374750104] 08:17:20,620 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#-631793486] 08:17:20,621 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [07/01/2025 08:17:20.622] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1abc24b5 08:17:20,622 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 [INFO] [pekkoDeadLetter][07/01/2025 08:17:20.622] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] 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'. 08:17:20,622 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 08:17:20,622 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] 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'. 08:17:20,622 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 08:17:20,624 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11210720885419667880/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 08:17:20,624 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 08:17:20,624 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:17:20,624 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 08:17:20,629 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:17:20,629 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 08:17:20,629 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@41845a27 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 08:17:20,630 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 08:17:20,631 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 08:17:20,631 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 08:17:20,631 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 08:17:20,631 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 08:17:20,631 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 08:17:20,631 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 08:17:20,631 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 08:17:20,631 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 08:17:20,631 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 08:17:20,632 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d307160] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11210720885419667880/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068639990-25A77073.tmp [WARN] [07/01/2025 08:17:20.632] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 08:17:20,632 AM [test-pekko.actor.default-dispatcher-15] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 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'. [INFO] [pekkoDeadLetter][07/01/2025 08:17:20.632] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 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'. 08:17:20,637 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d307160] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11210720885419667880/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068639990-25A77073.v1 08:17:20,637 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d307160] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11210720885419667880/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068639990-25A77073.v1 08:17:20,637 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d307160] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11210720885419667880/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:17:20,637 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d307160] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-01T08:17:20.631730291Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11210720885419667880/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068639990-25A77073.v1, size=573, entryCompress=NONE, stateCompress=NONE} 08:17:20,637 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d307160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 08:17:20,637 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 08:17:20,637 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-07-01T08:17:20.631730291Z 08:17:20,637 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 08:17:20,637 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 08:17:20,637 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 08:17:20,784 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11210720885419667880/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068639990-25A77073.v1 08:17:20,784 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11210720885419667880/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:17:20,784 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-01T08:17:20.631730291Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11210720885419667880/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068639990-25A77073.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 08:17:20,786 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 08:17:20,797 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 08:17:20,797 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/01/2025 08:17:20.798] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@53dd5e54 [INFO] [pekkoDeadLetter][07/01/2025 08:17:20.798] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] 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'. 08:17:20,799 AM [test-pekko.actor.default-dispatcher-15] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] 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'. 08:17:20,799 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 08:17:20,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 08:17:20,799 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 08:17:20,801 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:17:20,802 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11210720885419667880/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068639990-25A77073.v1 08:17:20,802 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11210720885419667880/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 08:17:20,802 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-01T08:17:20.631730291Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest11210720885419667880/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068639990-25A77073.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 08:17:20,802 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 08:17:20,803 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-07-01T08:17:20.631730291Z 08:17:20,803 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:17:20,803 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 135.2 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 08:17:20,803 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 08:17:20,803 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 08:17:20,803 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 483.6 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 08:17:20,803 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 08:17:20,803 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 08:17:20,803 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5eeda5d0 08:17:20,804 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#630051326] 08:17:20,815 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#-572073310] 08:17:20,815 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#-619567266] 08:17:20,815 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 08:17:20,815 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 08:17:20,815 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 08:17:20,819 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 08:17:20,820 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:21,120 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:17:21,251 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:17:21,251 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 08:17:21,501 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 08:17:21,701 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 08:17:21,701 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#2022170195] 08:17:21,704 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#1921150620] 08:17:21,704 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#1649716060] 08:17:21,707 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:21,709 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:17:21,709 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 08:17:21,709 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 08:17:21,709 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 08:17:21,709 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:17:21,710 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-1050556445] 08:17:21,710 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#1480691230] 08:17:21,710 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-1704895559] 08:17:21,713 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:21,716 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 08:17:21,716 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 08:17:21,717 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#-1319716002] 08:17:21,728 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-1921356151] 08:17:21,728 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#1600933665] 08:17:21,730 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:21,732 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 08:17:21,732 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 08:17:21,733 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 08:17:21,733 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 08:17:21,733 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 08:17:21,733 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 08:17:21,733 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:21,733 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 08:17:21,733 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 08:17:21,734 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 08:17:21,734 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:17:21,734 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 08:17:21,734 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-769809160] 08:17:21,745 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#-1389510665] 08:17:21,745 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#-1700900428] 08:17:21,747 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:21,749 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 08:17:21,750 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 08:17:21,750 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-31114645] 08:17:21,761 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-1357183739] 08:17:21,761 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#641398663] 08:17:21,763 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:21,763 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 08:17:21,764 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 08:17:21,765 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 08:17:21,765 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 08:17:21,766 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 08:17:21,767 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:17:21,767 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 08:17:21,767 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 08:17:21,767 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 08:17:21,768 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 08:17:21,769 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 08:17:21,770 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 08:17:21,771 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#1048724843] 08:17:21,781 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-714639360] 08:17:21,781 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#725870361] 08:17:21,784 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:21,785 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:17:21,785 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 08:17:21,785 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:21,785 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 08:17:21,786 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 08:17:21,786 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 08:17:21,786 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 08:17:21,786 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 08:17:21,786 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#1972093395] 08:17:21,797 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#-798212096] 08:17:21,797 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#-1359656781] 08:17:21,800 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:21,801 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 08:17:21,802 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#-1637011259] 08:17:21,812 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#1285256951] 08:17:21,812 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#857503969] 08:17:21,815 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 08:17:21,816 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 08:17:21,816 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 08:17:21,817 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior549#1321337687] 08:17:21,827 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower550#168263293] 08:17:21,828 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader551#-1868594133] [INFO] [07/01/2025 08:17:21.828] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 08:17:21,828 AM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/01/2025 08:17:21.829] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.123:17355) [INFO] [pekkoDeadLetter][07/01/2025 08:17:21.829] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1456160012] 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'. 08:17:21,829 AM [test-pekko.actor.default-dispatcher-11] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1456160012] 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'. [INFO] [07/01/2025 08:17:21.830] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - Exiting completed [INFO] [07/01/2025 08:17:21.830] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - Shutting down... 08:17:21,830 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - Exiting completed 08:17:21,830 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - Shutting down... [INFO] [07/01/2025 08:17:21.830] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.123:17355] - Successfully shut down 08:17:21,830 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.123:17355] - Successfully shut down [INFO] [07/01/2025 08:17:21.831] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.123:17355/system/remoting-terminator] Shutting down remote daemon. 08:17:21,831 AM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 08:17:21,831 AM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/01/2025 08:17:21.831] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.123:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 08:17:21,833 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [07/01/2025 08:17:21.833] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.123:17355/system/remoting-terminator] Remoting shut down.