[DEBUG] [10/15/2025 23:57:33.983] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 11:57:33,984 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [10/15/2025 23:57:33.984] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [10/15/2025 23:57:33.984] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [10/15/2025 23:57:34.001] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.100:17355] with UID [-8348163886446911729] 11:57:34,3 PM [test-pekko.actor.default-dispatcher-9] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.100:17355] with UID [-8348163886446911729] [INFO] [10/15/2025 23:57:34.003] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Starting up, Pekko version [1.0.3] ... 11:57:34,3 PM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [10/15/2025 23:57:34.006] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 11:57:34,6 PM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [10/15/2025 23:57:34.006] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Started up successfully 11:57:34,6 PM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Started up successfully [INFO] [10/15/2025 23:57:34.007] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [10/15/2025 23:57:34.007] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 11:57:34,7 PM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 11:57:34,7 PM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 11:57:34,21 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,124 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 11:57:34,125 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 11:57:34,125 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior337#-140042297] 11:57:34,127 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower338#-1686991716] 11:57:34,127 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader339#407692452] 11:57:34,131 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,133 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]]} 11:57:34,133 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:57:34,133 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 11:57:34,133 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 11:57:34,133 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 11:57:34,133 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 11:57:34,134 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} 11:57:34,134 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 11:57:34,134 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 11:57:34,135 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 11:57:34,135 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:57:34,135 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 11:57:34,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior340#-1843659930] 11:57:34,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower341#274021598] 11:57:34,137 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader342#2066154734] 11:57:34,139 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,140 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 11:57:34,141 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 11:57:34,141 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior343#-1951364684] 11:57:34,141 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower344#-1186947934] 11:57:34,141 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader345#1923370493] 11:57:34,144 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,144 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 11:57:34,145 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 11:57:34,145 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} 11:57:34,145 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 11:57:34,145 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 11:57:34,146 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 11:57:34,146 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 11:57:34,146 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. 11:57:34,146 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 11:57:34,147 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 11:57:34,147 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 11:57:34,148 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 11:57:34,148 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior346#1801889040] 11:57:34,149 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower347#-309035654] 11:57:34,149 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader348#338821171] 11:57:34,151 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,152 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:57:34,152 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:57:34,152 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,152 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 11:57:34,153 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 11:57:34,153 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 11:57:34,153 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 11:57:34,153 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 11:57:34,153 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior349#-1323265526] 11:57:34,154 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower350#-573253299] 11:57:34,154 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader351#366247196] 11:57:34,157 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,157 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 11:57:34,158 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior352#1232958076] 11:57:34,159 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower353#2030809953] 11:57:34,159 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader354#-399848894] 11:57:34,161 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,162 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 11:57:34,162 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 11:57:34,163 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior355#569896033] 11:57:34,163 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower356#-1330320175] 11:57:34,163 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader357#882118947] 11:57:34,167 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 11:57:34,167 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,170 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 11:57:34,171 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 11:57:34,171 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:57:34,171 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 11:57:34,172 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 11:57:34,172 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 11:57:34,172 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 11:57:34,173 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 11:57:34,176 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 11:57:34,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior358#-113248775] 11:57:34,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower359#-320847089] 11:57:34,188 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader360#1335597387] 11:57:34,191 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 11:57:34,192 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,193 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]]} 11:57:34,193 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 11:57:34,194 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} 11:57:34,194 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 11:57:34,194 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior361#-1355189267] 11:57:34,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower362#-508111764] 11:57:34,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader363#-1931595819] 11:57:34,210 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 11:57:34,210 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,210 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 11:57:34,211 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 11:57:34,211 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:57:34,211 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 11:57:34,212 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 11:57:34,212 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 11:57:34,212 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 11:57:34,213 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 11:57:34,213 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 11:57:34,214 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]]} 11:57:34,214 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 11:57:34,215 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} 11:57:34,215 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 11:57:34,216 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior364#-395906418] 11:57:34,216 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower365#416670034] 11:57:34,216 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader366#1555998690] 11:57:34,219 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,219 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 11:57:34,220 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior367#-211558475] 11:57:34,220 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower368#840132602] 11:57:34,220 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader369#-700041613] 11:57:34,222 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 11:57:34,222 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,223 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 11:57:34,223 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]]} 11:57:34,223 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:57:34,223 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 11:57:34,223 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 11:57:34,223 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 11:57:34,224 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 11:57:34,224 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} 11:57:34,224 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:57:34,224 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 11:57:34,224 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 11:57:34,224 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior370#-1710146137] 11:57:34,225 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower371#891455215] 11:57:34,225 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader372#1043929553] 11:57:34,228 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 11:57:34,228 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,228 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]]} 11:57:34,228 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:57:34,228 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 11:57:34,228 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:57:34,228 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 11:57:34,229 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 11:57:34,229 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} 11:57:34,229 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 11:57:34,229 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 11:57:34,229 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 11:57:34,229 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:57:34,229 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 11:57:34,229 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 11:57:34,230 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]]} 11:57:34,230 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 11:57:34,230 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 11:57:34,230 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:57:34,230 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 11:57:34,230 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 11:57:34,230 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 11:57:34,230 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} 11:57:34,230 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 11:57:34,230 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:57:34,230 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 11:57:34,230 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 11:57:34,231 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior373#-1153412629] 11:57:34,231 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower374#912781403] 11:57:34,231 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader375#-1333843197] 11:57:34,233 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 11:57:34,233 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,234 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 11:57:34,234 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 11:57:34,235 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} 11:57:34,235 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 11:57:34,235 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior376#1947120517] 11:57:34,235 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower377#-310130288] 11:57:34,236 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader378#1630946043] 11:57:34,238 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,240 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior379#200038947] 11:57:34,240 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower380#-929888362] 11:57:34,240 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader381#-2057759768] 11:57:34,242 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 11:57:34,243 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,243 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 11:57:34,243 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 11:57:34,244 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]]} 11:57:34,244 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:57:34,244 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 11:57:34,244 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 11:57:34,244 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 11:57:34,244 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 11:57:34,244 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} 11:57:34,244 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:57:34,244 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 11:57:34,244 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 11:57:34,244 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 11:57:34,244 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 11:57:34,244 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior382#-1615024097] 11:57:34,245 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower383#-1065616717] 11:57:34,245 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader384#2104134349] 11:57:34,247 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 11:57:34,251 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 11:57:34,251 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 11:57:34,251 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 11:57:34,251 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 11:57:34,251 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 11:57:34,251 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 11:57:34,251 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 11:57:34,251 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands [WARN] [10/15/2025 23:57:34.253] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1a1b4a28 [INFO] [pekkoDeadLetter][10/15/2025 23:57:34.252] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:57:34,253 PM [test-pekko.actor.default-dispatcher-15] [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'. 11:57:34,257 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 11:57:34,257 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 11:57:34,257 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 11:57:34,257 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 11:57:34,257 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:57:34,257 PM [test-pekko.actor.default-dispatcher-17] [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 11:57:34,260 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:57:34,260 PM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 11:57:34,260 PM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 11:57:34,260 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 11:57:34,260 PM [test-pekko.actor.default-dispatcher-17] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 11:57:34,260 PM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 11:57:34,260 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F034EE-0F8C1948.tmp 11:57:34,267 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F034EE-0F8C1948.v1 11:57:34,267 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 11:57:34,267 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 11:57:34,268 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 11:57:34,268 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F034EE-0F8C1948.v1 11:57:34,268 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-15T23:57:34.260839752Z, file=/tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F034EE-0F8C1948.v1, size=419, entryCompress=NONE, stateCompress=NONE} 11:57:34,268 PM [test-pekko.actor.default-dispatcher-17] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 7.625 ms, resetting timer for the next recovery snapshot 11:57:34,268 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 11:57:34,268 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 11:57:34,268 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 11:57:34,268 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 11:57:34,268 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 11:57:34,268 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 174.5 μs with journalIndex=1 11:57:34,268 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 11:57:34,269 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 11:57:34,370 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 11:57:34,370 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 11:57:34,370 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 11:57:34,370 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F034EE-0F8C1948.v1 11:57:34,370 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-15T23:57:34.260839752Z, file=/tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F034EE-0F8C1948.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [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]]} 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 11:57:34,371 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 119.8 ms 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [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} 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 11:57:34,371 PM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 11:57:34,372 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 11:57:34,372 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 11:57:34,372 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 11:57:34,372 PM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 11:57:34,372 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 11:57:34,374 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 11:57:34,375 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 11:57:34,374 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 3.166 ms 11:57:34,375 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 3.660 μs 11:57:34,375 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 11:57:34,375 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091f8f8@454ce26d} 11:57:34,375 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 11:57:34,376 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 11:57:34,376 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 11:57:34,376 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 11:57:34,376 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 1.388 ms 11:57:34,376 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 11:57:34,376 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 11:57:34,376 PM [test-pekko.actor.default-dispatcher-17] [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] 11:57:34,376 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 11:57:34,376 PM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 11:57:34,376 PM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 11:57:34,376 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 11:57:34,376 PM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 11:57:34,376 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091f8f8@454ce26d} 11:57:34,376 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d674182] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F034EE-167520E1.tmp 11:57:34,376 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.732 ms [WARN] [10/15/2025 23:57:34.377] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][10/15/2025 23:57:34.377] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:57:34,377 PM [test-pekko.actor.default-dispatcher-17] [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'. 11:57:34,379 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d674182] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F034EE-167520E1.v1 11:57:34,379 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d674182] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 11:57:34,379 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d674182] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F034EE-167520E1.v1 11:57:34,379 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d674182] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 11:57:34,379 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d674182] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 11:57:34,379 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d674182] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F034EE-0F8C1948.v1 11:57:34,379 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d674182] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-15T23:57:34.260839752Z, file=/tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F034EE-0F8C1948.v1, size=419, entryCompress=NONE, stateCompress=NONE} 11:57:34,379 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d674182] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-10-15T23:57:34.376774881Z, file=/tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F034EE-167520E1.v1, size=555, entryCompress=NONE, stateCompress=NONE} 11:57:34,379 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d674182] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 11:57:34,379 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 11:57:34,379 PM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-10-15T23:57:34.376774881Z 11:57:34,379 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 11:57:34,379 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 11:57:34,380 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.484 ms 11:57:34,380 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 11:57:34,380 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 11:57:34,380 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 11:57:34,380 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 179.0 μs 11:57:34,380 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 11:57:34,380 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 11:57:34,572 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 11:57:34,572 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F034EE-167520E1.v1 11:57:34,572 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 11:57:34,573 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 11:57:34,573 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-10-15T23:57:34.376774881Z, file=/tmp/junit-15461954430684017399/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F034EE-167520E1.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 11:57:34,575 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior385#712407128] 11:57:34,586 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower386#406744974] 11:57:34,587 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader387#721003037] 11:57:34,587 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 11:57:34,587 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#851,testCaptureSnapshotOnLastEntryInAppendEntries-writer-155]/waiting 11:57:34,587 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 207.4 ms 11:57:34,587 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 15.69 μs 11:57:34,587 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 11:57:34,588 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 11:57:34,588 PM [test-pekko.actor.default-dispatcher-17] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 11:57:34,588 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 11:57:34,588 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 11:57:34,592 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,593 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior388#-2054531486] 11:57:34,604 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower389#2055910828] 11:57:34,604 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader390#-1202864725] 11:57:34,611 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 11:57:34,611 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,613 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 11:57:34,613 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 11:57:34,614 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior391#-2061663981] 11:57:34,624 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower392#903410004] 11:57:34,624 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader393#1041785499] 11:57:34,627 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 11:57:34,628 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,628 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 11:57:34,629 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]]} 11:57:34,629 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:57:34,629 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 11:57:34,629 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 11:57:34,629 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 11:57:34,629 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 11:57:34,630 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:57:34,630 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:57:34,630 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 11:57:34,630 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 11:57:34,631 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior394#-964583916] 11:57:34,641 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower395#165409336] 11:57:34,641 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader396#-326649644] 11:57:34,645 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 11:57:34,645 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,645 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 11:57:34,646 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]]} 11:57:34,646 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 11:57:34,646 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} 11:57:34,647 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:57:34,647 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 11:57:34,647 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]]} 11:57:34,647 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 11:57:34,648 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} 11:57:34,648 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 11:57:34,648 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior397#-372285843] 11:57:34,659 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower398#-2062544743] 11:57:34,659 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader399#-1721921595] 11:57:34,664 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,664 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior400#1401938683] 11:57:34,675 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower401#839801811] 11:57:34,675 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader402#1369824174] 11:57:34,678 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 11:57:34,678 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,678 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 11:57:34,679 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]]} 11:57:34,679 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 11:57:34,679 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} 11:57:34,680 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:57:34,680 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 11:57:34,680 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]]} 11:57:34,680 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 11:57:34,681 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} 11:57:34,681 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 11:57:34,681 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]]} 11:57:34,681 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 11:57:34,682 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} 11:57:34,682 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 11:57:34,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior403#1469760381] 11:57:34,693 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower404#1585895400] 11:57:34,693 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader405#1085784281] 11:57:34,695 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 11:57:34,696 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,697 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]]} 11:57:34,697 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:57:34,697 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 11:57:34,697 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 11:57:34,697 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 11:57:34,697 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 11:57:34,698 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} 11:57:34,698 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 11:57:34,698 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 11:57:34,698 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 11:57:34,699 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior406#-536142831] 11:57:34,710 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower407#-1180396195] 11:57:34,710 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader408#-2013313656] 11:57:34,714 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 11:57:34,714 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,716 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 11:57:34,716 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader411 11:57:34,716 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader411 11:57:34,717 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:57:34,718 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior409#-649383144] 11:57:34,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower410#-485223037] 11:57:34,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader411#-273370826] 11:57:34,733 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 11:57:34,734 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,734 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 11:57:34,735 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]]} 11:57:34,736 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:57:34,736 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 11:57:34,736 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 11:57:34,736 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 11:57:34,736 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 11:57:34,736 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} 11:57:34,736 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:57:34,736 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 11:57:34,736 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 11:57:34,737 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior412#-287990844] 11:57:34,748 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower413#1106468922] 11:57:34,748 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader414#626801890] 11:57:34,753 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 11:57:34,753 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,754 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 11:57:34,754 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]]} 11:57:34,754 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 11:57:34,755 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} 11:57:34,755 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:57:34,756 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior415#36871507] 11:57:34,766 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower416#167008740] 11:57:34,766 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader417#6389338] 11:57:34,769 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [10/15/2025 23:57:34.770] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@51b1da7a 11:57:34,770 PM [test-pekko.actor.default-dispatcher-17] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 [INFO] [pekkoDeadLetter][10/15/2025 23:57:34.770] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:57:34,770 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 11:57:34,770 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 11:57:34,770 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:57:34,770 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 11:57:34,771 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 11:57:34,771 PM [test-pekko.actor.default-dispatcher-17] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 11:57:34,771 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 11:57:34,771 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 11:57:34,772 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 11:57:34,773 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 11:57:34,773 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 11:57:34,773 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 11:57:34,773 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 11:57:34,773 PM [test-pekko.actor.default-dispatcher-17] [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 11:57:34,776 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 11:57:34,776 PM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 11:57:34,776 PM [test-pekko.actor.default-dispatcher-17] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 11:57:34,776 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 11:57:34,776 PM [test-pekko.actor.default-dispatcher-17] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 11:57:34,776 PM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 11:57:34,776 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F034EE-2E470F5F.tmp 11:57:34,779 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F034EE-2E470F5F.v1 11:57:34,779 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 11:57:34,779 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 11:57:34,779 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 11:57:34,779 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F034EE-2E470F5F.v1 11:57:34,779 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-15T23:57:34.776408927Z, file=/tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F034EE-2E470F5F.v1, size=419, entryCompress=NONE, stateCompress=NONE} 11:57:34,779 PM [test-pekko.actor.default-dispatcher-17] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.628 ms, resetting timer for the next recovery snapshot 11:57:34,779 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 11:57:34,779 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 11:57:34,779 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 11:57:34,780 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 11:57:34,780 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 11:57:34,780 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 242.5 μs with journalIndex=1 11:57:34,780 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 11:57:34,780 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 11:57:34,780 PM [test-pekko.actor.default-dispatcher-17] [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]]} 11:57:34,780 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 11:57:34,780 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:57:34,780 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 11:57:34,780 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 11:57:34,781 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 9.655 ms 11:57:34,781 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 11:57:34,781 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 11:57:34,781 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 11:57:34,781 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 11:57:34,781 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 11:57:34,781 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 11:57:34,781 PM [test-pekko.actor.default-dispatcher-17] [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} 11:57:34,781 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 11:57:34,781 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 11:57:34,781 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 11:57:34,781 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 11:57:34,781 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 11:57:34,781 PM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 11:57:34,781 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 11:57:34,784 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 11:57:34,784 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 3.191 ms 11:57:34,784 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 2.420 μs 11:57:34,784 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 11:57:34,784 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 11:57:34,784 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091f8f8@69cedb95} 11:57:34,784 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 11:57:34,786 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 11:57:34,786 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 11:57:34,786 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 1.773 ms 11:57:34,786 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 11:57:34,786 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 11:57:34,786 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 11:57:34,786 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091f8f8@69cedb95} 11:57:34,786 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 11:57:34,786 PM [test-pekko.actor.default-dispatcher-17] [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] 11:57:34,786 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 11:57:34,786 PM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 11:57:34,786 PM [test-pekko.actor.default-dispatcher-17] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 11:57:34,786 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 11:57:34,786 PM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 11:57:34,786 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091f8f8@69cedb95} 11:57:34,786 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d536538] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F034EE-2EDF5D9D.tmp 11:57:34,786 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.941 ms [WARN] [10/15/2025 23:57:34.786] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][10/15/2025 23:57:34.786] [test-pekko.actor.default-dispatcher-17] [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'. 11:57:34,786 PM [test-pekko.actor.default-dispatcher-17] [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'. 11:57:34,788 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d536538] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F034EE-2EDF5D9D.v1 11:57:34,788 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d536538] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 11:57:34,788 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d536538] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 11:57:34,788 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d536538] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 11:57:34,788 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d536538] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F034EE-2EDF5D9D.v1 11:57:34,788 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d536538] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F034EE-2E470F5F.v1 11:57:34,788 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d536538] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-15T23:57:34.776408927Z, file=/tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F034EE-2E470F5F.v1, size=419, entryCompress=NONE, stateCompress=NONE} 11:57:34,788 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d536538] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-10-15T23:57:34.786390429Z, file=/tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F034EE-2EDF5D9D.v1, size=539, entryCompress=NONE, stateCompress=NONE} 11:57:34,788 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d536538] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 11:57:34,789 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 11:57:34,789 PM [test-pekko.actor.default-dispatcher-17] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-10-15T23:57:34.786390429Z 11:57:34,789 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 11:57:34,789 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 11:57:34,789 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.080 ms 11:57:34,789 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 11:57:34,789 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 11:57:34,789 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 11:57:34,789 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 124.7 μs 11:57:34,789 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 11:57:34,789 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 11:57:34,932 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 11:57:34,932 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 11:57:34,932 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 11:57:34,932 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F034EE-2EDF5D9D.v1 11:57:34,932 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-10-15T23:57:34.786390429Z, file=/tmp/junit-8300044944631549326/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F034EE-2EDF5D9D.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 11:57:34,934 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior418#-1447685227] 11:57:34,945 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower419#-1632526444] 11:57:34,945 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader420#-894468629] 11:57:34,945 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 11:57:34,946 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#859,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156]/waiting 11:57:34,946 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 156.8 ms 11:57:34,946 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 18.37 μs 11:57:34,946 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 11:57:34,946 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 11:57:34,946 PM [test-pekko.actor.default-dispatcher-17] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 11:57:34,946 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 11:57:34,946 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 11:57:34,950 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 11:57:34,951 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,951 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 11:57:34,952 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]]} 11:57:34,952 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 11:57:34,952 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} 11:57:34,953 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 11:57:34,953 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior421#89889675] 11:57:34,964 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower422#677274525] 11:57:34,964 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader423#-1360326942] 11:57:34,968 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 11:57:34,968 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,969 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 11:57:34,969 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 11:57:34,970 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 11:57:34,970 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 11:57:34,978 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 11:57:34,979 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#1610519751] 11:57:34,990 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-813220260] 11:57:34,990 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#948206339] 11:57:34,994 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 11:57:34,994 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:34,995 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 11:57:34,995 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]]} 11:57:34,995 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 11:57:34,995 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 11:57:34,995 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:57:34,995 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 11:57:34,995 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:57:34,995 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 11:57:34,995 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 11:57:34,995 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 11:57:34,996 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 11:57:34,996 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} 11:57:34,996 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 11:57:34,996 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 11:57:34,996 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 11:57:34,996 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:57:34,996 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 11:57:34,996 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 11:57:34,996 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 11:57:34,996 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 11:57:34,996 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 11:57:34,996 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 11:57:34,997 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#318725842] 11:57:35,8 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#790118237] 11:57:35,9 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#1528069233] 11:57:35,13 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 11:57:35,14 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:35,14 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 11:57:35,14 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 11:57:35,16 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#2101315474] 11:57:35,27 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#632991518] 11:57:35,27 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-1550390909] 11:57:35,31 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 11:57:35,31 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:35,32 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 11:57:35,32 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 11:57:35,32 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:57:35,32 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 11:57:35,33 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 11:57:35,34 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]]} 11:57:35,34 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 11:57:35,34 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:57:35,34 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:57:35,34 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 11:57:35,34 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 11:57:35,34 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 11:57:35,34 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} 11:57:35,34 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 11:57:35,34 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:57:35,35 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 11:57:35,35 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 11:57:35,35 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#705649443] 11:57:35,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-1938619575] 11:57:35,54 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#184259523] 11:57:35,57 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 11:57:35,57 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:35,57 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 11:57:35,58 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]]} 11:57:35,58 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 11:57:35,58 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} 11:57:35,58 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:57:35,58 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 11:57:35,59 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]]} 11:57:35,59 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 11:57:35,59 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} 11:57:35,59 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 11:57:35,59 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 11:57:35,59 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]]} 11:57:35,60 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 11:57:35,60 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} 11:57:35,60 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 11:57:35,60 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#652615988] 11:57:35,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#2019572976] 11:57:35,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#1615883173] 11:57:35,75 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 11:57:35,76 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:35,276 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:57:35,276 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.100:17355, Removed) 11:57:35,276 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 11:57:35,276 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 11:57:35,276 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 11:57:35,276 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:57:35,277 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#1811196934] 11:57:35,288 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-382126748] 11:57:35,288 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#268823420] 11:57:35,294 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:35,294 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 11:57:35,495 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:57:35,495 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-953721575] 11:57:35,507 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#415366898] 11:57:35,507 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#1131411896] 11:57:35,512 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 11:57:35,512 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:35,514 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 11:57:35,514 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 11:57:35,515 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-586063419] 11:57:35,516 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#1823453782] 11:57:35,516 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#734476521] 11:57:35,520 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 11:57:35,520 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:35,521 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]]} 11:57:35,522 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 11:57:35,522 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 11:57:35,522 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 11:57:35,522 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 11:57:35,522 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 11:57:35,522 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 11:57:35,522 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} 11:57:35,523 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 11:57:35,523 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 11:57:35,523 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 11:57:35,523 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:57:35,523 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 11:57:35,523 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 11:57:35,523 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 11:57:35,523 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 11:57:35,523 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 11:57:35,523 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 11:57:35,523 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 11:57:35,523 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 11:57:35,523 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#58057646] 11:57:35,524 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-637334127] 11:57:35,524 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#-1808867489] 11:57:35,526 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 11:57:35,526 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:35,526 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 11:57:35,526 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 11:57:35,526 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:57:35,527 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 11:57:35,527 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]]} 11:57:35,527 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} 11:57:35,528 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#1508054163] 11:57:35,528 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#1164627780] 11:57:35,528 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-934789261] 11:57:35,530 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 11:57:35,530 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:35,531 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 11:57:35,531 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]]} 11:57:35,531 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 11:57:35,532 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 11:57:35,532 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 11:57:35,532 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#-353059687] 11:57:35,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#-760877515] 11:57:35,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-610541706] 11:57:35,535 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 11:57:35,536 PM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 11:57:35,536 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 11:57:35,536 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 11:57:35,536 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 [WARN] [10/15/2025 23:57:35.536] [test-pekko.actor.default-dispatcher-17] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@5ec5f2e1 11:57:35,536 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 11:57:35,537 PM [test-pekko.actor.default-dispatcher-16] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 [INFO] [pekkoDeadLetter][10/15/2025 23:57:35.537] [test-pekko.actor.default-dispatcher-17] [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'. 11:57:35,537 PM [test-pekko.actor.default-dispatcher-16] [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'. 11:57:35,537 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 11:57:35,537 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 11:57:35,538 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 11:57:35,538 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 11:57:35,538 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 11:57:35,538 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 11:57:35,538 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:57:35,538 PM [test-pekko.actor.default-dispatcher-6] [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 11:57:35,543 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:57:35,543 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 11:57:35,543 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 11:57:35,543 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 11:57:35,543 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 11:57:35,543 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 11:57:35,544 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-206BF95C.tmp 11:57:35,546 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-206BF95C.v1 11:57:35,546 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 11:57:35,546 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 11:57:35,546 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 11:57:35,546 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-206BF95C.v1 11:57:35,546 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-15T23:57:35.543947100Z, file=/tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-206BF95C.v1, size=419, entryCompress=NONE, stateCompress=NONE} 11:57:35,546 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 2.806 ms, resetting timer for the next recovery snapshot 11:57:35,546 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 11:57:35,546 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 11:57:35,546 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 11:57:35,546 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 11:57:35,546 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 11:57:35,547 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 172.3 μs with journalIndex=1 11:57:35,547 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 11:57:35,547 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 11:57:35,648 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 11:57:35,649 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 11:57:35,649 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 11:57:35,649 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-206BF95C.v1 11:57:35,649 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-15T23:57:35.543947100Z, file=/tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-206BF95C.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [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]]} 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [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} 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 11:57:35,650 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 113.1 ms 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 11:57:35,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 11:57:35,651 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 11:57:35,651 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 11:57:35,651 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 11:57:35,655 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 11:57:35,655 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 11:57:35,655 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 5.289 ms 11:57:35,655 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 11:57:35,656 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.920 μs 11:57:35,656 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091f8f8@403f4867} 11:57:35,656 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 11:57:35,656 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091f8f8@403f4867} 11:57:35,656 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 11:57:35,656 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 11:57:35,656 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 11:57:35,656 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 127.2 μs 11:57:35,656 PM [test-pekko.actor.default-dispatcher-6] [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] 11:57:35,656 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 11:57:35,656 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 11:57:35,656 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 11:57:35,656 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 11:57:35,656 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 11:57:35,656 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 11:57:35,656 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c091f8f8@403f4867} 11:57:35,656 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d218536] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-271DEAEE.tmp 11:57:35,656 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.348 ms 11:57:35,656 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) [WARN] [10/15/2025 23:57:35.656] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 11:57:35,657 PM [test-pekko.actor.default-dispatcher-7] [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][10/15/2025 23:57:35.656] [test-pekko.actor.default-dispatcher-6] [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'. 11:57:35,658 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d218536] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-271DEAEE.v1 11:57:35,658 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d218536] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-271DEAEE.v1 11:57:35,658 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d218536] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 11:57:35,658 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d218536] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 11:57:35,658 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d218536] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 11:57:35,658 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d218536] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-206BF95C.v1 11:57:35,658 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d218536] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-15T23:57:35.543947100Z, file=/tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-206BF95C.v1, size=419, entryCompress=NONE, stateCompress=NONE} 11:57:35,658 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d218536] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-10-15T23:57:35.656272110Z, file=/tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-271DEAEE.v1, size=573, entryCompress=NONE, stateCompress=NONE} 11:57:35,658 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d218536] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 11:57:35,658 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 11:57:35,658 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-10-15T23:57:35.656272110Z 11:57:35,659 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 11:57:35,659 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 11:57:35,659 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.932 ms 11:57:35,659 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 11:57:35,659 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 11:57:35,659 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 11:57:35,659 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 114.1 μs 11:57:35,659 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 11:57:35,659 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 11:57:35,853 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-271DEAEE.v1 11:57:35,853 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 11:57:35,853 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 11:57:35,853 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 11:57:35,853 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-10-15T23:57:35.656272110Z, file=/tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-271DEAEE.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 11:57:35,854 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 11:57:35,865 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#862,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 11:57:35,865 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 206.3 ms 11:57:35,865 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 18.47 μs 11:57:35,865 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 11:57:35,865 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 11:57:35,865 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 11:57:35,865 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 11:57:35,865 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [10/15/2025 23:57:35.866] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@4be690b3 11:57:35,866 PM [test-pekko.actor.default-dispatcher-14] [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'. [INFO] [pekkoDeadLetter][10/15/2025 23:57:35.866] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:57:35,867 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 11:57:35,867 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 11:57:35,867 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 11:57:35,867 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 11:57:35,868 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 11:57:35,868 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 11:57:35,868 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 11:57:35,868 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 11:57:35,869 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:57:35,869 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-271DEAEE.v1 11:57:35,869 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 11:57:35,869 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 11:57:35,869 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 11:57:35,869 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-10-15T23:57:35.656272110Z, file=/tmp/junit-6249807023285525655/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F034EF-271DEAEE.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 11:57:35,869 PM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 11:57:35,870 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-10-15T23:57:35.656272110Z 11:57:35,870 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:57:35,870 PM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 177.6 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 11:57:35,870 PM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 326.0 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 11:57:35,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 11:57:35,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:57:35,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 11:57:35,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 11:57:35,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 11:57:35,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 11:57:35,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 11:57:35,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 146.3 μs with journalIndex=4 11:57:35,871 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 11:57:35,871 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#1830535682] 11:57:35,882 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#1437443971] 11:57:35,882 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#274367777] 11:57:35,883 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 11:57:35,883 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#867,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158]/waiting 11:57:35,883 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 15.21 ms 11:57:35,883 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 14.61 μs 11:57:35,883 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 11:57:35,883 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 11:57:35,883 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 11:57:35,883 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 11:57:35,883 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 11:57:35,888 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 11:57:35,889 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:36,189 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 11:57:36,319 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:57:36,320 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 11:57:36,570 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 11:57:36,865 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 294 < election timeout PT0.4S 11:57:36,865 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-1754731610] 11:57:36,867 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#-626395862] 11:57:36,867 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#1090990388] 11:57:36,871 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:57:36,872 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:57:36,872 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 11:57:36,872 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 11:57:36,872 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 11:57:36,872 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:57:36,873 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-174268797] 11:57:36,873 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#1405819875] 11:57:36,873 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#-1395969077] [INFO] [10/15/2025 23:57:36.874] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 11:57:36,875 PM [test-pekko.actor.default-dispatcher-16] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [10/15/2025 23:57:36.875] [test-pekko.actor.default-dispatcher-16] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.100:17355) 11:57:36,876 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Exiting completed 11:57:36,876 PM [test-pekko.actor.default-dispatcher-7] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1979452843] 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'. 11:57:36,876 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Shutting down... 11:57:36,876 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.100:17355] - Successfully shut down [INFO] [10/15/2025 23:57:36.876] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Exiting completed [INFO] [pekkoDeadLetter][10/15/2025 23:57:36.876] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1979452843] 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] [10/15/2025 23:57:36.876] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Shutting down... [INFO] [10/15/2025 23:57:36.876] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.100:17355] - Successfully shut down [INFO] [10/15/2025 23:57:36.877] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.100:17355/system/remoting-terminator] Shutting down remote daemon. 11:57:36,878 PM [test-pekko.actor.default-dispatcher-16] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [10/15/2025 23:57:36.878] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.100:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 11:57:36,878 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [10/15/2025 23:57:36.880] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.100:17355/system/remoting-terminator] Remoting shut down. 11:57:36,880 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [10/15/2025 23:57:36.880] [test-pekko.actor.internal-dispatcher-5] [EventStream] shutting down: StandardOutLogger