[DEBUG] [06/25/2025 17:47:25.218] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 05:47:25,218 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/25/2025 17:47:25.218] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/25/2025 17:47:25.218] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [06/25/2025 17:47:25.235] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.43:17355] with UID [-5150095497779875183] 05:47:25,236 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.43:17355] with UID [-5150095497779875183] [INFO] [06/25/2025 17:47:25.236] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - Starting up, Pekko version [1.0.3] ... 05:47:25,236 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/25/2025 17:47:25.239] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/25/2025 17:47:25.239] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - Started up successfully 05:47:25,239 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 05:47:25,239 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - Started up successfully [INFO] [06/25/2025 17:47:25.240] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/25/2025 17:47:25.240] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 05:47:25,240 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 05:47:25,240 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 05:47:25,256 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 05:47:25,256 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,349 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:47:25,349 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:47:25,349 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:47:25,350 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:47:25,351 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 05:47:25,351 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 05:47:25,351 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 05:47:25,351 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 05:47:25,354 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 05:47:25,354 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#1450171089] 05:47:25,366 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#478673956] 05:47:25,366 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#-343203960] 05:47:25,368 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 05:47:25,368 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,370 PM [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]]} 05:47:25,370 PM [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 05:47:25,370 PM [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} 05:47:25,371 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 05:47:25,371 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#1713017894] 05:47:25,382 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#1318063893] 05:47:25,382 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#-1758156704] 05:47:25,384 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 05:47:25,385 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,385 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:47:25,386 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:47:25,386 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:47:25,386 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:47:25,387 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 05:47:25,387 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 05:47:25,387 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 05:47:25,388 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:47:25,389 PM [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 05:47:25,389 PM [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]]} 05:47:25,389 PM [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 05:47:25,390 PM [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} 05:47:25,390 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 05:47:25,391 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-282172938] 05:47:25,392 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-1922363996] 05:47:25,392 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#-515943993] 05:47:25,395 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,395 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 05:47:25,396 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#1418027679] 05:47:25,396 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#984332044] 05:47:25,397 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#1457587732] 05:47:25,398 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 05:47:25,398 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,399 PM [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 05:47:25,399 PM [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]]} 05:47:25,399 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:47:25,399 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:47:25,400 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:47:25,400 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:47:25,400 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:47:25,400 PM [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} 05:47:25,402 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:47:25,402 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:47:25,403 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:47:25,404 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#938420856] 05:47:25,405 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#1550710619] 05:47:25,405 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#2088963288] 05:47:25,406 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 05:47:25,406 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,407 PM [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]]} 05:47:25,407 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:47:25,407 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 05:47:25,407 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 05:47:25,407 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:47:25,408 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 05:47:25,408 PM [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} 05:47:25,408 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:47:25,408 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 05:47:25,408 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:47:25,408 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:47:25,408 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:47:25,408 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:47:25,409 PM [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]]} 05:47:25,409 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:47:25,409 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 05:47:25,409 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 05:47:25,409 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 05:47:25,409 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 05:47:25,409 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 05:47:25,409 PM [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} 05:47:25,409 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 05:47:25,409 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 05:47:25,409 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:47:25,409 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:47:25,410 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#1269043687] 05:47:25,410 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-1199182004] 05:47:25,410 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#283030203] 05:47:25,412 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 05:47:25,412 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,412 PM [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 05:47:25,413 PM [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 05:47:25,413 PM [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} 05:47:25,413 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 05:47:25,413 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#90599834] 05:47:25,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#1002304415] 05:47:25,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#489600013] 05:47:25,415 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,418 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#-413747243] 05:47:25,418 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-2028801107] 05:47:25,418 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-582749899] 05:47:25,420 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 05:47:25,420 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,420 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 05:47:25,420 PM [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 05:47:25,421 PM [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]]} 05:47:25,421 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:47:25,421 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:47:25,421 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:47:25,421 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:47:25,421 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:47:25,421 PM [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} 05:47:25,421 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:47:25,421 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 05:47:25,421 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 05:47:25,422 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 05:47:25,422 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 05:47:25,422 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#2087511034] 05:47:25,422 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#-309603700] 05:47:25,422 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#-589910083] 05:47:25,424 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/25/2025 17:47:25.426] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@33634726 [INFO] [pekkoDeadLetter][06/25/2025 17:47:25.426] [test-pekko.actor.default-dispatcher-7] [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'. 05:47:25,426 PM [test-pekko.actor.default-dispatcher-7] [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'. 05:47:25,427 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 05:47:25,427 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 05:47:25,427 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 05:47:25,430 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6467951125108333848/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 05:47:25,430 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 05:47:25,430 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:47:25,430 PM [test-pekko.actor.default-dispatcher-11] [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 05:47:25,438 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:47:25,438 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 05:47:25,438 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@78159ba 05:47:25,438 PM [test-pekko.actor.default-dispatcher-6] [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]]} 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [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} 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 05:47:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 05:47:25,440 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:47:25,440 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:47:25,440 PM [test-pekko.actor.default-dispatcher-12] [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] 05:47:25,440 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 05:47:25,440 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 05:47:25,440 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 05:47:25,440 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 05:47:25,440 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 05:47:25,440 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d425129] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6467951125108333848/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C362D-1A427B04.tmp [WARN] [06/25/2025 17:47:25.440] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/25/2025 17:47:25.440] [test-pekko.actor.default-dispatcher-12] [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'. 05:47:25,441 PM [test-pekko.actor.default-dispatcher-12] [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'. 05:47:25,448 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d425129] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6467951125108333848/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C362D-1A427B04.v1 05:47:25,448 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d425129] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6467951125108333848/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C362D-1A427B04.v1 05:47:25,448 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d425129] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6467951125108333848/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:47:25,448 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d425129] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-25T17:47:25.440564484Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6467951125108333848/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C362D-1A427B04.v1, size=555, entryCompress=NONE, stateCompress=NONE} 05:47:25,448 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-25T17:47:25.440564484Z 05:47:25,448 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 05:47:25,448 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 05:47:25,449 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 05:47:25,545 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6467951125108333848/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C362D-1A427B04.v1 05:47:25,545 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6467951125108333848/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:47:25,545 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-25T17:47:25.440564484Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6467951125108333848/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685C362D-1A427B04.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 05:47:25,555 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-1942509149] 05:47:25,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#1633667207] 05:47:25,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#763997882] 05:47:25,566 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 05:47:25,566 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 05:47:25,566 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 05:47:25,575 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,577 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#-1811672528] 05:47:25,587 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#-436676077] 05:47:25,587 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#2087834045] 05:47:25,589 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 05:47:25,589 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,593 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 05:47:25,593 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 05:47:25,594 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-673439078] 05:47:25,599 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#-1480001367] 05:47:25,599 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#1027591877] 05:47:25,601 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 05:47:25,602 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,602 PM [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 05:47:25,603 PM [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]]} 05:47:25,603 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:47:25,603 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:47:25,603 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:47:25,603 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:47:25,603 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:47:25,603 PM [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} 05:47:25,603 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:47:25,604 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:47:25,604 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:47:25,605 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#1814127569] 05:47:25,606 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-1766829475] 05:47:25,606 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#2114479032] 05:47:25,607 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 05:47:25,607 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,608 PM [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 05:47:25,608 PM [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]]} 05:47:25,609 PM [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 05:47:25,609 PM [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} 05:47:25,609 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:47:25,609 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 05:47:25,610 PM [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]]} 05:47:25,610 PM [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 05:47:25,611 PM [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} 05:47:25,611 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 05:47:25,611 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#1157502820] 05:47:25,611 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-1564493270] 05:47:25,611 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#340601623] 05:47:25,613 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,613 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#677683157] 05:47:25,614 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#712254736] 05:47:25,614 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#1033260773] 05:47:25,615 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 05:47:25,615 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,616 PM [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 05:47:25,616 PM [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]]} 05:47:25,616 PM [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 05:47:25,617 PM [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} 05:47:25,617 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:47:25,617 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:47:25,618 PM [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]]} 05:47:25,618 PM [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 05:47:25,618 PM [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} 05:47:25,619 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:47:25,619 PM [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]]} 05:47:25,619 PM [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 05:47:25,620 PM [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} 05:47:25,620 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:47:25,620 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-1095719278] 05:47:25,620 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#938638974] 05:47:25,620 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-2071624195] 05:47:25,622 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 05:47:25,622 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,622 PM [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]]} 05:47:25,622 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:47:25,623 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 05:47:25,623 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 05:47:25,623 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:47:25,623 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 05:47:25,623 PM [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} 05:47:25,623 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 05:47:25,623 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 05:47:25,623 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 05:47:25,623 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#974982922] 05:47:25,623 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-131730504] 05:47:25,624 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#-1983767954] 05:47:25,625 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 05:47:25,625 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,626 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 05:47:25,626 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader476 05:47:25,626 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader476 05:47:25,627 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 05:47:25,628 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#609042688] 05:47:25,628 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-1523576629] 05:47:25,628 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-2137043207] 05:47:25,629 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 05:47:25,629 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,630 PM [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 05:47:25,630 PM [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]]} 05:47:25,630 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:47:25,630 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:47:25,630 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:47:25,630 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:47:25,630 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:47:25,630 PM [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} 05:47:25,630 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:47:25,630 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:47:25,631 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:47:25,631 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-189356705] 05:47:25,631 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#-793143989] 05:47:25,631 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#1937734830] 05:47:25,634 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 05:47:25,634 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,634 PM [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 05:47:25,635 PM [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]]} 05:47:25,635 PM [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 05:47:25,635 PM [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} 05:47:25,635 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:47:25,635 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#2147107205] 05:47:25,636 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#2092920218] 05:47:25,636 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#1292268262] 05:47:25,637 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/25/2025 17:47:25.637] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@6c127abe [INFO] [pekkoDeadLetter][06/25/2025 17:47:25.638] [test-pekko.actor.default-dispatcher-6] [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'. 05:47:25,638 PM [test-pekko.actor.default-dispatcher-6] [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'. 05:47:25,638 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 05:47:25,638 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 05:47:25,638 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 05:47:25,639 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15516735516607515358/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 05:47:25,639 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 05:47:25,639 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 05:47:25,639 PM [test-pekko.actor.default-dispatcher-11] [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 05:47:25,664 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 05:47:25,664 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 05:47:25,664 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@71ebb434 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [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]]} 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [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} 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 05:47:25,665 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 05:47:25,666 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 05:47:25,667 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:47:25,667 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:47:25,667 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 05:47:25,667 PM [test-pekko.actor.default-dispatcher-11] [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] 05:47:25,667 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 05:47:25,667 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 05:47:25,667 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 05:47:25,667 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 05:47:25,667 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 [WARN] [06/25/2025 17:47:25.667] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/25/2025 17:47:25.667] [test-pekko.actor.default-dispatcher-11] [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'. 05:47:25,668 PM [test-pekko.actor.default-dispatcher-11] [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'. 05:47:25,668 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d210642] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15516735516607515358/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C362D-27C7F0D6.tmp 05:47:25,677 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d210642] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15516735516607515358/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C362D-27C7F0D6.v1 05:47:25,677 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d210642] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15516735516607515358/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:47:25,677 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d210642] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15516735516607515358/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C362D-27C7F0D6.v1 05:47:25,677 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d210642] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-25T17:47:25.667414742Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15516735516607515358/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C362D-27C7F0D6.v1, size=701, entryCompress=NONE, stateCompress=NONE} 05:47:25,678 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-25T17:47:25.667414742Z 05:47:25,678 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 05:47:25,678 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 05:47:25,678 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 05:47:25,767 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15516735516607515358/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:47:25,767 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15516735516607515358/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C362D-27C7F0D6.v1 05:47:25,768 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-25T17:47:25.667414742Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15516735516607515358/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685C362D-27C7F0D6.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 05:47:25,770 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-700367730] 05:47:25,781 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#109350963] 05:47:25,781 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#1520116012] 05:47:25,781 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 05:47:25,781 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 05:47:25,781 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 05:47:25,784 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 05:47:25,784 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,785 PM [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 05:47:25,785 PM [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]]} 05:47:25,785 PM [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 05:47:25,786 PM [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} 05:47:25,786 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 05:47:25,786 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-727828187] 05:47:25,798 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#-205371073] 05:47:25,798 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#1529257114] 05:47:25,800 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 05:47:25,800 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,801 PM [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 05:47:25,801 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 05:47:25,802 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 05:47:25,802 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 05:47:25,802 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 05:47:25,802 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#-2013355523] 05:47:25,813 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#2022824993] 05:47:25,813 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#1318138399] 05:47:25,814 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 05:47:25,815 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,815 PM [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 05:47:25,816 PM [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]]} 05:47:25,817 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:47:25,817 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 05:47:25,817 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:47:25,818 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 05:47:25,818 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 05:47:25,818 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 05:47:25,818 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 05:47:25,818 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 05:47:25,818 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 05:47:25,818 PM [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} 05:47:25,818 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 05:47:25,818 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 05:47:25,818 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:47:25,818 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:47:25,818 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:47:25,818 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:47:25,818 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:47:25,818 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:47:25,819 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 05:47:25,819 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 05:47:25,819 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#1330525281] 05:47:25,831 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-1107611108] 05:47:25,831 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#1814041180] 05:47:25,834 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 05:47:25,834 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,834 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 05:47:25,834 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 05:47:25,835 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#609130455] 05:47:25,846 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#-1197758515] 05:47:25,846 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#1365047038] 05:47:25,849 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 05:47:25,849 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,850 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:47:25,850 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:47:25,850 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:47:25,850 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:47:25,851 PM [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 05:47:25,852 PM [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]]} 05:47:25,852 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 05:47:25,852 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:47:25,852 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 05:47:25,852 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 05:47:25,852 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 05:47:25,852 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 05:47:25,852 PM [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} 05:47:25,853 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 05:47:25,853 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 05:47:25,853 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:47:25,853 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:47:25,853 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#1925514559] 05:47:25,864 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-1368913647] 05:47:25,865 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#412513900] 05:47:25,867 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 05:47:25,868 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:25,868 PM [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 05:47:25,869 PM [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]]} 05:47:25,869 PM [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 05:47:25,870 PM [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} 05:47:25,870 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:47:25,870 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:47:25,871 PM [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]]} 05:47:25,871 PM [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 05:47:25,872 PM [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} 05:47:25,872 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:47:25,872 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 05:47:25,872 PM [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]]} 05:47:25,872 PM [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 05:47:25,873 PM [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} 05:47:25,873 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 05:47:25,873 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#-82749657] 05:47:25,884 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#-1059544533] 05:47:25,884 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#-1986185960] 05:47:25,885 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 05:47:25,886 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:26,86 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:47:26,86 PM [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.43:17355, Removed) 05:47:26,86 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 05:47:26,86 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 05:47:26,86 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 05:47:26,86 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 05:47:26,87 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-1740492270] 05:47:26,98 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-1640496399] 05:47:26,98 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#1935219940] 05:47:26,101 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:26,101 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 05:47:26,252 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:47:26,253 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-302984967] 05:47:26,254 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-51947776] 05:47:26,254 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#631579099] 05:47:26,257 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 05:47:26,257 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:26,259 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 05:47:26,260 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 05:47:26,261 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#-61340075] 05:47:26,272 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#781183310] 05:47:26,272 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-216799873] 05:47:26,275 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 05:47:26,275 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:26,276 PM [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]]} 05:47:26,276 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:47:26,276 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 05:47:26,276 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 05:47:26,277 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 05:47:26,277 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 05:47:26,277 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 05:47:26,277 PM [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} 05:47:26,277 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 05:47:26,277 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 05:47:26,277 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:47:26,277 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:47:26,278 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:47:26,278 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:47:26,278 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:47:26,278 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:47:26,278 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 05:47:26,278 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 05:47:26,278 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 05:47:26,278 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 05:47:26,279 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#-1345176939] 05:47:26,290 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#888346462] 05:47:26,290 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#-132978514] 05:47:26,293 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 05:47:26,293 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:26,294 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:47:26,294 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:47:26,295 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:47:26,295 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:47:26,296 PM [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]]} 05:47:26,297 PM [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} 05:47:26,297 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#-632850227] 05:47:26,308 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#381394962] 05:47:26,308 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#828488661] 05:47:26,313 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 05:47:26,313 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:26,314 PM [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 05:47:26,314 PM [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]]} 05:47:26,315 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:47:26,315 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 05:47:26,315 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 05:47:26,316 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-625575682] 05:47:26,326 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#488863229] 05:47:26,326 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#1377054219] 05:47:26,329 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 05:47:26,330 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 05:47:26,330 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:47:26,331 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [WARN] [06/25/2025 17:47:26.331] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@7ed514bf [INFO] [pekkoDeadLetter][06/25/2025 17:47:26.331] [test-pekko.actor.default-dispatcher-11] [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'. 05:47:26,331 PM [test-pekko.actor.default-dispatcher-11] [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'. 05:47:26,332 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10125216816173004733/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 05:47:26,332 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 05:47:26,333 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:47:26,333 PM [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 05:47:26,342 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:47:26,342 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 05:47:26,342 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@51994fd 05:47:26,343 PM [test-pekko.actor.default-dispatcher-7] [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]]} 05:47:26,343 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 05:47:26,343 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:47:26,343 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 05:47:26,343 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:47:26,343 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 05:47:26,343 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:47:26,343 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 05:47:26,343 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 05:47:26,343 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 05:47:26,343 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 05:47:26,343 PM [test-pekko.actor.default-dispatcher-7] [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} 05:47:26,343 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 05:47:26,343 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 05:47:26,344 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 05:47:26,344 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 05:47:26,344 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 05:47:26,344 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 05:47:26,344 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 05:47:26,344 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 05:47:26,344 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 05:47:26,344 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 05:47:26,344 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 05:47:26,344 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 05:47:26,344 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 05:47:26,344 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 05:47:26,344 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 05:47:26,345 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:47:26,345 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:47:26,345 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 05:47:26,345 PM [test-pekko.actor.default-dispatcher-7] [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] 05:47:26,345 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 05:47:26,345 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 05:47:26,345 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 05:47:26,346 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 05:47:26,346 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 05:47:26,346 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d538527] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10125216816173004733/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C362E-149F2343.tmp [WARN] [06/25/2025 17:47:26.346] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 05:47:26,346 PM [test-pekko.actor.default-dispatcher-11] [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][06/25/2025 17:47:26.346] [test-pekko.actor.default-dispatcher-7] [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'. 05:47:26,364 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d538527] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10125216816173004733/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C362E-149F2343.v1 05:47:26,364 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d538527] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10125216816173004733/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C362E-149F2343.v1 05:47:26,364 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d538527] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10125216816173004733/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:47:26,364 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d538527] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-25T17:47:26.345973571Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10125216816173004733/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C362E-149F2343.v1, size=573, entryCompress=NONE, stateCompress=NONE} 05:47:26,364 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-25T17:47:26.345973571Z 05:47:26,364 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 05:47:26,365 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 05:47:26,365 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 05:47:26,445 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10125216816173004733/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C362E-149F2343.v1 05:47:26,445 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10125216816173004733/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:47:26,445 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-25T17:47:26.345973571Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10125216816173004733/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C362E-149F2343.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 05:47:26,446 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 05:47:26,457 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:47:26,457 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/25/2025 17:47:26.459] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@501de93 [INFO] [pekkoDeadLetter][06/25/2025 17:47:26.459] [test-pekko.actor.default-dispatcher-11] [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'. 05:47:26,459 PM [test-pekko.actor.default-dispatcher-11] [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'. 05:47:26,459 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 05:47:26,460 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:47:26,460 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:47:26,461 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:47:26,461 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10125216816173004733/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C362E-149F2343.v1 05:47:26,461 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10125216816173004733/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:47:26,462 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-25T17:47:26.345973571Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest10125216816173004733/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685C362E-149F2343.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 05:47:26,462 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 05:47:26,462 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-25T17:47:26.345973571Z 05:47:26,462 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:47:26,463 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 130.7 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 05:47:26,463 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 05:47:26,463 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 05:47:26,463 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 408.5 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 05:47:26,463 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 05:47:26,463 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:47:26,463 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4e800942 05:47:26,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#-566759585] 05:47:26,474 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#279025397] 05:47:26,475 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#-2078183698] 05:47:26,475 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 05:47:26,475 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:47:26,475 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:47:26,478 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 05:47:26,479 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:26,779 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 05:47:26,909 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:47:26,909 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 05:47:27,160 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 05:47:27,360 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 05:47:27,360 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#-185988288] 05:47:27,361 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#-447028559] 05:47:27,362 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#1866460035] 05:47:27,364 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:27,365 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:47:27,365 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 05:47:27,365 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 05:47:27,365 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 05:47:27,366 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 05:47:27,366 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#232982481] 05:47:27,367 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#-442060947] 05:47:27,367 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#280768871] 05:47:27,369 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:27,371 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 05:47:27,371 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 05:47:27,371 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#1781478134] 05:47:27,372 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#1399936223] 05:47:27,372 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#609778692] 05:47:27,373 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:27,374 PM [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]]} 05:47:27,374 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:47:27,374 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 05:47:27,374 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 05:47:27,374 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:47:27,374 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 05:47:27,374 PM [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} 05:47:27,374 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 05:47:27,374 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 05:47:27,374 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:47:27,374 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:47:27,374 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 05:47:27,374 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#830000571] 05:47:27,375 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#1827927073] 05:47:27,375 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#1757126391] 05:47:27,376 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:27,377 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 05:47:27,377 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 05:47:27,377 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-1355920528] 05:47:27,378 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-1421387304] 05:47:27,378 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-101218237] 05:47:27,379 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:27,380 PM [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 05:47:27,380 PM [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 05:47:27,380 PM [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} 05:47:27,381 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 05:47:27,381 PM [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 05:47:27,381 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 05:47:27,381 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 05:47:27,381 PM [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. 05:47:27,381 PM [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 05:47:27,382 PM [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 05:47:27,382 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 05:47:27,383 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 05:47:27,383 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#770444808] 05:47:27,383 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#605907777] 05:47:27,384 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#-1819778191] 05:47:27,385 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:27,385 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:47:27,385 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:47:27,385 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:27,385 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 05:47:27,386 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 05:47:27,386 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 05:47:27,386 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 05:47:27,386 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 05:47:27,386 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#-542624097] 05:47:27,386 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#-508781524] 05:47:27,386 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#1477061231] 05:47:27,388 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:27,389 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 05:47:27,389 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#2068406246] 05:47:27,390 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#-661579637] 05:47:27,390 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#-1705140521] 05:47:27,391 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:47:27,392 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 05:47:27,392 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 05:47:27,392 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior549#-1060673613] 05:47:27,393 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower550#27035692] 05:47:27,393 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader551#1563022187] 05:47:27,393 PM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [06/25/2025 17:47:27.393] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 05:47:27,394 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - Exiting completed [WARN] [06/25/2025 17:47:27.394] [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.43:17355) [INFO] [06/25/2025 17:47:27.394] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - Exiting completed [INFO] [06/25/2025 17:47:27.394] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - Shutting down... 05:47:27,394 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - Shutting down... [INFO] [pekkoDeadLetter][06/25/2025 17:47:27.394] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1259908616] 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'. 05:47:27,395 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.43:17355] - Successfully shut down 05:47:27,395 PM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1259908616] 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'. 05:47:27,395 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [06/25/2025 17:47:27.394] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.43:17355] - Successfully shut down [INFO] [06/25/2025 17:47:27.395] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.43:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [06/25/2025 17:47:27.399] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.43:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 05:47:27,399 PM [test-pekko.actor.default-dispatcher-16] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/25/2025 17:47:27.401] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.43:17355/system/remoting-terminator] Remoting shut down. 05:47:27,401 PM [test-pekko.actor.default-dispatcher-17] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [06/25/2025 17:47:27.401] [test-pekko.actor.internal-dispatcher-5] [EventStream] shutting down: StandardOutLogger