[DEBUG] [06/27/2025 19:46:23.977] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 07:46:23,978 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/27/2025 19:46:23.978] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/27/2025 19:46:23.978] [main] [EventStream(pekko://test)] Default Loggers started 07:46:23,988 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.248:17355] with UID [1014163505305971255] 07:46:23,988 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.248:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/27/2025 19:46:23.987] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.248:17355] with UID [1014163505305971255] [INFO] [06/27/2025 19:46:23.988] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.248:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/27/2025 19:46:23.990] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.248:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 07:46:23,991 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.248:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/27/2025 19:46:23.991] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.248:17355] - Started up successfully 07:46:23,991 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.248:17355] - Started up successfully [INFO] [06/27/2025 19:46:23.991] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.248:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/27/2025 19:46:23.991] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.248:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:46:23,992 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.248:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 07:46:23,992 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.248:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:46:24,4 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 07:46:24,4 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,92 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:46:24,92 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:46:24,92 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:46:24,93 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:46:24,93 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:46:24,93 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 07:46:24,93 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:46:24,93 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:46:24,95 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 07:46:24,96 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-1643564205] 07:46:24,107 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#814878812] 07:46:24,107 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#-397700140] 07:46:24,109 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 07:46:24,110 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,112 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 07:46:24,112 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 07:46:24,113 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,113 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:46:24,114 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#464523741] 07:46:24,124 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#-410452005] 07:46:24,124 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#126406315] 07:46:24,126 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 07:46:24,126 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,127 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:46:24,127 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:46:24,127 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:46:24,127 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:46:24,128 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:46:24,128 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:46:24,128 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:46:24,129 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:46:24,130 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:46:24,131 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:46:24,131 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:46:24,132 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,132 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 07:46:24,132 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#1585210779] 07:46:24,143 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#1138389229] 07:46:24,143 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-604814267] 07:46:24,145 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,146 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:46:24,147 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#1027330012] 07:46:24,157 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-753917151] 07:46:24,158 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#157561243] 07:46:24,159 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:46:24,159 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,160 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:46:24,160 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:46:24,161 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:24,161 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:46:24,161 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:46:24,161 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:46:24,161 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:46:24,161 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,162 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:24,162 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:46:24,163 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:46:24,163 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#1828174903] 07:46:24,174 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#148349454] 07:46:24,174 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-602207035] 07:46:24,176 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 07:46:24,176 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,177 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 07:46:24,177 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:24,177 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:46:24,177 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:46:24,177 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:46:24,177 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 07:46:24,177 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,177 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:46:24,177 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:46:24,178 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:46:24,178 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:46:24,178 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:46:24,178 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:46:24,178 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 07:46:24,179 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:46:24,179 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:46:24,179 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:46:24,179 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 07:46:24,179 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:46:24,179 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:46:24,179 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,179 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 07:46:24,179 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:46:24,179 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:46:24,179 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:46:24,180 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#-1406243202] 07:46:24,190 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-1779848340] 07:46:24,190 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#472083620] 07:46:24,193 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 07:46:24,193 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,194 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:46:24,195 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:46:24,195 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,195 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 07:46:24,196 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-1081075224] 07:46:24,206 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#2123138001] 07:46:24,207 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#-122276455] 07:46:24,209 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-970058336] 07:46:24,223 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#576249957] 07:46:24,223 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#-354017071] 07:46:24,225 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 07:46:24,226 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,226 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:46:24,226 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:46:24,227 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:46:24,227 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:24,227 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:46:24,227 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:46:24,227 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:46:24,227 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:46:24,228 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,228 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:24,228 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 07:46:24,228 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 07:46:24,228 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 07:46:24,228 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 07:46:24,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#752603050] 07:46:24,239 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#1261189610] 07:46:24,239 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#-828313183] 07:46:24,241 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/27/2025 19:46:24.244] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1f82a14e [INFO] [pekkoDeadLetter][06/27/2025 19:46:24.244] [test-pekko.actor.default-dispatcher-11] [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'. 07:46:24,246 PM [test-pekko.actor.default-dispatcher-6] [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'. 07:46:24,247 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 07:46:24,247 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:46:24,247 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:46:24,250 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7648582410614109748/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 07:46:24,250 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:46:24,250 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:46:24,250 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 07:46:24,255 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:46:24,255 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:46:24,255 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@70bd3b4d 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [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]]} 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [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} 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 07:46:24,256 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 07:46:24,257 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:46:24,257 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:46:24,257 PM [test-pekko.actor.default-dispatcher-11] [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] 07:46:24,257 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 07:46:24,257 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 07:46:24,257 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 07:46:24,257 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 07:46:24,257 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 07:46:24,257 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d379434] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7648582410614109748/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EF510-0F569EAE.tmp [WARN] [06/27/2025 19:46:24.257] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/27/2025 19:46:24.257] [test-pekko.actor.default-dispatcher-11] [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'. 07:46:24,257 PM [test-pekko.actor.default-dispatcher-11] [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'. 07:46:24,261 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d379434] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7648582410614109748/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EF510-0F569EAE.v1 07:46:24,262 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d379434] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7648582410614109748/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:46:24,262 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d379434] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7648582410614109748/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EF510-0F569EAE.v1 07:46:24,262 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d379434] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-27T19:46:24.257334958Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7648582410614109748/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EF510-0F569EAE.v1, size=555, entryCompress=NONE, stateCompress=NONE} 07:46:24,262 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d379434] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:46:24,262 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:46:24,262 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-27T19:46:24.257334958Z 07:46:24,262 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 07:46:24,262 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 07:46:24,262 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 07:46:24,408 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7648582410614109748/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:46:24,408 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7648582410614109748/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EF510-0F569EAE.v1 07:46:24,408 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-27T19:46:24.257334958Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7648582410614109748/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EF510-0F569EAE.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 07:46:24,410 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#1936585049] 07:46:24,421 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-160348477] 07:46:24,422 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#9230593] 07:46:24,422 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 07:46:24,422 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:46:24,422 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:46:24,425 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,426 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#1741036009] 07:46:24,436 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#-20582360] 07:46:24,437 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#1453336919] 07:46:24,439 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 07:46:24,439 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,441 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 07:46:24,441 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:46:24,442 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#1072330615] 07:46:24,453 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#396129462] 07:46:24,453 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#1515141870] 07:46:24,455 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 07:46:24,455 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,456 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:46:24,457 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:46:24,457 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:24,457 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:46:24,457 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:46:24,457 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:46:24,458 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:46:24,458 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,458 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:24,458 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:46:24,458 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:46:24,459 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#1518595503] 07:46:24,469 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#1516018447] 07:46:24,470 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#-342225184] 07:46:24,472 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 07:46:24,472 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,472 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:46:24,473 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:46:24,473 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:46:24,474 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,474 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:24,474 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 07:46:24,475 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:46:24,475 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 07:46:24,476 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,476 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:46:24,476 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-1766160790] 07:46:24,487 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#1032840423] 07:46:24,487 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#-2066723980] 07:46:24,489 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,489 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#1277332066] 07:46:24,500 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#-1781203625] 07:46:24,500 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#-771005266] 07:46:24,503 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 07:46:24,503 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,503 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:46:24,504 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:46:24,504 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:46:24,505 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,505 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:24,505 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:46:24,506 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:46:24,506 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:46:24,507 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,507 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:46:24,508 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:46:24,508 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:46:24,508 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,509 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:46:24,509 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-621933168] 07:46:24,519 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-1892895520] 07:46:24,519 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#1531033096] 07:46:24,521 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 07:46:24,521 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,523 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 07:46:24,523 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:24,523 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 07:46:24,523 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:46:24,523 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:46:24,523 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:46:24,523 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,524 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:46:24,524 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:46:24,524 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 07:46:24,524 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#1052099477] 07:46:24,535 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#-24433712] 07:46:24,535 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-595583975] 07:46:24,536 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 07:46:24,536 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,538 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:46:24,538 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 07:46:24,538 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 07:46:24,540 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 07:46:24,540 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#52825203] 07:46:24,551 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#-791288016] 07:46:24,551 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-77813351] 07:46:24,555 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 07:46:24,556 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,556 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:46:24,557 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:46:24,557 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:24,557 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:46:24,557 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:46:24,557 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:46:24,557 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:46:24,557 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,558 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:24,558 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:46:24,558 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:46:24,558 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#-1177678813] 07:46:24,569 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#1232861455] 07:46:24,569 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#-2020912330] 07:46:24,572 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:46:24,572 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,573 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:46:24,574 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:46:24,574 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:46:24,575 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,575 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:24,576 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#1069772253] 07:46:24,576 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-429909959] 07:46:24,577 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-487787198] 07:46:24,579 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 07:46:24,580 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 07:46:24,580 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:46:24,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor [WARN] [06/27/2025 19:46:24.581] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@4c0b6c7 [INFO] [pekkoDeadLetter][06/27/2025 19:46:24.581] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:46:24,582 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:46:24,582 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13488295893638096580/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 07:46:24,583 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 07:46:24,583 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:46:24,583 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 07:46:24,585 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:46:24,585 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 07:46:24,585 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@425c2458 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 07:46:24,586 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 07:46:24,587 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:46:24,587 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:46:24,587 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:46:24,587 PM [test-pekko.actor.default-dispatcher-12] [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] 07:46:24,587 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 07:46:24,587 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 07:46:24,587 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 07:46:24,587 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 07:46:24,587 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 07:46:24,587 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469689] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13488295893638096580/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EF510-23087691.tmp [WARN] [06/27/2025 19:46:24.588] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/27/2025 19:46:24.588] [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'. 07:46:24,588 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:46:24,594 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469689] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13488295893638096580/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EF510-23087691.v1 07:46:24,595 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469689] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13488295893638096580/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EF510-23087691.v1 07:46:24,595 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469689] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13488295893638096580/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:46:24,595 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469689] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-27T19:46:24.587757201Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13488295893638096580/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EF510-23087691.v1, size=701, entryCompress=NONE, stateCompress=NONE} 07:46:24,595 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d469689] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:46:24,595 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:46:24,595 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-27T19:46:24.587757201Z 07:46:24,595 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 07:46:24,596 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 07:46:24,596 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 07:46:24,737 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13488295893638096580/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EF510-23087691.v1 07:46:24,738 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13488295893638096580/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:46:24,738 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-27T19:46:24.587757201Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13488295893638096580/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EF510-23087691.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 07:46:24,739 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#1775015717] 07:46:24,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#1021663548] 07:46:24,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#1176697611] 07:46:24,750 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 07:46:24,751 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:46:24,751 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:46:24,753 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 07:46:24,754 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,754 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:46:24,755 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 07:46:24,755 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 07:46:24,756 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,756 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 07:46:24,756 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#1304763462] 07:46:24,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#-1110272335] 07:46:24,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#-1749364042] 07:46:24,769 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 07:46:24,769 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,770 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:46:24,771 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 07:46:24,771 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 07:46:24,771 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 07:46:24,772 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 07:46:24,772 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#534286792] 07:46:24,783 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#-1325937084] 07:46:24,783 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#559354917] 07:46:24,785 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 07:46:24,785 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,786 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 07:46:24,786 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 07:46:24,787 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:46:24,787 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:46:24,787 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:46:24,787 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 07:46:24,787 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:46:24,787 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 07:46:24,787 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:46:24,787 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 07:46:24,787 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 07:46:24,787 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,787 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:46:24,787 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 07:46:24,788 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:46:24,788 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:46:24,788 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:46:24,788 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:46:24,788 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:46:24,788 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:46:24,788 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:46:24,788 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:46:24,789 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#1782657059] 07:46:24,799 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#518825648] 07:46:24,799 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#-1871195882] 07:46:24,801 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 07:46:24,801 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,802 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 07:46:24,802 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 07:46:24,802 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#-1558207995] 07:46:24,813 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#1233371836] 07:46:24,813 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#1873386500] 07:46:24,815 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 07:46:24,816 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,816 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:46:24,816 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:46:24,816 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:46:24,817 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:46:24,817 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 07:46:24,818 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 07:46:24,818 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 07:46:24,818 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:24,818 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:46:24,818 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 07:46:24,818 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:46:24,818 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:46:24,818 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,819 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 07:46:24,819 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:46:24,819 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:46:24,819 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:46:24,819 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#1291025077] 07:46:24,830 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#-1219793359] 07:46:24,830 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#729372914] 07:46:24,833 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 07:46:24,833 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:24,833 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:46:24,834 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:46:24,834 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:46:24,834 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,835 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:46:24,835 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:46:24,835 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:46:24,836 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:46:24,836 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,836 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:46:24,836 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:46:24,837 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:46:24,837 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 07:46:24,838 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:24,838 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:46:24,838 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#340368661] 07:46:24,849 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#-1176156199] 07:46:24,849 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#-600218294] 07:46:24,851 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 07:46:24,851 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:25,52 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:46:25,52 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.248:17355, Removed) 07:46:25,52 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 07:46:25,52 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:46:25,52 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:46:25,52 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:46:25,52 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-182581618] 07:46:25,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#1506505550] 07:46:25,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#1251828335] 07:46:25,56 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:25,56 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 07:46:25,257 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:46:25,257 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#1493431111] 07:46:25,269 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#-1444064927] 07:46:25,269 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#198395947] 07:46:25,272 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 07:46:25,272 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:25,274 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 07:46:25,275 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 07:46:25,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#-284456489] 07:46:25,286 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#-2124250111] 07:46:25,286 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#-234638679] 07:46:25,289 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 07:46:25,289 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:25,290 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 07:46:25,290 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:46:25,290 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 07:46:25,290 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:46:25,290 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:46:25,290 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 07:46:25,290 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:46:25,291 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:25,291 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 07:46:25,291 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:46:25,291 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:46:25,291 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:46:25,291 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:46:25,291 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:46:25,291 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:46:25,291 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:46:25,292 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:46:25,292 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:46:25,292 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 07:46:25,292 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 07:46:25,293 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#-143705846] 07:46:25,304 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#1738707740] 07:46:25,304 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#1624165514] 07:46:25,306 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 07:46:25,306 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:25,307 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:46:25,307 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:46:25,307 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:46:25,307 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:46:25,308 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 07:46:25,309 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:25,309 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#914225624] 07:46:25,320 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#641763916] 07:46:25,320 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#-1011001565] 07:46:25,321 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 07:46:25,321 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:25,322 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 07:46:25,322 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 07:46:25,322 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:46:25,322 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:46:25,323 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:46:25,323 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#2014979165] 07:46:25,333 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#-1132081361] 07:46:25,334 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#988669299] 07:46:25,335 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/27/2025 19:46:25.336] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@5645d36a [INFO] [pekkoDeadLetter][06/27/2025 19:46:25.336] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 07:46:25,337 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:46:25,337 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:46:25,337 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:46:25,337 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:46:25,339 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2881101631684244322/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 07:46:25,339 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:46:25,339 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:46:25,339 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 07:46:25,343 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:46:25,343 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:46:25,343 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@392598e3 07:46:25,344 PM [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]]} 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 07:46:25,344 PM [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} 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 07:46:25,344 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 07:46:25,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:46:25,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:46:25,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:46:25,345 PM [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] 07:46:25,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 07:46:25,345 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 07:46:25,345 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:46:25,345 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 07:46:25,345 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 07:46:25,345 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d37249] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2881101631684244322/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EF511-1499EFE3.tmp [WARN] [06/27/2025 19:46:25.345] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 07:46:25,346 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][06/27/2025 19:46:25.346] [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'. 07:46:25,348 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d37249] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2881101631684244322/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EF511-1499EFE3.v1 07:46:25,348 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d37249] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2881101631684244322/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EF511-1499EFE3.v1 07:46:25,348 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d37249] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2881101631684244322/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:46:25,348 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d37249] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T19:46:25.345632739Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2881101631684244322/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EF511-1499EFE3.v1, size=573, entryCompress=NONE, stateCompress=NONE} 07:46:25,348 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d37249] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:46:25,349 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:46:25,349 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-27T19:46:25.345632739Z 07:46:25,349 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 07:46:25,349 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 07:46:25,349 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 07:46:25,496 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2881101631684244322/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EF511-1499EFE3.v1 07:46:25,496 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2881101631684244322/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:46:25,496 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T19:46:25.345632739Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2881101631684244322/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EF511-1499EFE3.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:46:25,498 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:46:25,509 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:46:25,509 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/27/2025 19:46:25.510] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6f38d404 [INFO] [pekkoDeadLetter][06/27/2025 19:46:25.510] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:46:25,510 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:46:25,510 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:46:25,511 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:46:25,511 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:46:25,512 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:46:25,512 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2881101631684244322/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EF511-1499EFE3.v1 07:46:25,512 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2881101631684244322/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:46:25,512 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T19:46:25.345632739Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2881101631684244322/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EF511-1499EFE3.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:46:25,513 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:46:25,513 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-27T19:46:25.345632739Z 07:46:25,513 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:46:25,514 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 137.2 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 07:46:25,514 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 07:46:25,514 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 07:46:25,514 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 477.6 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 07:46:25,514 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 07:46:25,514 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:46:25,514 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@13c91a01 07:46:25,514 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#361673271] 07:46:25,525 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#-272381226] 07:46:25,525 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-1783664380] 07:46:25,526 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:46:25,526 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:46:25,526 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:46:25,529 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 07:46:25,529 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:25,830 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:46:25,960 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:46:25,960 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 07:46:26,210 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 07:46:26,411 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 07:46:26,411 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#1603911863] 07:46:26,422 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#491858792] 07:46:26,422 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#-646602384] 07:46:26,424 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:26,424 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:46:26,424 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 07:46:26,424 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:46:26,424 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:46:26,424 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:46:26,424 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-504273946] 07:46:26,435 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-715267059] 07:46:26,435 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#-2060911180] 07:46:26,437 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:26,438 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 07:46:26,438 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 07:46:26,438 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#885123736] 07:46:26,448 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#243063959] 07:46:26,449 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#1500472397] 07:46:26,450 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:26,451 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 07:46:26,451 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:46:26,451 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:46:26,451 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:46:26,451 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:46:26,451 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 07:46:26,451 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:26,451 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 07:46:26,451 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 07:46:26,451 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:46:26,451 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:46:26,451 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 07:46:26,451 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#1177138610] 07:46:26,462 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#961603847] 07:46:26,462 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#1969074237] 07:46:26,463 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:26,464 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 07:46:26,464 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 07:46:26,465 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#976953341] 07:46:26,475 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#700627872] 07:46:26,475 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#1960788525] 07:46:26,476 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:26,477 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:46:26,477 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 07:46:26,477 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:46:26,477 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 07:46:26,478 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 07:46:26,479 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 07:46:26,479 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 07:46:26,479 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 07:46:26,479 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 07:46:26,480 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 07:46:26,480 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 07:46:26,481 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:46:26,481 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#2074357911] 07:46:26,492 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#721740235] 07:46:26,492 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#703527031] 07:46:26,495 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:26,495 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:46:26,495 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:46:26,496 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:26,496 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 07:46:26,496 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:46:26,496 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:46:26,496 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:46:26,496 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:46:26,497 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#-1913650883] 07:46:26,507 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#1268070047] 07:46:26,507 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#1968355964] 07:46:26,510 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:26,511 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 07:46:26,511 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#-863052998] 07:46:26,522 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#10666754] 07:46:26,522 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#656329921] 07:46:26,524 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:46:26,525 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 07:46:26,525 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:46:26,525 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#-955607843] 07:46:26,536 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#-788122087] 07:46:26,536 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#-1215901224] [INFO] [06/27/2025 19:46:26.537] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 07:46:26,537 PM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/27/2025 19:46:26.538] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.248:17355) [INFO] [pekkoDeadLetter][06/27/2025 19:46:26.538] [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#-1826929447] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [06/27/2025 19:46:26.539] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.248:17355] - Exiting completed [INFO] [06/27/2025 19:46:26.539] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.248:17355] - Shutting down... [INFO] [06/27/2025 19:46:26.539] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.248:17355] - Successfully shut down 07:46:26,538 PM [test-pekko.actor.default-dispatcher-15] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1826929447] 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'. 07:46:26,539 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.248:17355] - Exiting completed 07:46:26,539 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.248:17355] - Shutting down... 07:46:26,539 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.248:17355] - Successfully shut down 07:46:26,540 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 07:46:26,540 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/27/2025 19:46:26.540] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.248:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [06/27/2025 19:46:26.540] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.248:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 07:46:26,542 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [06/27/2025 19:46:26.542] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.248:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [06/27/2025 19:46:26.542] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger