[DEBUG] [06/26/2025 22:50:33.882] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 10:50:33,883 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/26/2025 22:50:33.883] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/26/2025 22:50:33.883] [main] [EventStream(pekko://test)] Default Loggers started 10:50:33,910 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.92:17355] with UID [-451464990627175306] [INFO] [06/26/2025 22:50:33.909] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.92:17355] with UID [-451464990627175306] 10:50:33,910 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.92:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/26/2025 22:50:33.910] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.92:17355] - Starting up, Pekko version [1.0.3] ... 10:50:33,912 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.92:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 10:50:33,912 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.92:17355] - Started up successfully 10:50:33,913 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.92:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 10:50:33,913 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.92:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [06/26/2025 22:50:33.912] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.92:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/26/2025 22:50:33.912] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.92:17355] - Started up successfully [INFO] [06/26/2025 22:50:33.913] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.92:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/26/2025 22:50:33.913] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.92:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:50:33,931 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 10:50:33,932 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,23 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:50:34,24 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:50:34,24 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:50:34,29 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:50:34,30 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 10:50:34,30 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 10:50:34,30 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 10:50:34,30 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 10:50:34,34 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 10:50:34,35 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-181875380] 10:50:34,47 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-752301738] 10:50:34,47 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#668847437] 10:50:34,49 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 10:50:34,49 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,51 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]]} 10:50:34,51 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 10:50:34,51 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} 10:50:34,52 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 10:50:34,52 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#357378660] 10:50:34,63 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#593835561] 10:50:34,63 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#558678173] 10:50:34,66 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 10:50:34,67 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,68 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:50:34,68 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:50:34,68 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:50:34,68 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:50:34,68 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 10:50:34,68 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 10:50:34,68 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 10:50:34,69 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:50:34,69 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 10:50:34,70 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]]} 10:50:34,70 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 10:50:34,70 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} 10:50:34,70 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 10:50:34,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-361264572] 10:50:34,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#346949881] 10:50:34,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-254025226] 10:50:34,73 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,73 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 10:50:34,77 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#903428681] 10:50:34,78 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-2059898007] 10:50:34,78 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#-100875997] 10:50:34,80 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 10:50:34,80 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,80 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 10:50:34,81 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]]} 10:50:34,81 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:50:34,81 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:50:34,81 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:50:34,81 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:50:34,81 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:50:34,81 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} 10:50:34,82 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:50:34,82 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:50:34,83 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:50:34,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-76382724] 10:50:34,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#-218916886] 10:50:34,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#436349165] 10:50:34,87 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 10:50:34,87 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,87 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]]} 10:50:34,88 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:50:34,88 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 10:50:34,88 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:50:34,88 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:50:34,88 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 10:50:34,88 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} 10:50:34,88 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:50:34,88 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:50:34,88 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:50:34,88 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:50:34,88 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:50:34,88 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:50:34,89 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]]} 10:50:34,89 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:50:34,89 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 10:50:34,89 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:50:34,89 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 10:50:34,89 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 10:50:34,89 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 10:50:34,90 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} 10:50:34,90 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 10:50:34,90 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:50:34,90 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:50:34,90 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:50:34,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#-1483473688] 10:50:34,91 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#604971370] 10:50:34,91 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-1575990170] 10:50:34,92 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 10:50:34,92 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,93 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 10:50:34,93 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 10:50:34,93 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} 10:50:34,93 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 10:50:34,94 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-1984815795] 10:50:34,94 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#2091538105] 10:50:34,94 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#-971222446] 10:50:34,95 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,97 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-1038225107] 10:50:34,97 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#-715267898] 10:50:34,97 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#717734516] 10:50:34,99 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 10:50:34,99 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,99 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 10:50:34,99 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 10:50:34,99 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]]} 10:50:34,99 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:50:34,99 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:50:34,99 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:50:34,99 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:50:34,99 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:50:34,100 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} 10:50:34,100 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:50:34,100 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 10:50:34,100 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 10:50:34,100 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 10:50:34,100 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 10:50:34,100 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#958758082] 10:50:34,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#929445454] 10:50:34,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#929058004] 10:50:34,104 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/26/2025 22:50:34.106] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1996e0df [INFO] [pekkoDeadLetter][06/26/2025 22:50:34.106] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:50:34,107 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:50:34,107 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:50:34,107 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:50:34,107 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:50:34,108 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14321793862000795516/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 10:50:34,108 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:50:34,108 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:50:34,109 PM [test-pekko.actor.default-dispatcher-15] [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 10:50:34,114 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:50:34,114 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 10:50:34,114 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3bc27f03 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [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]]} 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [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} 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 10:50:34,115 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 10:50:34,116 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:50:34,116 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:50:34,116 PM [test-pekko.actor.default-dispatcher-15] [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] 10:50:34,116 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 10:50:34,116 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 10:50:34,116 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 10:50:34,116 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 10:50:34,116 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 10:50:34,116 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d656751] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14321793862000795516/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685DCEBA-06F31A5F.tmp [WARN] [06/26/2025 22:50:34.116] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/26/2025 22:50:34.117] [test-pekko.actor.default-dispatcher-15] [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'. 10:50:34,117 PM [test-pekko.actor.default-dispatcher-15] [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'. 10:50:34,123 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d656751] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14321793862000795516/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685DCEBA-06F31A5F.v1 10:50:34,123 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d656751] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14321793862000795516/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685DCEBA-06F31A5F.v1 10:50:34,123 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d656751] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14321793862000795516/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:50:34,123 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d656751] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-26T22:50:34.116595295Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14321793862000795516/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685DCEBA-06F31A5F.v1, size=555, entryCompress=NONE, stateCompress=NONE} 10:50:34,123 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-26T22:50:34.116595295Z 10:50:34,123 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 10:50:34,124 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 10:50:34,124 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 10:50:34,267 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14321793862000795516/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685DCEBA-06F31A5F.v1 10:50:34,267 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14321793862000795516/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:50:34,267 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-26T22:50:34.116595295Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14321793862000795516/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685DCEBA-06F31A5F.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 10:50:34,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#327128845] 10:50:34,271 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-881588083] 10:50:34,271 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#69431466] 10:50:34,271 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 10:50:34,271 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:50:34,271 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:50:34,275 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,276 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#-1455864535] 10:50:34,277 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#-1018539762] 10:50:34,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-1697650976] 10:50:34,284 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 10:50:34,284 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,285 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 10:50:34,286 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 10:50:34,286 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#-346487333] 10:50:34,288 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#1631058452] 10:50:34,288 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-1246459524] 10:50:34,291 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 10:50:34,292 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,292 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 10:50:34,293 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]]} 10:50:34,293 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:50:34,293 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:50:34,293 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:50:34,293 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:50:34,293 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:50:34,293 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} 10:50:34,294 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:50:34,294 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:50:34,294 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:50:34,295 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#1076411264] 10:50:34,295 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#19004861] 10:50:34,295 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#1983839503] 10:50:34,298 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 10:50:34,298 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,299 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 10:50:34,299 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]]} 10:50:34,300 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 10:50:34,300 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} 10:50:34,300 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:50:34,300 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 10:50:34,301 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]]} 10:50:34,301 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 10:50:34,301 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} 10:50:34,301 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 10:50:34,302 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#802071160] 10:50:34,303 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#18703183] 10:50:34,303 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#-1824829011] 10:50:34,305 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,306 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#1114054621] 10:50:34,306 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#1491658597] 10:50:34,306 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#2121536303] 10:50:34,307 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 10:50:34,308 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,308 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 10:50:34,308 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]]} 10:50:34,309 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 10:50:34,309 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} 10:50:34,309 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:50:34,309 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:50:34,310 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]]} 10:50:34,310 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 10:50:34,310 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} 10:50:34,310 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:50:34,311 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]]} 10:50:34,312 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 10:50:34,312 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} 10:50:34,312 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:50:34,312 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#1836014172] 10:50:34,313 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-1182096548] 10:50:34,313 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#3157070] 10:50:34,315 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 10:50:34,315 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,316 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]]} 10:50:34,316 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:50:34,316 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 10:50:34,316 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 10:50:34,316 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:50:34,317 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 10:50:34,317 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} 10:50:34,317 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 10:50:34,317 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 10:50:34,317 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 10:50:34,317 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#1383808704] 10:50:34,318 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#1676464428] 10:50:34,318 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-1964989220] 10:50:34,320 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 10:50:34,320 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,321 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:50:34,322 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 10:50:34,322 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 10:50:34,323 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:50:34,323 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-1193745259] 10:50:34,324 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#-522667372] 10:50:34,324 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-1339598239] 10:50:34,327 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 10:50:34,327 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,328 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 10:50:34,328 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]]} 10:50:34,328 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:50:34,328 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:50:34,328 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:50:34,328 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:50:34,328 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:50:34,329 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} 10:50:34,329 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:50:34,329 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:50:34,329 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:50:34,329 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#1219259273] 10:50:34,330 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#-1547745719] 10:50:34,330 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#-944320068] 10:50:34,332 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 10:50:34,333 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,333 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 10:50:34,334 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]]} 10:50:34,334 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 10:50:34,334 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} 10:50:34,334 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:50:34,335 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#1257275729] 10:50:34,335 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-290206588] 10:50:34,335 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-381529757] 10:50:34,337 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/26/2025 22:50:34.338] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@67deaf9 [INFO] [pekkoDeadLetter][06/26/2025 22:50:34.338] [test-pekko.actor.default-dispatcher-14] [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'. 10:50:34,338 PM [test-pekko.actor.default-dispatcher-14] [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'. 10:50:34,339 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 10:50:34,339 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 10:50:34,339 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 10:50:34,340 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17484357156240877969/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 10:50:34,340 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 10:50:34,340 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 10:50:34,340 PM [test-pekko.actor.default-dispatcher-14] [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 10:50:34,344 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 10:50:34,344 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 10:50:34,344 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3b138096 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [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]]} 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [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} 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 10:50:34,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 10:50:34,346 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:50:34,346 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:50:34,346 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 10:50:34,346 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 10:50:34,346 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 10:50:34,346 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 10:50:34,346 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 10:50:34,346 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 10:50:34,346 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 [WARN] [06/26/2025 22:50:34.346] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 10:50:34,346 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d535409] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17484357156240877969/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685DCEBA-14A6AE1B.tmp 10:50:34,346 PM [test-pekko.actor.default-dispatcher-14] [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'. [INFO] [pekkoDeadLetter][06/26/2025 22:50:34.346] [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'. 10:50:34,348 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d535409] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17484357156240877969/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685DCEBA-14A6AE1B.v1 10:50:34,348 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d535409] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17484357156240877969/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685DCEBA-14A6AE1B.v1 10:50:34,348 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d535409] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17484357156240877969/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:50:34,348 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d535409] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-26T22:50:34.346467867Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17484357156240877969/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685DCEBA-14A6AE1B.v1, size=701, entryCompress=NONE, stateCompress=NONE} 10:50:34,348 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-26T22:50:34.346467867Z 10:50:34,348 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 10:50:34,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 10:50:34,349 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 10:50:34,448 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17484357156240877969/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685DCEBA-14A6AE1B.v1 10:50:34,448 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17484357156240877969/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:50:34,448 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-26T22:50:34.346467867Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17484357156240877969/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685DCEBA-14A6AE1B.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 10:50:34,450 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#-1725124428] 10:50:34,451 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-929346874] 10:50:34,451 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#-565045721] 10:50:34,452 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 10:50:34,452 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 10:50:34,452 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 10:50:34,456 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 10:50:34,456 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,457 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 10:50:34,457 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]]} 10:50:34,457 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 10:50:34,458 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} 10:50:34,458 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 10:50:34,458 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#1982185333] 10:50:34,459 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#625987367] 10:50:34,459 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#-546833913] 10:50:34,461 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 10:50:34,461 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,461 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 10:50:34,462 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 10:50:34,462 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 10:50:34,462 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 10:50:34,462 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 10:50:34,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#301431647] 10:50:34,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#-1211661447] 10:50:34,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#903715456] 10:50:34,465 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 10:50:34,465 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,467 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 10:50:34,467 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]]} 10:50:34,468 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:50:34,468 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 10:50:34,468 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:50:34,468 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 10:50:34,468 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:50:34,468 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 10:50:34,468 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 10:50:34,468 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 10:50:34,468 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 10:50:34,468 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} 10:50:34,469 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 10:50:34,469 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 10:50:34,470 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:50:34,470 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:50:34,470 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:50:34,470 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:50:34,470 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:50:34,470 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:50:34,470 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 10:50:34,470 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 10:50:34,470 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#614771309] 10:50:34,481 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#-332818321] 10:50:34,481 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#-1557072542] 10:50:34,484 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 10:50:34,484 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,485 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 10:50:34,485 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 10:50:34,486 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#358525493] 10:50:34,487 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#2003137158] 10:50:34,487 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#1937019742] 10:50:34,490 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 10:50:34,491 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,491 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:50:34,492 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:50:34,492 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:50:34,492 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:50:34,493 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 10:50:34,493 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]]} 10:50:34,493 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 10:50:34,493 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:50:34,493 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:50:34,493 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 10:50:34,493 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 10:50:34,493 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 10:50:34,493 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} 10:50:34,494 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 10:50:34,494 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:50:34,494 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:50:34,494 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:50:34,494 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#-1258942158] 10:50:34,496 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#-184184520] 10:50:34,496 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#-960132261] 10:50:34,499 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 10:50:34,500 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,500 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 10:50:34,501 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]]} 10:50:34,501 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 10:50:34,501 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} 10:50:34,502 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:50:34,502 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:50:34,502 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]]} 10:50:34,502 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 10:50:34,503 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} 10:50:34,503 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:50:34,503 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 10:50:34,503 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]]} 10:50:34,503 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 10:50:34,504 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} 10:50:34,504 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 10:50:34,504 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#767365714] 10:50:34,505 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#-1749561905] 10:50:34,505 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#-1288951127] 10:50:34,507 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 10:50:34,508 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,708 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:50:34,708 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.170.92:17355, Removed) 10:50:34,709 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 10:50:34,709 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 10:50:34,709 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 10:50:34,709 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:50:34,709 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-812166691] 10:50:34,710 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#55157296] 10:50:34,710 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#92820875] 10:50:34,714 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,715 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 10:50:34,966 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:50:34,966 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#1911129934] 10:50:34,977 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#383548505] 10:50:34,977 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#-1488637182] 10:50:34,981 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 10:50:34,981 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,983 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 10:50:34,984 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 10:50:34,984 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#1541719918] 10:50:34,995 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#-1417942101] 10:50:34,995 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#1420182922] 10:50:34,997 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 10:50:34,997 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:34,999 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]]} 10:50:34,999 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:50:35,0 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 10:50:35,0 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 10:50:35,0 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 10:50:35,0 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 10:50:35,0 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 10:50:35,0 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} 10:50:35,0 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 10:50:35,0 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 10:50:35,1 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:50:35,1 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:50:35,1 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:50:35,1 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:50:35,1 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:50:35,1 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:50:35,1 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 10:50:35,1 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 10:50:35,1 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 10:50:35,1 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 10:50:35,2 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#773131373] 10:50:35,13 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-1754385214] 10:50:35,13 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-1399052373] 10:50:35,16 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 10:50:35,17 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:35,17 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:50:35,18 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:50:35,18 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:50:35,18 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:50:35,20 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]]} 10:50:35,20 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} 10:50:35,21 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#1396032369] 10:50:35,31 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#-2048304048] 10:50:35,32 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#1022753392] 10:50:35,34 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 10:50:35,34 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:35,35 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 10:50:35,35 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]]} 10:50:35,35 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:50:35,36 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 10:50:35,36 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 10:50:35,36 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#90993267] 10:50:35,47 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#873853589] 10:50:35,47 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#-1869868711] 10:50:35,49 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/26/2025 22:50:35.049] [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@53483b42 [INFO] [pekkoDeadLetter][06/26/2025 22:50:35.050] [test-pekko.actor.default-dispatcher-15] [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'. 10:50:35,50 PM [test-pekko.actor.default-dispatcher-15] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 10:50:35,50 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 10:50:35,50 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:50:35,50 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:50:35,51 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4056216416589093019/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 10:50:35,51 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 10:50:35,51 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:50:35,51 PM [test-pekko.actor.default-dispatcher-14] [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 10:50:35,55 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:50:35,55 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 10:50:35,55 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4eac5ba7 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [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]]} 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [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} 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 10:50:35,56 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 10:50:35,57 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:50:35,57 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:50:35,57 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 10:50:35,57 PM [test-pekko.actor.default-dispatcher-14] [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] 10:50:35,57 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 10:50:35,57 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 10:50:35,57 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:50:35,57 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 10:50:35,57 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 10:50:35,57 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d639434] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4056216416589093019/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DCEBB-036FAFC2.tmp [WARN] [06/26/2025 22:50:35.057] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/26/2025 22:50:35.058] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:50:35,58 PM [test-pekko.actor.default-dispatcher-14] [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'. 10:50:35,60 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d639434] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4056216416589093019/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DCEBB-036FAFC2.v1 10:50:35,60 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d639434] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4056216416589093019/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DCEBB-036FAFC2.v1 10:50:35,60 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d639434] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4056216416589093019/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:50:35,60 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d639434] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-26T22:50:35.057651138Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4056216416589093019/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DCEBB-036FAFC2.v1, size=573, entryCompress=NONE, stateCompress=NONE} 10:50:35,60 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-26T22:50:35.057651138Z 10:50:35,60 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 10:50:35,60 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 10:50:35,60 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 10:50:35,159 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4056216416589093019/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DCEBB-036FAFC2.v1 10:50:35,159 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4056216416589093019/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:50:35,159 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-26T22:50:35.057651138Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4056216416589093019/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DCEBB-036FAFC2.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 10:50:35,165 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:50:35,175 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:50:35,176 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/26/2025 22:50:35.177] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@37def5e8 [INFO] [pekkoDeadLetter][06/26/2025 22:50:35.177] [test-pekko.actor.default-dispatcher-14] [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'. 10:50:35,177 PM [test-pekko.actor.default-dispatcher-15] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:50:35,177 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 10:50:35,178 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:50:35,178 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:50:35,179 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:50:35,179 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4056216416589093019/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DCEBB-036FAFC2.v1 10:50:35,179 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4056216416589093019/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:50:35,179 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-26T22:50:35.057651138Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest4056216416589093019/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685DCEBB-036FAFC2.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 10:50:35,180 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:50:35,180 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-26T22:50:35.057651138Z 10:50:35,180 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:50:35,180 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 134.1 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 10:50:35,181 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 10:50:35,181 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 10:50:35,181 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 493.2 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 10:50:35,181 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 10:50:35,181 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:50:35,181 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@255d81a9 10:50:35,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#-1837014304] 10:50:35,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#-1567068733] 10:50:35,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#1404276761] 10:50:35,192 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:50:35,193 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:50:35,193 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:50:35,196 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 10:50:35,196 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:35,497 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:50:35,627 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:50:35,627 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 10:50:35,878 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 10:50:36,78 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 10:50:36,79 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#1495352463] 10:50:36,81 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#-867796619] 10:50:36,81 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#1850617437] 10:50:36,84 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:36,84 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:50:36,84 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 10:50:36,84 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 10:50:36,84 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 10:50:36,85 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:50:36,85 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-1650042980] 10:50:36,86 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-165863947] 10:50:36,86 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#-1110115456] 10:50:36,87 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:36,89 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 10:50:36,89 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 10:50:36,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#1548654951] 10:50:36,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#632418433] 10:50:36,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-232386803] 10:50:36,93 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:36,95 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]]} 10:50:36,95 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:50:36,96 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 10:50:36,96 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 10:50:36,96 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:50:36,96 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 10:50:36,96 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} 10:50:36,96 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 10:50:36,96 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 10:50:36,96 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:50:36,96 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:50:36,96 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 10:50:36,97 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-420511539] 10:50:36,107 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#-419301187] 10:50:36,108 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#1041008903] 10:50:36,111 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:36,112 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 10:50:36,113 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 10:50:36,114 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#554134424] 10:50:36,124 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#630187305] 10:50:36,125 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#-978838603] 10:50:36,127 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:36,128 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 10:50:36,129 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 10:50:36,129 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} 10:50:36,129 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 10:50:36,130 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 10:50:36,131 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:50:36,131 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 10:50:36,131 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. 10:50:36,132 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 10:50:36,133 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 10:50:36,134 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 10:50:36,134 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 10:50:36,135 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#943907318] 10:50:36,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#175348610] 10:50:36,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#-1603706769] 10:50:36,148 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:36,149 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:50:36,149 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:50:36,149 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:36,150 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 10:50:36,150 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 10:50:36,150 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 10:50:36,150 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 10:50:36,150 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 10:50:36,150 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#659000963] 10:50:36,151 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#-639573116] 10:50:36,151 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-702608480] 10:50:36,154 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:36,155 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 10:50:36,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#881062767] 10:50:36,156 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-1403560037] 10:50:36,156 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#-808513163] 10:50:36,157 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:50:36,158 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 10:50:36,158 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 10:50:36,158 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#-1813476481] 10:50:36,159 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#907026366] 10:50:36,159 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#1066767957] 10:50:36,160 PM [test-pekko.actor.default-dispatcher-15] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [06/26/2025 22:50:36.159] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/26/2025 22:50:36.160] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.92:17355) [INFO] [pekkoDeadLetter][06/26/2025 22:50:36.160] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#614826102] 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'. 10:50:36,161 PM [test-pekko.actor.default-dispatcher-12] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#614826102] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [06/26/2025 22:50:36.161] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.92:17355] - Exiting completed [INFO] [06/26/2025 22:50:36.161] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.92:17355] - Shutting down... [INFO] [06/26/2025 22:50:36.161] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.92:17355] - Successfully shut down 10:50:36,162 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.92:17355] - Exiting completed 10:50:36,162 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.92:17355] - Shutting down... 10:50:36,162 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.92:17355] - Successfully shut down [INFO] [06/26/2025 22:50:36.163] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.92:17355/system/remoting-terminator] Shutting down remote daemon. 10:50:36,163 PM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [06/26/2025 22:50:36.163] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.92:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 10:50:36,163 PM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/26/2025 22:50:36.165] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.92:17355/system/remoting-terminator] Remoting shut down. 10:50:36,165 PM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [06/26/2025 22:50:36.165] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger