[DEBUG] [10/24/2025 18:31:04.953] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 06:31:04,953 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [10/24/2025 18:31:04.953] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [10/24/2025 18:31:04.953] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [10/24/2025 18:31:04.974] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.133:17355] with UID [-7011165988234466106] 06:31:04,974 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.133:17355] with UID [-7011165988234466106] [INFO] [10/24/2025 18:31:04.975] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - Starting up, Pekko version [1.0.3] ... 06:31:04,976 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - Starting up, Pekko version [1.0.3] ... 06:31:04,978 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 06:31:04,978 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - Started up successfully 06:31:04,978 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 06:31:04,978 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [10/24/2025 18:31:04.977] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [10/24/2025 18:31:04.977] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - Started up successfully [INFO] [10/24/2025 18:31:04.977] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [10/24/2025 18:31:04.977] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 06:31:04,990 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,76 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 06:31:05,76 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 06:31:05,77 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior337#812499031] 06:31:05,88 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower338#-801686593] 06:31:05,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader339#-154070287] 06:31:05,94 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,97 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]]} 06:31:05,98 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:31:05,99 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 06:31:05,99 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 06:31:05,99 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:31:05,100 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 06:31:05,100 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} 06:31:05,100 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 06:31:05,100 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 06:31:05,102 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:31:05,102 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:31:05,103 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 06:31:05,103 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior340#1403000394] 06:31:05,114 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower341#793286232] 06:31:05,114 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader342#-696383218] 06:31:05,120 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,123 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 06:31:05,124 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 06:31:05,127 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior343#130312753] 06:31:05,128 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower344#1404731593] 06:31:05,128 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader345#941279942] 06:31:05,133 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,133 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 06:31:05,134 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 06:31:05,134 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} 06:31:05,135 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 06:31:05,135 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 06:31:05,136 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 06:31:05,136 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 06:31:05,136 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. 06:31:05,136 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 06:31:05,137 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 06:31:05,137 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 06:31:05,138 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 06:31:05,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior346#-371427579] 06:31:05,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower347#-98769368] 06:31:05,140 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader348#-340838934] 06:31:05,142 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,143 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:31:05,143 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:31:05,143 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,143 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 06:31:05,144 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:31:05,144 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:31:05,144 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:31:05,144 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:31:05,144 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior349#2000291162] 06:31:05,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower350#-1621842914] 06:31:05,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader351#-722901477] 06:31:05,147 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,148 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 06:31:05,148 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior352#-308453791] 06:31:05,149 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower353#700344791] 06:31:05,149 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader354#-2051280254] 06:31:05,151 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,152 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 06:31:05,152 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:31:05,152 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior355#1935943440] 06:31:05,153 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower356#-567196833] 06:31:05,153 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader357#1828464810] 06:31:05,155 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 06:31:05,155 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,157 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:31:05,157 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:31:05,157 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:31:05,157 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:31:05,157 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 06:31:05,157 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 06:31:05,157 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:31:05,158 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:31:05,160 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 06:31:05,161 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior358#-211947749] 06:31:05,161 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower359#501528920] 06:31:05,161 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader360#2114528188] 06:31:05,164 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 06:31:05,164 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,165 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]]} 06:31:05,165 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 06:31:05,166 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} 06:31:05,166 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:31:05,166 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior361#847859298] 06:31:05,167 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower362#1411115917] 06:31:05,167 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader363#489908347] 06:31:05,169 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 06:31:05,169 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,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} 06:31:05,170 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:31:05,170 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:31:05,170 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:31:05,170 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 06:31:05,170 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:31:05,170 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:31:05,171 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:31:05,171 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 06:31:05,171 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]]} 06:31:05,171 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 06:31:05,172 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} 06:31:05,172 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 06:31:05,172 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior364#1228396414] 06:31:05,173 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower365#-875648710] 06:31:05,173 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader366#-2055321446] 06:31:05,176 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,176 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 06:31:05,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior367#1213451843] 06:31:05,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower368#787304890] 06:31:05,178 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader369#112428002] 06:31:05,180 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:31:05,180 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,180 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 06:31:05,181 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]]} 06:31:05,181 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:31:05,181 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:31:05,181 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:31:05,181 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:31:05,181 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:31:05,181 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} 06:31:05,181 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:31:05,181 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:31:05,182 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:31:05,182 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior370#544992719] 06:31:05,182 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower371#-1441695432] 06:31:05,182 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader372#1365659668] 06:31:05,185 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 06:31:05,185 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,185 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]]} 06:31:05,186 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:31:05,186 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:31:05,186 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:31:05,186 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:31:05,186 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 06:31:05,186 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} 06:31:05,186 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:31:05,186 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:31:05,186 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:31:05,186 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:31:05,186 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:31:05,186 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:31:05,187 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]]} 06:31:05,187 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:31:05,187 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:31:05,187 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:31:05,187 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 06:31:05,187 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:31:05,187 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:31:05,187 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} 06:31:05,187 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 06:31:05,187 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:31:05,187 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:31:05,187 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:31:05,188 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior373#751509142] 06:31:05,188 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower374#-559697110] 06:31:05,188 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader375#-1636415799] 06:31:05,191 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 06:31:05,191 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,191 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 06:31:05,192 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 06:31:05,192 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} 06:31:05,192 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 06:31:05,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior376#-1836477326] 06:31:05,193 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower377#1521679260] 06:31:05,193 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader378#1068035684] 06:31:05,195 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,198 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior379#-1044419057] 06:31:05,198 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower380#814095662] 06:31:05,198 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader381#-2008270505] 06:31:05,201 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 06:31:05,201 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,201 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:31:05,201 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 06:31:05,202 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]]} 06:31:05,202 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:31:05,202 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:31:05,202 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:31:05,202 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:31:05,202 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:31:05,202 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} 06:31:05,203 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:31:05,203 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 06:31:05,203 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 06:31:05,203 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 06:31:05,203 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 06:31:05,204 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior382#43874186] 06:31:05,204 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower383#-1711794119] 06:31:05,204 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader384#1077020196] 06:31:05,206 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [10/24/2025 18:31:05.208] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2770e632 [INFO] [pekkoDeadLetter][10/24/2025 18:31:05.209] [test-pekko.actor.default-dispatcher-6] [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'. 06:31:05,209 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:31:05,210 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:31:05,210 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:31:05,210 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:31:05,210 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:31:05,211 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:31:05,211 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:31:05,211 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:31:05,211 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:31:05,213 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 06:31:05,213 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:31:05,213 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:31:05,213 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:31:05,213 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:31:05,213 PM [test-pekko.actor.default-dispatcher-5] [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 06:31:05,228 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:31:05,228 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 06:31:05,228 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:31:05,228 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:31:05,228 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 06:31:05,228 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 06:31:05,228 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068FBC5E9-0DA14865.tmp 06:31:05,239 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068FBC5E9-0DA14865.v1 06:31:05,239 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:31:05,239 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:31:05,239 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:31:05,239 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068FBC5E9-0DA14865.v1 06:31:05,239 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-24T18:31:05.228673637Z, file=/tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068FBC5E9-0DA14865.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:31:05,239 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 11.30 ms, resetting timer for the next recovery snapshot 06:31:05,239 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 06:31:05,239 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 06:31:05,239 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 06:31:05,240 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 06:31:05,240 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 06:31:05,240 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 186.6 μs with journalIndex=1 06:31:05,240 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 06:31:05,240 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 06:31:05,342 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:31:05,342 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:31:05,342 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:31:05,342 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068FBC5E9-0DA14865.v1 06:31:05,342 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-24T18:31:05.228673637Z, file=/tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068FBC5E9-0DA14865.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:31:05,343 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 132.3 ms 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 06:31:05,343 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 06:31:05,344 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 06:31:05,344 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 06:31:05,344 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 06:31:05,344 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 06:31:05,344 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 06:31:05,354 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:31:05,355 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 06:31:05,355 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 11.32 ms 06:31:05,355 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 3.480 μs 06:31:05,355 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:31:05,355 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c0903d90@23d99dc5} 06:31:05,355 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 06:31:05,382 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 06:31:05,382 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 06:31:05,382 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 06:31:05,382 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 27.83 ms 06:31:05,382 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:31:05,382 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:31:05,383 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 06:31:05,383 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 06:31:05,383 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 06:31:05,383 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 06:31:05,383 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 06:31:05,383 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 06:31:05,383 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c0903d90@23d99dc5} 06:31:05,383 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d162088] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068FBC5E9-16D77805.tmp 06:31:05,383 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 39.32 ms [WARN] [10/24/2025 18:31:05.383] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 06:31:05,383 PM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][10/24/2025 18:31:05.383] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:31:05,394 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d162088] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068FBC5E9-16D77805.v1 06:31:05,394 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d162088] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:31:05,394 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d162088] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:31:05,394 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d162088] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:31:05,394 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d162088] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068FBC5E9-0DA14865.v1 06:31:05,395 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d162088] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068FBC5E9-16D77805.v1 06:31:05,395 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d162088] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-24T18:31:05.228673637Z, file=/tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068FBC5E9-0DA14865.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:31:05,395 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d162088] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-10-24T18:31:05.383219717Z, file=/tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068FBC5E9-16D77805.v1, size=555, entryCompress=NONE, stateCompress=NONE} 06:31:05,395 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d162088] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:31:05,395 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 06:31:05,395 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-10-24T18:31:05.383219717Z 06:31:05,395 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 06:31:05,395 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 06:31:05,395 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 12.63 ms 06:31:05,395 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 06:31:05,395 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 06:31:05,395 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:31:05,395 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 06:31:05,395 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 215.6 μs 06:31:05,395 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:31:05,544 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:31:05,545 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:31:05,545 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:31:05,545 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068FBC5E9-16D77805.v1 06:31:05,545 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-10-24T18:31:05.383219717Z, file=/tmp/junit-4206868941708684521/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068FBC5E9-16D77805.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 06:31:05,548 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior385#1849071185] 06:31:05,550 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower386#-1827673882] 06:31:05,550 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader387#326122142] 06:31:05,550 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 06:31:05,550 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#851,testCaptureSnapshotOnLastEntryInAppendEntries-writer-155]/waiting 06:31:05,550 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 154.9 ms 06:31:05,550 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 13.84 μs 06:31:05,550 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:31:05,551 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:31:05,551 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:31:05,551 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:31:05,551 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:31:05,555 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,556 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior388#174261158] 06:31:05,556 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower389#-1700805316] 06:31:05,556 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader390#489581876] 06:31:05,560 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 06:31:05,560 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,561 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 06:31:05,561 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:31:05,561 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior391#-1511371287] 06:31:05,562 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower392#-643196965] 06:31:05,562 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader393#667023126] 06:31:05,564 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 06:31:05,564 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,565 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 06:31:05,565 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]]} 06:31:05,565 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:31:05,565 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:31:05,565 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:31:05,565 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:31:05,565 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:31:05,565 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} 06:31:05,565 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:31:05,565 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:31:05,566 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:31:05,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior394#421349349] 06:31:05,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower395#1681638272] 06:31:05,567 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader396#-444897506] 06:31:05,569 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 06:31:05,569 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,570 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 06:31:05,570 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]]} 06:31:05,570 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 06:31:05,571 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} 06:31:05,571 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:31:05,571 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 06:31:05,571 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]]} 06:31:05,571 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 06:31:05,572 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} 06:31:05,572 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:31:05,572 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior397#2003943610] 06:31:05,572 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower398#84665368] 06:31:05,572 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader399#1236980368] 06:31:05,575 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,577 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior400#252536869] 06:31:05,577 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower401#1183876319] 06:31:05,577 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader402#-1499144034] 06:31:05,580 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 06:31:05,581 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,581 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 06:31:05,582 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]]} 06:31:05,582 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 06:31:05,582 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} 06:31:05,582 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:31:05,582 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:31:05,583 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]]} 06:31:05,583 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 06:31:05,583 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} 06:31:05,583 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:31:05,584 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]]} 06:31:05,584 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 06:31:05,584 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} 06:31:05,584 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:31:05,584 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior403#1448998097] 06:31:05,585 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower404#719080870] 06:31:05,585 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader405#-558254653] 06:31:05,588 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 06:31:05,588 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,589 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]]} 06:31:05,589 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:31:05,589 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 06:31:05,589 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:31:05,589 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:31:05,589 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:31:05,589 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} 06:31:05,589 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:31:05,589 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:31:05,589 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 06:31:05,590 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior406#-1842556115] 06:31:05,590 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower407#-811030442] 06:31:05,591 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader408#-1067630098] 06:31:05,593 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 06:31:05,593 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,594 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:31:05,595 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader411 06:31:05,595 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader411 06:31:05,596 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 06:31:05,596 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior409#2008842851] 06:31:05,597 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower410#-169183052] 06:31:05,597 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader411#1342581859] 06:31:05,599 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 06:31:05,600 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,600 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 06:31:05,600 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]]} 06:31:05,600 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:31:05,601 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:31:05,601 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:31:05,601 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:31:05,601 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:31:05,601 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} 06:31:05,601 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:31:05,601 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:31:05,601 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:31:05,601 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior412#-1517501554] 06:31:05,602 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower413#738477486] 06:31:05,602 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader414#250950187] 06:31:05,606 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:31:05,606 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,607 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 06:31:05,608 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]]} 06:31:05,608 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 06:31:05,609 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:31:05,609 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:31:05,609 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior415#-2014951075] 06:31:05,620 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower416#207743014] 06:31:05,620 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader417#290258079] 06:31:05,626 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [10/24/2025 18:31:05.626] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@627ebbcf [INFO] [pekkoDeadLetter][10/24/2025 18:31:05.626] [test-pekko.actor.default-dispatcher-5] [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'. 06:31:05,626 PM [test-pekko.actor.default-dispatcher-5] [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'. 06:31:05,627 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 06:31:05,627 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:31:05,627 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:31:05,628 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 06:31:05,628 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:31:05,628 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 06:31:05,628 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 06:31:05,628 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 06:31:05,629 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 06:31:05,629 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:31:05,629 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:31:05,630 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 06:31:05,630 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:31:05,630 PM [test-pekko.actor.default-dispatcher-12] [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 06:31:05,677 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:31:05,678 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 06:31:05,678 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 06:31:05,678 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:31:05,678 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 06:31:05,678 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 06:31:05,678 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068FBC5E9-286C5EB5.tmp 06:31:05,693 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068FBC5E9-286C5EB5.v1 06:31:05,693 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:31:05,693 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:31:05,693 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:31:05,694 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068FBC5E9-286C5EB5.v1 06:31:05,694 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-24T18:31:05.678190773Z, file=/tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068FBC5E9-286C5EB5.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:31:05,694 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 16.22 ms, resetting timer for the next recovery snapshot 06:31:05,694 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 06:31:05,694 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 06:31:05,694 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 06:31:05,694 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 06:31:05,694 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 06:31:05,694 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 253.5 μs with journalIndex=1 06:31:05,694 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 06:31:05,695 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 06:31:05,695 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 06:31:05,695 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 06:31:05,695 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:31:05,695 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 06:31:05,695 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:31:05,696 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 06:31:05,696 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:31:05,696 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 06:31:05,696 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:31:05,696 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 06:31:05,696 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 06:31:05,696 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:31:05,696 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 67.44 ms 06:31:05,696 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 06:31:05,696 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 06:31:05,696 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 06:31:05,696 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 06:31:05,696 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 06:31:05,696 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 06:31:05,696 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 06:31:05,712 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 06:31:05,712 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 16.78 ms 06:31:05,713 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 06:31:05,713 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.311 μs 06:31:05,713 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:31:05,713 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c0903d90@5a2b402a} 06:31:05,713 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:31:05,713 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 06:31:05,713 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c0903d90@5a2b402a} 06:31:05,713 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 06:31:05,713 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:31:05,713 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 06:31:05,713 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 06:31:05,713 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 191.9 μs 06:31:05,713 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 06:31:05,713 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 06:31:05,713 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 06:31:05,713 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 06:31:05,713 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 06:31:05,713 PM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c0903d90@5a2b402a} 06:31:05,713 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d830099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068FBC5E9-2A8699B8.tmp 06:31:05,713 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 17.34 ms 06:31:05,713 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) [WARN] [10/24/2025 18:31:05.714] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][10/24/2025 18:31:05.714] [test-pekko.actor.default-dispatcher-12] [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'. 06:31:05,714 PM [test-pekko.actor.default-dispatcher-6] [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'. 06:31:05,716 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d830099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068FBC5E9-2A8699B8.v1 06:31:05,717 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d830099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:31:05,717 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d830099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:31:05,717 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d830099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:31:05,717 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d830099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068FBC5E9-2A8699B8.v1 06:31:05,717 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d830099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068FBC5E9-286C5EB5.v1 06:31:05,717 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d830099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-24T18:31:05.678190773Z, file=/tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068FBC5E9-286C5EB5.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:31:05,717 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d830099] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-10-24T18:31:05.713464248Z, file=/tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068FBC5E9-2A8699B8.v1, size=539, entryCompress=NONE, stateCompress=NONE} 06:31:05,717 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d830099] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 06:31:05,717 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 06:31:05,717 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-10-24T18:31:05.713464248Z 06:31:05,717 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 06:31:05,717 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 06:31:05,717 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 4.520 ms 06:31:05,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 06:31:05,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 06:31:05,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 06:31:05,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 117.0 μs 06:31:05,718 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 06:31:05,718 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 06:31:05,847 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:31:05,847 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:31:05,847 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:31:05,847 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068FBC5E9-2A8699B8.v1 06:31:05,848 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-10-24T18:31:05.713464248Z, file=/tmp/junit-11869889954711260748/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068FBC5E9-2A8699B8.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 06:31:05,849 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior418#-2129582839] 06:31:05,860 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower419#568938023] 06:31:05,860 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader420#-1623940862] 06:31:05,860 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 06:31:05,861 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#856,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156]/waiting 06:31:05,861 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 143.1 ms 06:31:05,861 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 23.06 μs 06:31:05,861 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 06:31:05,861 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 06:31:05,861 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 06:31:05,861 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:31:05,861 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:31:05,866 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 06:31:05,866 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,867 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 06:31:05,868 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]]} 06:31:05,868 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 06:31:05,868 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} 06:31:05,869 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 06:31:05,869 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior421#371608890] 06:31:05,880 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower422#-1140721155] 06:31:05,880 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader423#84588641] 06:31:05,884 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 06:31:05,884 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,884 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 06:31:05,885 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 06:31:05,885 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 06:31:05,885 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 06:31:05,886 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 06:31:05,886 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-38754589] 06:31:05,897 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-793586088] 06:31:05,897 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#2065732890] 06:31:05,901 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 06:31:05,901 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,901 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 06:31:05,902 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]]} 06:31:05,902 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:31:05,902 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:31:05,902 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:31:05,902 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 06:31:05,902 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:31:05,902 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 06:31:05,902 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:31:05,902 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 06:31:05,903 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 06:31:05,903 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} 06:31:05,903 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:31:05,903 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 06:31:05,903 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:31:05,903 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:31:05,903 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:31:05,903 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:31:05,904 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:31:05,904 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:31:05,904 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:31:05,904 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:31:05,905 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-1718245052] 06:31:05,915 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#-1831166019] 06:31:05,916 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#943685617] 06:31:05,921 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 06:31:05,921 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,922 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 06:31:05,922 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 06:31:05,923 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#1786958671] 06:31:05,934 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#-186323700] 06:31:05,934 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#317341909] 06:31:05,938 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 06:31:05,938 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,939 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:31:05,939 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:31:05,939 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:31:05,940 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:31:05,940 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 06:31:05,941 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]]} 06:31:05,941 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 06:31:05,941 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:31:05,941 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:31:05,941 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 06:31:05,941 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:31:05,941 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:31:05,942 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} 06:31:05,942 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 06:31:05,942 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:31:05,942 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:31:05,942 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:31:05,943 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#-1909109906] 06:31:05,943 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#712447090] 06:31:05,943 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#1193317421] 06:31:05,946 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 06:31:05,946 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:05,947 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 06:31:05,947 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]]} 06:31:05,948 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 06:31:05,948 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} 06:31:05,948 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:31:05,948 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:31:05,948 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]]} 06:31:05,949 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 06:31:05,949 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} 06:31:05,949 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:31:05,949 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:31:05,950 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]]} 06:31:05,950 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 06:31:05,950 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} 06:31:05,950 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:31:05,950 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#2035076581] 06:31:05,951 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#-1402168368] 06:31:05,951 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#775063838] 06:31:05,954 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 06:31:05,954 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:06,155 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:31:06,155 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.133:17355, Removed) 06:31:06,155 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 06:31:06,155 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:31:06,155 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:31:06,155 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:31:06,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#3111833] 06:31:06,167 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-1149534422] 06:31:06,167 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-1466123751] 06:31:06,171 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:06,172 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 06:31:06,374 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:31:06,374 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#1468260294] 06:31:06,385 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-652354785] 06:31:06,385 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#1615392866] 06:31:06,390 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 06:31:06,390 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:06,393 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 06:31:06,393 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 06:31:06,394 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#2108420724] 06:31:06,405 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#-654612041] 06:31:06,405 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#2092164253] 06:31:06,409 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 06:31:06,409 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:06,410 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]]} 06:31:06,410 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:31:06,410 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 06:31:06,410 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:31:06,410 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:31:06,410 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 06:31:06,410 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:31:06,410 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} 06:31:06,410 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 06:31:06,410 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:31:06,411 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:31:06,411 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:31:06,411 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:31:06,411 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:31:06,411 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:31:06,411 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:31:06,411 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:31:06,411 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:31:06,411 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 06:31:06,411 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 06:31:06,412 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#3037367] 06:31:06,423 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-967604963] 06:31:06,423 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#-1890657923] 06:31:06,427 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 06:31:06,427 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:06,429 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:31:06,429 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:31:06,429 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:31:06,429 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:31:06,430 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]]} 06:31:06,430 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} 06:31:06,431 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-560868511] 06:31:06,442 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#1491098351] 06:31:06,442 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#1519165725] 06:31:06,446 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 06:31:06,446 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:06,447 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 06:31:06,447 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]]} 06:31:06,448 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:31:06,448 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:31:06,449 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:31:06,449 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#-1027440881] 06:31:06,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#1280409488] 06:31:06,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#1699702321] 06:31:06,465 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [10/24/2025 18:31:06.466] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@ec4e4e9 [INFO] [pekkoDeadLetter][10/24/2025 18:31:06.466] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:31:06,466 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:31:06,466 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 06:31:06,466 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:31:06,466 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:31:06,467 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:31:06,468 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:31:06,468 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 06:31:06,468 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 06:31:06,468 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:31:06,469 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 06:31:06,470 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:31:06,470 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:31:06,470 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 06:31:06,470 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:31:06,470 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:31:06,473 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:31:06,473 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 06:31:06,473 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 06:31:06,473 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 06:31:06,473 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 06:31:06,473 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:31:06,473 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-1C3BB085.tmp 06:31:06,477 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-1C3BB085.v1 06:31:06,478 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:31:06,478 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-1C3BB085.v1 06:31:06,478 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:31:06,478 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:31:06,478 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-24T18:31:06.473673861Z, file=/tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-1C3BB085.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:31:06,478 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 4.775 ms, resetting timer for the next recovery snapshot 06:31:06,478 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 06:31:06,478 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 06:31:06,478 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 06:31:06,478 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 06:31:06,478 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 06:31:06,478 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 215.6 μs with journalIndex=1 06:31:06,478 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 06:31:06,479 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 06:31:06,580 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:31:06,580 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-1C3BB085.v1 06:31:06,580 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:31:06,580 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:31:06,580 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-24T18:31:06.473673861Z, file=/tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-1C3BB085.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [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]]} 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [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} 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 06:31:06,581 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 113.3 ms 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 06:31:06,581 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 06:31:06,582 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 06:31:06,586 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 06:31:06,586 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 5.083 ms 06:31:06,586 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 06:31:06,586 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.380 μs 06:31:06,586 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:31:06,586 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c0903d90@150a3830} 06:31:06,586 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:31:06,587 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c0903d90@150a3830} 06:31:06,587 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:31:06,587 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 06:31:06,587 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 06:31:06,587 PM [test-pekko.actor.default-dispatcher-11] [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] 06:31:06,587 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 194.9 μs 06:31:06,587 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:31:06,587 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 06:31:06,587 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 06:31:06,587 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:31:06,587 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 06:31:06,587 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 06:31:06,587 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c0903d90@150a3830} 06:31:06,587 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d361245] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-2300A8B2.tmp 06:31:06,587 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.367 ms 06:31:06,587 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) [WARN] [10/24/2025 18:31:06.587] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][10/24/2025 18:31:06.587] [test-pekko.actor.default-dispatcher-5] [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'. 06:31:06,587 PM [test-pekko.actor.default-dispatcher-12] [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'. 06:31:06,589 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d361245] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-2300A8B2.v1 06:31:06,589 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d361245] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:31:06,589 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d361245] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-2300A8B2.v1 06:31:06,589 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d361245] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-1C3BB085.v1 06:31:06,590 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d361245] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:31:06,590 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d361245] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:31:06,590 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d361245] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-10-24T18:31:06.473673861Z, file=/tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-1C3BB085.v1, size=419, entryCompress=NONE, stateCompress=NONE} 06:31:06,590 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d361245] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-10-24T18:31:06.587245746Z, file=/tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-2300A8B2.v1, size=573, entryCompress=NONE, stateCompress=NONE} 06:31:06,590 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d361245] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 06:31:06,590 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 06:31:06,590 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-10-24T18:31:06.587245746Z 06:31:06,590 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 06:31:06,590 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 06:31:06,590 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.533 ms 06:31:06,590 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 06:31:06,590 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 06:31:06,590 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 06:31:06,590 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 180.3 μs 06:31:06,590 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 06:31:06,590 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:31:06,835 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:31:06,835 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-2300A8B2.v1 06:31:06,835 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:31:06,835 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:31:06,835 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-10-24T18:31:06.587245746Z, file=/tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-2300A8B2.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:31:06,837 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:31:06,848 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#859,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 06:31:06,848 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 258.0 ms 06:31:06,849 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 16.98 μs 06:31:06,849 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 06:31:06,849 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:31:06,849 PM [test-pekko.actor.default-dispatcher-15] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:31:06,849 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:31:06,849 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [10/24/2025 18:31:06.850] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@5bf6585d [INFO] [pekkoDeadLetter][10/24/2025 18:31:06.850] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:31:06,850 PM [test-pekko.actor.default-dispatcher-12] [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'. 06:31:06,851 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 06:31:06,851 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:31:06,851 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:31:06,852 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 06:31:06,852 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 06:31:06,852 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 06:31:06,853 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 06:31:06,853 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:31:06,854 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:31:06,854 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:31:06,854 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-2300A8B2.v1 06:31:06,854 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:31:06,854 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:31:06,854 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-10-24T18:31:06.587245746Z, file=/tmp/junit-7914859039089942694/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068FBC5EA-2300A8B2.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:31:06,854 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:31:06,855 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-10-24T18:31:06.587245746Z 06:31:06,855 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:31:06,855 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 429.5 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 06:31:06,856 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 610.5 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 06:31:06,856 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 06:31:06,856 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:31:06,856 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 06:31:06,856 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 06:31:06,856 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 06:31:06,856 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 06:31:06,856 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 06:31:06,856 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 147.7 μs with journalIndex=4 06:31:06,856 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 06:31:06,856 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#-1185012677] 06:31:06,867 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#-1354346447] 06:31:06,867 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#175779598] 06:31:06,867 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:31:06,868 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#865,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158]/waiting 06:31:06,868 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 15.17 ms 06:31:06,868 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 11.19 μs 06:31:06,868 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 06:31:06,868 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:31:06,868 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:31:06,868 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:31:06,868 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:31:06,872 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 06:31:06,872 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:07,173 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:31:07,304 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:31:07,304 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 06:31:07,554 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 06:31:07,755 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 201 < election timeout PT0.4S 06:31:07,756 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-237844357] 06:31:07,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#-1547923159] 06:31:07,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#-959867606] 06:31:07,762 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:31:07,762 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:31:07,762 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 06:31:07,763 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:31:07,763 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:31:07,763 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:31:07,763 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-452091062] 06:31:07,765 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-634154169] 06:31:07,765 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#95722903] [INFO] [10/24/2025 18:31:07.766] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 06:31:07,766 PM [test-pekko.actor.default-dispatcher-15] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [10/24/2025 18:31:07.767] [test-pekko.actor.default-dispatcher-15] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.133:17355) [INFO] [pekkoDeadLetter][10/24/2025 18:31:07.767] [test-pekko.actor.default-dispatcher-15] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-199499667] 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'. 06:31:07,767 PM [test-pekko.actor.default-dispatcher-15] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-199499667] 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/24/2025 18:31:07.767] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - Exiting completed [INFO] [10/24/2025 18:31:07.767] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - Shutting down... [INFO] [10/24/2025 18:31:07.767] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.133:17355] - Successfully shut down 06:31:07,768 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - Exiting completed 06:31:07,768 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - Shutting down... 06:31:07,768 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.133:17355] - Successfully shut down [INFO] [10/24/2025 18:31:07.769] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.133:17355/system/remoting-terminator] Shutting down remote daemon. 06:31:07,769 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [10/24/2025 18:31:07.769] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.133:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 06:31:07,769 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [10/24/2025 18:31:07.771] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.133:17355/system/remoting-terminator] Remoting shut down. 06:31:07,771 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.