[DEBUG] [07/01/2025 09:35:00.917] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 09:35:00,918 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/01/2025 09:35:00.918] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/01/2025 09:35:00.918] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [07/01/2025 09:35:00.930] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.19:17355] with UID [8914165689551136123] [INFO] [07/01/2025 09:35:00.931] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.19:17355] - Starting up, Pekko version [1.0.3] ... 09:35:00,932 AM [test-pekko.actor.default-dispatcher-9] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.19:17355] with UID [8914165689551136123] 09:35:00,932 AM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.19:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/01/2025 09:35:00.934] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.19:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 09:35:00,934 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.19:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/01/2025 09:35:00.934] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.19:17355] - Started up successfully 09:35:00,934 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.19:17355] - Started up successfully [INFO] [07/01/2025 09:35:00.936] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.19:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/01/2025 09:35:00.936] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.19:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:35:00,936 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.19:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 09:35:00,936 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.19:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:35:00,946 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 09:35:00,946 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,39 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:35:01,39 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:35:01,39 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:35:01,40 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:35:01,40 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:35:01,40 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 09:35:01,40 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:35:01,40 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:35:01,43 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 09:35:01,44 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#1415591438] 09:35:01,55 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-1630493236] 09:35:01,55 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#-336145122] 09:35:01,58 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 09:35:01,58 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,60 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 09:35:01,61 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 09:35:01,61 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,62 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:35:01,62 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#1513618064] 09:35:01,63 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#1217234455] 09:35:01,63 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#-1528560618] 09:35:01,64 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 09:35:01,64 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,65 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:35:01,65 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:35:01,65 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:35:01,65 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:35:01,66 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:35:01,66 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:35:01,66 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:35:01,66 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:35:01,67 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:35:01,68 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:35:01,68 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:35:01,68 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,68 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 09:35:01,69 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-1193198438] 09:35:01,69 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#-414086220] 09:35:01,69 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#69216741] 09:35:01,71 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,71 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:35:01,72 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#310067086] 09:35:01,73 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#2007381835] 09:35:01,73 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#-1214770899] 09:35:01,75 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:35:01,75 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,75 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:35:01,75 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:35:01,76 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:35:01,76 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:35:01,76 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:35:01,76 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:35:01,76 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:35:01,76 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,76 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:35:01,76 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:35:01,77 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:35:01,78 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#1629107269] 09:35:01,78 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#-1665951829] 09:35:01,78 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#793748226] 09:35:01,80 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 09:35:01,80 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,80 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 09:35:01,80 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:35:01,80 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:35:01,80 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:35:01,80 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:35:01,80 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 09:35:01,81 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,81 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:35:01,81 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:35:01,81 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:35:01,81 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:35:01,81 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:35:01,81 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:35:01,82 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 09:35:01,82 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:35:01,82 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:35:01,82 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:35:01,82 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 09:35:01,82 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:35:01,82 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:35:01,82 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,82 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 09:35:01,82 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:35:01,82 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:35:01,82 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:35:01,82 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#128944750] 09:35:01,83 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#811652331] 09:35:01,83 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-2031173783] 09:35:01,84 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 09:35:01,84 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,84 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 09:35:01,85 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:35:01,85 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,85 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 09:35:01,85 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-220104420] 09:35:01,86 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-1957473442] 09:35:01,86 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#1145934852] 09:35:01,87 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,89 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#2073314745] 09:35:01,89 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#959003501] 09:35:01,89 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#-1597663529] 09:35:01,91 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 09:35:01,91 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,91 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:35:01,91 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:35:01,91 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:35:01,92 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:35:01,92 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:35:01,92 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:35:01,92 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:35:01,92 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:35:01,92 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,92 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:35:01,92 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 09:35:01,92 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 09:35:01,92 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 09:35:01,92 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 09:35:01,92 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#109198490] 09:35:01,93 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-1817937984] 09:35:01,93 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#168943246] 09:35:01,94 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [07/01/2025 09:35:01.096] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@4765a138 [INFO] [pekkoDeadLetter][07/01/2025 09:35:01.096] [test-pekko.actor.default-dispatcher-9] [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'. 09:35:01,96 AM [test-pekko.actor.default-dispatcher-9] [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'. 09:35:01,97 AM [test-pekko.actor.default-dispatcher-8] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 09:35:01,97 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:35:01,97 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:35:01,100 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1210333380445559315/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 09:35:01,100 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 09:35:01,100 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:35:01,100 AM [test-pekko.actor.default-dispatcher-6] [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 09:35:01,104 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:35:01,104 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:35:01,104 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@25c561a2 09:35:01,104 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 09:35:01,105 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 09:35:01,106 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:35:01,106 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:35:01,106 AM [test-pekko.actor.default-dispatcher-5] [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] 09:35:01,106 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 09:35:01,106 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 09:35:01,106 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 09:35:01,106 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 09:35:01,106 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 09:35:01,106 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d164513] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1210333380445559315/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863ABC5-0655E620.tmp [WARN] [07/01/2025 09:35:01.106] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 09:35:01.106] [test-pekko.actor.default-dispatcher-5] [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'. 09:35:01,106 AM [test-pekko.actor.default-dispatcher-5] [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'. 09:35:01,110 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d164513] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1210333380445559315/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863ABC5-0655E620.v1 09:35:01,110 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d164513] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1210333380445559315/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863ABC5-0655E620.v1 09:35:01,110 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d164513] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1210333380445559315/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:35:01,110 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d164513] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-01T09:35:01.106292768Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1210333380445559315/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863ABC5-0655E620.v1, size=555, entryCompress=NONE, stateCompress=NONE} 09:35:01,110 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d164513] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:35:01,110 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:35:01,110 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-07-01T09:35:01.106292768Z 09:35:01,110 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 09:35:01,111 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 09:35:01,111 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 09:35:01,258 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1210333380445559315/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863ABC5-0655E620.v1 09:35:01,258 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1210333380445559315/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:35:01,258 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-01T09:35:01.106292768Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1210333380445559315/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863ABC5-0655E620.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 09:35:01,261 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-1239335220] 09:35:01,272 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#2085744054] 09:35:01,272 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-1912918895] 09:35:01,273 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 09:35:01,273 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:35:01,273 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:35:01,276 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,277 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#1123687658] 09:35:01,288 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#382787101] 09:35:01,288 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-799783080] 09:35:01,290 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 09:35:01,290 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,291 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 09:35:01,292 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:35:01,297 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#1767455299] 09:35:01,308 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#1207961575] 09:35:01,308 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-1619095543] 09:35:01,310 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 09:35:01,310 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,311 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:35:01,311 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:35:01,312 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:35:01,312 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:35:01,312 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:35:01,312 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:35:01,312 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:35:01,312 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,312 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:35:01,312 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:35:01,313 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:35:01,313 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#143620863] 09:35:01,324 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#-271601632] 09:35:01,324 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#1948088507] 09:35:01,326 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 09:35:01,326 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,327 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:35:01,328 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:35:01,328 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:35:01,328 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,329 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:35:01,329 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 09:35:01,330 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:35:01,330 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 09:35:01,330 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,331 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:35:01,331 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-2086461929] 09:35:01,342 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#555380002] 09:35:01,342 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#758111245] 09:35:01,344 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,344 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#1383682305] 09:35:01,355 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#-1404152121] 09:35:01,355 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#-491660695] 09:35:01,357 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 09:35:01,358 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,358 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:35:01,359 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:35:01,359 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:35:01,359 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,360 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:35:01,360 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:35:01,361 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:35:01,361 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:35:01,361 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,362 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:35:01,362 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:35:01,363 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:35:01,363 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,363 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:35:01,364 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#458400854] 09:35:01,374 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-592547015] 09:35:01,375 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#674654360] 09:35:01,377 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 09:35:01,377 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,378 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 09:35:01,378 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:35:01,378 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 09:35:01,378 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:35:01,379 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:35:01,379 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:35:01,379 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,379 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:35:01,379 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:35:01,379 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 09:35:01,380 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#-1715533982] 09:35:01,390 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#-1907916132] 09:35:01,391 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#2136075317] 09:35:01,393 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 09:35:01,393 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,395 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:35:01,396 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 09:35:01,396 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 09:35:01,398 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 09:35:01,399 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-2114141834] 09:35:01,409 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#-759640045] 09:35:01,410 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-2062501096] 09:35:01,415 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 09:35:01,415 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,416 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:35:01,417 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:35:01,417 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:35:01,417 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:35:01,417 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:35:01,417 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:35:01,417 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:35:01,418 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,418 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:35:01,418 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:35:01,418 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:35:01,419 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#-745809725] 09:35:01,429 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#-1890628303] 09:35:01,430 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#-679938431] 09:35:01,432 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:35:01,432 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,433 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:35:01,434 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:35:01,434 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:35:01,435 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,435 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:35:01,435 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#-1573180056] 09:35:01,446 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#2044516390] 09:35:01,446 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-92707352] 09:35:01,448 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [07/01/2025 09:35:01.449] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@4b2f3e59 [INFO] [pekkoDeadLetter][07/01/2025 09:35:01.449] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:35:01,449 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:35:01,450 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 09:35:01,450 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:35:01,450 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:35:01,452 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12122399556332441259/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 09:35:01,452 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 09:35:01,452 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:35:01,452 AM [test-pekko.actor.default-dispatcher-5] [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 09:35:01,456 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:35:01,456 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 09:35:01,456 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1845a518 09:35:01,457 AM [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]]} 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 09:35:01,457 AM [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} 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 09:35:01,457 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 09:35:01,458 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 09:35:01,458 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:35:01,459 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:35:01,459 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:35:01,459 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 09:35:01,459 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 09:35:01,459 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 09:35:01,459 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 09:35:01,459 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 09:35:01,459 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 09:35:01,459 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d787296] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12122399556332441259/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863ABC5-1B5F03DB.tmp [WARN] [07/01/2025 09:35:01.459] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 09:35:01.459] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:35:01,459 AM [test-pekko.actor.default-dispatcher-15] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:35:01,462 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d787296] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12122399556332441259/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863ABC5-1B5F03DB.v1 09:35:01,462 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d787296] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12122399556332441259/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:35:01,462 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d787296] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12122399556332441259/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863ABC5-1B5F03DB.v1 09:35:01,462 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d787296] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-01T09:35:01.459211739Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12122399556332441259/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863ABC5-1B5F03DB.v1, size=701, entryCompress=NONE, stateCompress=NONE} 09:35:01,462 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d787296] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:35:01,462 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 09:35:01,462 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-07-01T09:35:01.459211739Z 09:35:01,462 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 09:35:01,462 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 09:35:01,463 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 09:35:01,609 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12122399556332441259/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:35:01,609 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12122399556332441259/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863ABC5-1B5F03DB.v1 09:35:01,610 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-01T09:35:01.459211739Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest12122399556332441259/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863ABC5-1B5F03DB.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 09:35:01,612 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#-1910698767] 09:35:01,623 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#1781496668] 09:35:01,623 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#1976670889] 09:35:01,623 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 09:35:01,624 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:35:01,624 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:35:01,628 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 09:35:01,628 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,629 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:35:01,630 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 09:35:01,630 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 09:35:01,631 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,631 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 09:35:01,631 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#751650819] 09:35:01,642 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#469213193] 09:35:01,642 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#193980797] 09:35:01,645 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 09:35:01,645 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,646 AM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 09:35:01,647 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 09:35:01,648 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 09:35:01,648 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 09:35:01,648 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 09:35:01,648 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#-868234096] 09:35:01,659 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#1229887387] 09:35:01,660 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#-5480647] 09:35:01,662 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 09:35:01,662 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,663 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 09:35:01,664 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 09:35:01,664 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:35:01,664 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:35:01,664 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:35:01,664 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 09:35:01,664 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:35:01,664 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 09:35:01,664 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:35:01,664 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 09:35:01,664 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 09:35:01,665 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,665 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:35:01,665 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 09:35:01,665 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:35:01,665 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:35:01,665 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:35:01,665 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:35:01,666 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:35:01,666 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:35:01,666 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:35:01,666 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:35:01,667 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#-1213170162] 09:35:01,677 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#1706590571] 09:35:01,678 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#833165911] 09:35:01,680 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 09:35:01,680 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,681 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 09:35:01,681 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 09:35:01,682 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#1406907227] 09:35:01,693 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#108921402] 09:35:01,693 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#2105995865] 09:35:01,695 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 09:35:01,696 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,696 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:35:01,697 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:35:01,697 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:35:01,697 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:35:01,698 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 09:35:01,699 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 09:35:01,699 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 09:35:01,699 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:35:01,700 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:35:01,700 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 09:35:01,700 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:35:01,700 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:35:01,700 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,700 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 09:35:01,700 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:35:01,701 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:35:01,701 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:35:01,701 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#-170912415] 09:35:01,712 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#550863323] 09:35:01,712 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#-1069126111] 09:35:01,715 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 09:35:01,715 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,716 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:35:01,717 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:35:01,717 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:35:01,718 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,718 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:35:01,718 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:35:01,719 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:35:01,719 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:35:01,720 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,720 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:35:01,720 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:35:01,721 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:35:01,721 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 09:35:01,721 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:01,721 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:35:01,721 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#1403433240] 09:35:01,732 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#-1809114514] 09:35:01,732 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#-890964646] 09:35:01,735 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 09:35:01,736 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,936 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:35:01,936 AM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.19:17355, Removed) 09:35:01,936 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 09:35:01,936 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:35:01,936 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:35:01,936 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:35:01,936 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-887911216] 09:35:01,948 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#1483311493] 09:35:01,948 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#56165869] 09:35:01,952 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:01,952 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 09:35:02,153 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:35:02,153 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#768862916] 09:35:02,165 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#-1569968991] 09:35:02,165 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#-1591657667] 09:35:02,168 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 09:35:02,168 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:02,171 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 09:35:02,171 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 09:35:02,172 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#757436526] 09:35:02,183 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#-923631306] 09:35:02,183 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#1043428739] 09:35:02,185 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 09:35:02,186 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:02,187 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 09:35:02,187 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:35:02,187 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 09:35:02,187 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:35:02,187 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:35:02,187 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 09:35:02,187 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:35:02,188 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:02,188 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 09:35:02,188 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:35:02,188 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:35:02,188 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:35:02,188 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:35:02,188 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:35:02,188 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:35:02,188 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:35:02,188 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:35:02,189 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:35:02,189 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 09:35:02,189 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 09:35:02,190 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#-782935160] 09:35:02,200 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#1442495272] 09:35:02,200 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-413866300] 09:35:02,202 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 09:35:02,202 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:02,203 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:35:02,203 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:35:02,203 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:35:02,203 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:35:02,204 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 09:35:02,205 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:02,205 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#922589225] 09:35:02,216 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#1326687873] 09:35:02,216 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#-186532916] 09:35:02,219 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 09:35:02,219 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:02,220 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 09:35:02,220 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 09:35:02,220 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:35:02,220 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:35:02,221 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:35:02,221 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#2049009360] 09:35:02,232 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#-106816450] 09:35:02,232 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#-606827405] 09:35:02,234 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [07/01/2025 09:35:02.235] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@362a5d8c [INFO] [pekkoDeadLetter][07/01/2025 09:35:02.235] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:35:02,236 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:35:02,236 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:35:02,236 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:35:02,236 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:35:02,238 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16022404688283712756/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 09:35:02,238 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 09:35:02,238 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:35:02,238 AM [test-pekko.actor.default-dispatcher-8] [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 09:35:02,241 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:35:02,241 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:35:02,241 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3ed148a8 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [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]]} 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [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} 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 09:35:02,242 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 09:35:02,243 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:35:02,243 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:35:02,243 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:35:02,243 AM [test-pekko.actor.default-dispatcher-15] [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] 09:35:02,243 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 09:35:02,243 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 09:35:02,243 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:35:02,243 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 09:35:02,243 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 09:35:02,244 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d502893] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16022404688283712756/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863ABC6-0E882F62.tmp [WARN] [07/01/2025 09:35:02.244] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 09:35:02.244] [test-pekko.actor.default-dispatcher-15] [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'. 09:35:02,244 AM [test-pekko.actor.default-dispatcher-15] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:35:02,246 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d502893] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16022404688283712756/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863ABC6-0E882F62.v1 09:35:02,246 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d502893] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16022404688283712756/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:35:02,247 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d502893] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16022404688283712756/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863ABC6-0E882F62.v1 09:35:02,247 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d502893] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-01T09:35:02.243806050Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16022404688283712756/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863ABC6-0E882F62.v1, size=573, entryCompress=NONE, stateCompress=NONE} 09:35:02,247 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d502893] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:35:02,247 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:35:02,247 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-07-01T09:35:02.243806050Z 09:35:02,247 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 09:35:02,247 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 09:35:02,247 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 09:35:02,344 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16022404688283712756/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:35:02,344 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16022404688283712756/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863ABC6-0E882F62.v1 09:35:02,344 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-01T09:35:02.243806050Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16022404688283712756/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863ABC6-0E882F62.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:35:02,346 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:35:02,357 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:35:02,357 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/01/2025 09:35:02.358] [test-pekko.actor.default-dispatcher-8] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6faf994a [INFO] [pekkoDeadLetter][07/01/2025 09:35:02.358] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 09:35:02,359 AM [test-pekko.actor.default-dispatcher-8] [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'. 09:35:02,359 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:35:02,359 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:35:02,359 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:35:02,361 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:35:02,361 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16022404688283712756/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:35:02,361 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16022404688283712756/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863ABC6-0E882F62.v1 09:35:02,361 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-01T09:35:02.243806050Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16022404688283712756/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863ABC6-0E882F62.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:35:02,361 AM [test-pekko.actor.default-dispatcher-8] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:35:02,362 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-07-01T09:35:02.243806050Z 09:35:02,362 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:35:02,362 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 130.0 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 09:35:02,362 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 09:35:02,362 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 09:35:02,362 AM [test-pekko.actor.default-dispatcher-8] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 439.3 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 09:35:02,362 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 09:35:02,362 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:35:02,362 AM [test-pekko.actor.default-dispatcher-8] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7b930647 09:35:02,458 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#2037635343] 09:35:02,469 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#2083560253] 09:35:02,470 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-1233466541] 09:35:02,470 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:35:02,470 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:35:02,470 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:35:02,473 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 09:35:02,473 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:02,774 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:35:02,904 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:35:02,904 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 09:35:03,154 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 09:35:03,354 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 09:35:03,355 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#730170276] 09:35:03,366 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#1342705390] 09:35:03,366 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#-1199305188] 09:35:03,369 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:03,370 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:35:03,370 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 09:35:03,370 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:35:03,370 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:35:03,371 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:35:03,371 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-592762061] 09:35:03,382 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-1773971401] 09:35:03,382 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#1171246014] 09:35:03,385 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:03,387 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 09:35:03,388 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 09:35:03,388 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#1182059139] 09:35:03,399 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#-2018987396] 09:35:03,399 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#1314358904] 09:35:03,401 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:03,403 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 09:35:03,403 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:35:03,403 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 09:35:03,403 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 09:35:03,403 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:35:03,403 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 09:35:03,404 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:03,404 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 09:35:03,404 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 09:35:03,404 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:35:03,404 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:35:03,404 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 09:35:03,405 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#1902441991] 09:35:03,415 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#1115446465] 09:35:03,415 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-435786229] 09:35:03,418 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:03,420 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 09:35:03,420 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 09:35:03,421 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#-504243616] 09:35:03,431 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-1753773194] 09:35:03,431 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#-2144263584] 09:35:03,433 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:03,434 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 09:35:03,434 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 09:35:03,435 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:35:03,435 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 09:35:03,435 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 09:35:03,436 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 09:35:03,436 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 09:35:03,436 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 09:35:03,436 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 09:35:03,437 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 09:35:03,437 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 09:35:03,438 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:35:03,438 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#776217509] 09:35:03,449 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#-1024705378] 09:35:03,449 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#423999129] 09:35:03,451 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:03,452 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:35:03,452 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:35:03,452 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:03,452 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 09:35:03,452 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:35:03,452 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:35:03,452 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:35:03,452 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:35:03,453 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#859117921] 09:35:03,464 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#-1029171707] 09:35:03,464 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-1821397556] 09:35:03,467 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:03,468 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 09:35:03,469 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#1806105088] 09:35:03,480 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-97401526] 09:35:03,480 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#1521325916] 09:35:03,483 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:35:03,484 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 09:35:03,485 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:35:03,485 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#1838064239] 09:35:03,496 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#-1873179881] 09:35:03,496 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#-2102697316] [INFO] [07/01/2025 09:35:03.497] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 09:35:03,497 AM [test-pekko.actor.default-dispatcher-8] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/01/2025 09:35:03.498] [test-pekko.actor.default-dispatcher-8] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.19:17355) [INFO] [pekkoDeadLetter][07/01/2025 09:35:03.498] [test-pekko.actor.default-dispatcher-15] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#684903340] 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'. 09:35:03,498 AM [test-pekko.actor.default-dispatcher-8] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#684903340] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [07/01/2025 09:35:03.498] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.19:17355] - Exiting completed [INFO] [07/01/2025 09:35:03.498] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.19:17355] - Shutting down... 09:35:03,499 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.19:17355] - Exiting completed 09:35:03,499 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.19:17355] - Shutting down... 09:35:03,499 AM [test-pekko.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.19:17355] - Successfully shut down [INFO] [07/01/2025 09:35:03.499] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.19:17355] - Successfully shut down [INFO] [07/01/2025 09:35:03.500] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.19:17355/system/remoting-terminator] Shutting down remote daemon. 09:35:03,500 AM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 09:35:03,500 AM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/01/2025 09:35:03.500] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.19:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/01/2025 09:35:03.502] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.19:17355/system/remoting-terminator] Remoting shut down. 09:35:03,502 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/01/2025 09:35:03.503] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger