[DEBUG] [08/29/2025 16:11:23.950] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:11:23,950 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/29/2025 16:11:23.951] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/29/2025 16:11:23.951] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/29/2025 16:11:23.960] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.251:17355] with UID [-2610471489952684919] 04:11:23,960 PM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.251:17355] with UID [-2610471489952684919] [INFO] [08/29/2025 16:11:23.960] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - Starting up, Pekko version [1.1.5] ... 04:11:23,960 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - Starting up, Pekko version [1.1.5] ... [INFO] [08/29/2025 16:11:23.968] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:11:23,968 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/29/2025 16:11:23.968] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - Started up successfully 04:11:23,968 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - Started up successfully [INFO] [08/29/2025 16:11:23.970] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/29/2025 16:11:23.970] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:11:23,970 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:11:23,970 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:11:23,984 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,62 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 04:11:24,62 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 04:11:24,65 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#-1977076535] 04:11:24,66 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#1440114358] 04:11:24,66 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#160578825] 04:11:24,70 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,73 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]]} 04:11:24,73 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:11:24,73 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 04:11:24,73 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 04:11:24,73 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:11:24,73 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 04:11:24,73 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} 04:11:24,74 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 04:11:24,74 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 04:11:24,75 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:11:24,75 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:11:24,75 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 04:11:24,75 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#-245156591] 04:11:24,86 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#-1006083927] 04:11:24,86 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#1275843310] 04:11:24,90 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,93 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 04:11:24,94 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 04:11:24,94 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#930972879] 04:11:24,105 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#-157018179] 04:11:24,105 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#60779232] 04:11:24,108 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,109 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 04:11:24,110 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 04:11:24,111 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} 04:11:24,111 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 04:11:24,112 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 04:11:24,113 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 04:11:24,113 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 04:11:24,113 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. 04:11:24,113 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 04:11:24,114 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 04:11:24,115 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 04:11:24,116 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:11:24,117 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#2064239652] 04:11:24,128 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#-1415449044] 04:11:24,128 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#455517353] 04:11:24,133 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,134 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:11:24,134 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:11:24,134 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,135 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 04:11:24,135 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:11:24,135 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:11:24,136 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:11:24,136 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:11:24,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#1639553141] 04:11:24,147 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#-1436799340] 04:11:24,147 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#234838324] 04:11:24,151 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,152 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 04:11:24,153 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#1910780349] 04:11:24,164 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#1551988374] 04:11:24,164 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#-2921358] 04:11:24,168 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,169 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 04:11:24,169 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:11:24,169 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#-1204581168] 04:11:24,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#-1114702937] 04:11:24,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#1515505616] 04:11:24,173 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 04:11:24,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,176 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:11:24,176 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:11:24,176 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:11:24,176 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:11:24,177 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:11:24,177 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 04:11:24,177 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:11:24,177 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:11:24,180 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 04:11:24,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#1930381908] 04:11:24,182 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#-1512481472] 04:11:24,182 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#-437829853] 04:11:24,184 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 04:11:24,185 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,186 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]]} 04:11:24,186 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 04:11:24,186 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} 04:11:24,186 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:11:24,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#-1223032000] 04:11:24,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#-1635304405] 04:11:24,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#1518874511] 04:11:24,190 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 04:11:24,190 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,191 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:11:24,191 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:11:24,191 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:11:24,191 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:11:24,192 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:11:24,192 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:11:24,192 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:11:24,192 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:11:24,193 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 04:11:24,193 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]]} 04:11:24,193 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 04:11:24,193 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} 04:11:24,194 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 04:11:24,194 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#78346628] 04:11:24,194 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#77823973] 04:11:24,195 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#607333545] 04:11:24,198 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,198 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:11:24,199 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#30530116] 04:11:24,200 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#595466171] 04:11:24,200 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#1991731411] 04:11:24,203 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:11:24,203 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,203 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 04:11:24,204 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]]} 04:11:24,204 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:11:24,204 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:11:24,204 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:11:24,204 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:11:24,204 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:11:24,204 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} 04:11:24,204 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:11:24,204 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:11:24,205 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:11:24,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#679150047] 04:11:24,206 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#335964732] 04:11:24,206 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#472052141] 04:11:24,208 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 04:11:24,208 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,209 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]]} 04:11:24,209 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:11:24,209 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:11:24,209 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:11:24,209 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:11:24,209 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 04:11:24,209 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} 04:11:24,209 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:11:24,209 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:11:24,210 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:11:24,210 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:11:24,210 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:11:24,210 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:11:24,210 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]]} 04:11:24,211 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:11:24,211 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:11:24,211 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:11:24,211 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 04:11:24,211 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:11:24,211 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:11:24,211 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} 04:11:24,211 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 04:11:24,211 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:11:24,211 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:11:24,211 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:11:24,212 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior461#-929981159] 04:11:24,212 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower462#-2066532865] 04:11:24,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader463#-1830547122] 04:11:24,215 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 04:11:24,215 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,216 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 04:11:24,216 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 04:11:24,216 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} 04:11:24,217 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 04:11:24,217 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior464#1660074273] 04:11:24,217 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower465#-1204703913] 04:11:24,218 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader466#287798492] 04:11:24,235 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,238 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior467#771095811] 04:11:24,238 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower468#461106907] 04:11:24,239 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader469#870848036] 04:11:24,241 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 04:11:24,241 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,241 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:11:24,241 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 04:11:24,242 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]]} 04:11:24,242 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:11:24,242 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:11:24,242 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:11:24,242 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:11:24,242 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:11:24,242 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} 04:11:24,242 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:11:24,242 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 04:11:24,242 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 04:11:24,242 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 04:11:24,242 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 04:11:24,242 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior470#422956609] 04:11:24,243 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower471#1587333044] 04:11:24,243 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader472#1869839834] 04:11:24,245 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [08/29/2025 16:11:24.248] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@63f17453 [INFO] [pekkoDeadLetter][08/29/2025 16:11:24.248] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:11:24,248 PM [test-pekko.actor.default-dispatcher-12] [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'. 04:11:24,249 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 04:11:24,249 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:11:24,249 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:11:24,250 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:11:24,250 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:11:24,250 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 04:11:24,250 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 04:11:24,250 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:11:24,251 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 04:11:24,251 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:11:24,251 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:11:24,251 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 04:11:24,251 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:11:24,252 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:11:24,266 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:11:24,266 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 04:11:24,266 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 04:11:24,266 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:11:24,266 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 04:11:24,266 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:11:24,266 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D12C-0FE176AB.tmp 04:11:24,275 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D12C-0FE176AB.v1 04:11:24,276 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D12C-0FE176AB.v1 04:11:24,276 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:11:24,276 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:11:24,276 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:11:24,276 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:11:24.266434219Z, file=/tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D12C-0FE176AB.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:11:24,276 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 9.988 ms, resetting timer for the next recovery snapshot 04:11:24,276 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:11:24,276 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 04:11:24,276 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 04:11:24,276 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 04:11:24,276 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:11:24,276 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 177.7 μs with journalIndex=1 04:11:24,276 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:11:24,277 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 04:11:24,378 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D12C-0FE176AB.v1 04:11:24,378 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:11:24,378 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:11:24,378 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:11:24,378 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:11:24.266434219Z, file=/tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D12C-0FE176AB.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [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]]} 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [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} 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:11:24,379 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 128.9 ms 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 04:11:24,379 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 04:11:24,403 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 04:11:24,404 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 24.30 ms 04:11:24,404 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 04:11:24,404 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.390 μs 04:11:24,404 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:11:24,404 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c08ff440@20d243bb} 04:11:24,404 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:11:24,404 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 04:11:24,404 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:11:24,404 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:11:24,404 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 199.6 μs 04:11:24,404 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:11:24,404 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 04:11:24,404 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 04:11:24,404 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:11:24,404 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 04:11:24,404 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 04:11:24,404 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c08ff440@20d243bb} 04:11:24,404 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d104840] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D12C-181AEA6D.tmp 04:11:24,404 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 24.61 ms 04:11:24,404 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [08/29/2025 16:11:24.404] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/29/2025 16:11:24.405] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:11:24,405 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:11:24,445 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d104840] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D12C-181AEA6D.v1 04:11:24,445 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d104840] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D12C-0FE176AB.v1 04:11:24,445 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d104840] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D12C-181AEA6D.v1 04:11:24,445 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d104840] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:11:24,445 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d104840] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:11:24,445 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d104840] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:11:24,445 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d104840] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:11:24.266434219Z, file=/tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D12C-0FE176AB.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:11:24,445 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d104840] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-29T16:11:24.404417133Z, file=/tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D12C-181AEA6D.v1, size=555, entryCompress=NONE, stateCompress=NONE} 04:11:24,445 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d104840] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:11:24,446 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:11:24,446 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-08-29T16:11:24.404417133Z 04:11:24,446 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 04:11:24,446 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 04:11:24,446 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 41.86 ms 04:11:24,446 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 04:11:24,446 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 04:11:24,446 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:11:24,446 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 267.5 μs 04:11:24,446 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:11:24,446 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:11:24,581 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D12C-181AEA6D.v1 04:11:24,581 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:11:24,581 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:11:24,581 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:11:24,581 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-29T16:11:24.404417133Z, file=/tmp/junit-7188943355659256506/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B1D12C-181AEA6D.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 04:11:24,584 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior473#1575024027] 04:11:24,586 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower474#766124263] 04:11:24,586 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader475#-927038850] 04:11:24,586 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 04:11:24,586 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#826,testCaptureSnapshotOnLastEntryInAppendEntries-writer-158]/waiting 04:11:24,586 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 140.2 ms 04:11:24,586 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 17.70 μs 04:11:24,586 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 04:11:24,587 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:11:24,587 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:11:24,587 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:11:24,587 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:11:24,591 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,592 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior476#1800605761] 04:11:24,593 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower477#-573316894] 04:11:24,593 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader478#-1155837557] 04:11:24,595 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 04:11:24,595 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,596 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 04:11:24,596 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:11:24,596 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior479#1648969057] 04:11:24,597 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower480#1345563749] 04:11:24,597 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader481#-17053984] 04:11:24,598 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 04:11:24,599 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,599 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 04:11:24,599 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]]} 04:11:24,599 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:11:24,599 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:11:24,599 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:11:24,599 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:11:24,600 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:11:24,600 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} 04:11:24,600 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:11:24,600 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:11:24,600 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:11:24,600 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#2098466509] 04:11:24,601 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower483#-1918458390] 04:11:24,601 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader484#-863716451] 04:11:24,604 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 04:11:24,604 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,605 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 04:11:24,605 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]]} 04:11:24,605 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 04:11:24,605 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} 04:11:24,605 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:11:24,606 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 04:11:24,606 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]]} 04:11:24,606 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 04:11:24,606 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} 04:11:24,606 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:11:24,607 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior485#-1361051970] 04:11:24,607 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower486#-2092773983] 04:11:24,607 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader487#-314318071] 04:11:24,609 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,609 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#-1547840715] 04:11:24,609 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower489#-469681302] 04:11:24,610 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader490#-895462319] 04:11:24,611 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 04:11:24,611 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,611 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 04:11:24,612 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]]} 04:11:24,612 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 04:11:24,612 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} 04:11:24,612 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:11:24,612 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:11:24,613 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]]} 04:11:24,613 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 04:11:24,613 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} 04:11:24,613 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:11:24,613 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]]} 04:11:24,614 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 04:11:24,614 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} 04:11:24,614 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:11:24,614 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior491#711464946] 04:11:24,614 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower492#62808990] 04:11:24,615 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader493#454985794] 04:11:24,616 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 04:11:24,616 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,617 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]]} 04:11:24,617 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:11:24,617 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 04:11:24,617 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:11:24,617 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:11:24,617 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:11:24,617 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} 04:11:24,617 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:11:24,617 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:11:24,618 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 04:11:24,618 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#977363294] 04:11:24,618 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower495#196420472] 04:11:24,618 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader496#1121138410] 04:11:24,621 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 04:11:24,621 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,621 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:11:24,622 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader499 04:11:24,622 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader499 04:11:24,623 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 04:11:24,623 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior497#-745766542] 04:11:24,624 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower498#860189914] 04:11:24,624 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader499#2095908866] 04:11:24,626 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 04:11:24,626 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,626 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 04:11:24,627 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]]} 04:11:24,627 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:11:24,627 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:11:24,627 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:11:24,627 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:11:24,627 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:11:24,627 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} 04:11:24,627 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:11:24,627 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:11:24,627 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:11:24,628 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior500#939990980] 04:11:24,628 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower501#-59834738] 04:11:24,628 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader502#379463802] 04:11:24,630 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:11:24,630 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,630 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 04:11:24,631 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]]} 04:11:24,631 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 04:11:24,631 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} 04:11:24,631 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:11:24,632 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior503#-2077140973] 04:11:24,632 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower504#-35836641] 04:11:24,632 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader505#-473592409] 04:11:24,634 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 04:11:24,635 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 04:11:24,635 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:11:24,635 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:11:24,635 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 04:11:24,636 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:11:24,636 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 04:11:24,636 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 04:11:24,636 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands [WARN] [08/29/2025 16:11:24.636] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@5075e542 [INFO] [pekkoDeadLetter][08/29/2025 16:11:24.636] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:11:24,636 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:11:24,637 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 04:11:24,637 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:11:24,637 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:11:24,637 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 04:11:24,637 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:11:24,637 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:11:24,658 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:11:24,658 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 04:11:24,658 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 04:11:24,658 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:11:24,658 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 04:11:24,658 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:11:24,658 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D12C-27466E73.tmp 04:11:24,694 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D12C-27466E73.v1 04:11:24,694 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:11:24,694 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:11:24,694 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:11:24,694 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D12C-27466E73.v1 04:11:24,694 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:11:24.658927219Z, file=/tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D12C-27466E73.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:11:24,694 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 35.63 ms, resetting timer for the next recovery snapshot 04:11:24,694 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 04:11:24,694 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 04:11:24,694 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 04:11:24,694 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 04:11:24,694 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:11:24,694 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 166.1 μs with journalIndex=1 04:11:24,694 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [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]]} 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 04:11:24,695 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 59.37 ms 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [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} 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 04:11:24,695 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 04:11:24,716 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:11:24,716 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:11:24,716 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 20.75 ms 04:11:24,716 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 4.780 μs 04:11:24,716 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:11:24,716 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c08ff440@4c3381d4} 04:11:24,716 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 04:11:24,731 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 04:11:24,731 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 04:11:24,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 04:11:24,731 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 15.15 ms 04:11:24,731 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:11:24,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:11:24,731 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c08ff440@4c3381d4} 04:11:24,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:11:24,731 PM [test-pekko.actor.default-dispatcher-11] [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] 04:11:24,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 04:11:24,731 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 04:11:24,731 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:11:24,732 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 04:11:24,732 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 04:11:24,732 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d186093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D12C-2BA09BC0.tmp 04:11:24,732 PM [test-pekko.actor.default-dispatcher-11] [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/0x00000007c08ff440@4c3381d4} 04:11:24,732 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 36.14 ms [WARN] [08/29/2025 16:11:24.732] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/29/2025 16:11:24.732] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:11:24,732 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:11:24,759 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d186093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D12C-2BA09BC0.v1 04:11:24,759 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d186093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:11:24,759 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d186093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:11:24,759 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d186093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:11:24,759 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d186093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D12C-2BA09BC0.v1 04:11:24,760 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d186093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D12C-27466E73.v1 04:11:24,760 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d186093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:11:24.658927219Z, file=/tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D12C-27466E73.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:11:24,760 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d186093] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-29T16:11:24.731945920Z, file=/tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D12C-2BA09BC0.v1, size=539, entryCompress=NONE, stateCompress=NONE} 04:11:24,760 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d186093] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:11:24,760 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:11:24,760 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-08-29T16:11:24.731945920Z 04:11:24,760 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 04:11:24,760 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 04:11:24,761 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 29.33 ms 04:11:24,761 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 04:11:24,761 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 04:11:24,761 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:11:24,761 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 254.1 μs 04:11:24,761 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:11:24,761 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:11:24,846 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:11:24,846 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:11:24,846 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:11:24,846 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D12C-2BA09BC0.v1 04:11:24,846 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-29T16:11:24.731945920Z, file=/tmp/junit-12901537122652881356/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B1D12C-2BA09BC0.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 04:11:24,848 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior506#998661692] 04:11:24,849 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower507#-1287397889] 04:11:24,849 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader508#-1629227043] 04:11:24,850 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 04:11:24,850 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#831,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159]/waiting 04:11:24,850 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 88.93 ms 04:11:24,850 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 13.00 μs 04:11:24,850 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 04:11:24,850 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:11:24,850 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:11:24,850 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:11:24,850 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:11:24,855 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 04:11:24,855 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,856 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 04:11:24,856 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]]} 04:11:24,857 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 04:11:24,857 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} 04:11:24,857 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 04:11:24,857 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#1944628421] 04:11:24,858 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower510#1329532127] 04:11:24,858 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader511#644835484] 04:11:24,861 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 04:11:24,861 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,861 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 04:11:24,862 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 04:11:24,862 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 04:11:24,862 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 04:11:24,862 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 04:11:24,863 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior512#2139463564] 04:11:24,863 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower513#695226155] 04:11:24,863 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader514#512763240] 04:11:24,865 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 04:11:24,865 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,866 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 04:11:24,866 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]]} 04:11:24,866 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:11:24,866 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:11:24,866 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:11:24,866 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 04:11:24,866 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:11:24,866 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 04:11:24,866 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:11:24,866 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 04:11:24,866 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 04:11:24,866 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} 04:11:24,866 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:11:24,867 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 04:11:24,867 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:11:24,867 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:11:24,867 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:11:24,867 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:11:24,867 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:11:24,867 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:11:24,867 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:11:24,867 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:11:24,867 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#-603380029] 04:11:24,868 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower516#855322431] 04:11:24,868 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader517#-819125144] 04:11:24,870 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 04:11:24,870 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,870 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 04:11:24,870 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 04:11:24,871 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior518#475800768] 04:11:24,871 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower519#2132558919] 04:11:24,872 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader520#-793431380] 04:11:24,873 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 04:11:24,873 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,874 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:11:24,874 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:11:24,874 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:11:24,874 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:11:24,874 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 04:11:24,875 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]]} 04:11:24,875 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 04:11:24,875 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:11:24,875 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:11:24,875 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 04:11:24,875 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:11:24,875 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:11:24,875 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} 04:11:24,875 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 04:11:24,875 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:11:24,875 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:11:24,875 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:11:24,876 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior521#1544170142] 04:11:24,876 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower522#-1179025879] 04:11:24,876 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader523#-1559270906] 04:11:24,878 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 04:11:24,878 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:24,879 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 04:11:24,879 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]]} 04:11:24,879 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 04:11:24,879 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} 04:11:24,879 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:11:24,879 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:11:24,880 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]]} 04:11:24,880 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 04:11:24,880 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} 04:11:24,880 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:11:24,880 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:11:24,881 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]]} 04:11:24,881 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 04:11:24,881 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} 04:11:24,881 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:11:24,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior524#1494808790] 04:11:24,882 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower525#645338636] 04:11:24,882 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader526#-894538486] 04:11:24,884 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 04:11:24,884 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:25,86 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:11:25,86 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.251:17355, Removed) 04:11:25,86 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 04:11:25,86 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:11:25,86 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:11:25,87 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:11:25,87 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior527#-511330911] 04:11:25,98 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower528#-881072300] 04:11:25,98 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader529#1395741680] 04:11:25,101 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:25,101 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 04:11:25,353 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:11:25,353 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior530#-343507279] 04:11:25,364 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower531#22216261] 04:11:25,364 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader532#-256366207] 04:11:25,368 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 04:11:25,368 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:25,370 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 04:11:25,370 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 04:11:25,371 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior533#461842367] 04:11:25,382 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower534#-913102533] 04:11:25,382 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader535#-1002991899] 04:11:25,386 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 04:11:25,386 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:25,387 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]]} 04:11:25,387 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:11:25,387 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 04:11:25,387 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:11:25,387 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:11:25,387 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 04:11:25,387 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:11:25,388 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} 04:11:25,388 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 04:11:25,388 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:11:25,388 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:11:25,388 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:11:25,388 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:11:25,388 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:11:25,388 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:11:25,388 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:11:25,388 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:11:25,388 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:11:25,388 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 04:11:25,388 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 04:11:25,389 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior536#-466696066] 04:11:25,400 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower537#-2075895812] 04:11:25,400 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader538#-160931893] 04:11:25,403 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 04:11:25,403 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:25,404 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:11:25,404 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:11:25,404 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:11:25,405 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:11:25,406 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]]} 04:11:25,406 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} 04:11:25,407 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior539#-1144198302] 04:11:25,417 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower540#1176361736] 04:11:25,417 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader541#-261175115] 04:11:25,420 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 04:11:25,420 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:25,421 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 04:11:25,421 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]]} 04:11:25,422 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:11:25,422 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:11:25,422 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:11:25,423 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior542#-1632568005] 04:11:25,433 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower543#2115811923] 04:11:25,433 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader544#-1100877002] 04:11:25,436 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [08/29/2025 16:11:25.437] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6ac9fe2 [INFO] [pekkoDeadLetter][08/29/2025 16:11:25.437] [test-pekko.actor.default-dispatcher-11] [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'. 04:11:25,437 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. [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'. 04:11:25,437 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:11:25,437 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:11:25,437 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:11:25,438 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:11:25,438 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:11:25,438 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 04:11:25,438 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:11:25,438 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:11:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 04:11:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:11:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:11:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 04:11:25,439 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:11:25,439 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:11:25,499 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:11:25,499 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 04:11:25,499 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 04:11:25,499 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:11:25,499 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 04:11:25,499 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:11:25,499 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-1DC07AF9.tmp 04:11:25,529 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-1DC07AF9.v1 04:11:25,529 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:11:25,529 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:11:25,529 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:11:25,529 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-1DC07AF9.v1 04:11:25,529 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:11:25.499153657Z, file=/tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-1DC07AF9.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:11:25,529 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 30.78 ms, resetting timer for the next recovery snapshot 04:11:25,530 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:11:25,530 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:11:25,530 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 04:11:25,530 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 04:11:25,530 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:11:25,530 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 168.3 μs with journalIndex=1 04:11:25,530 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:11:25,530 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 04:11:25,631 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:11:25,631 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:11:25,631 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:11:25,631 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-1DC07AF9.v1 04:11:25,631 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:11:25.499153657Z, file=/tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-1DC07AF9.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 04:11:25,632 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 04:11:25,633 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 194.7 ms 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 04:11:25,633 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 04:11:25,668 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:11:25,668 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 35.28 ms 04:11:25,668 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:11:25,668 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 5.010 μs 04:11:25,668 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:11:25,668 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08ff440@21a866b1} 04:11:25,668 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 04:11:25,672 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 04:11:25,672 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 04:11:25,672 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 4.047 ms 04:11:25,672 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:11:25,672 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 04:11:25,672 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:11:25,672 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08ff440@21a866b1} 04:11:25,672 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:11:25,672 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:11:25,672 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 04:11:25,672 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 04:11:25,672 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:11:25,673 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 04:11:25,673 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879964] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-281D6194.tmp 04:11:25,673 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 04:11:25,673 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08ff440@21a866b1} 04:11:25,673 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 39.52 ms [WARN] [08/29/2025 16:11:25.673] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/29/2025 16:11:25.673] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:11:25,673 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:11:25,683 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879964] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-281D6194.v1 04:11:25,683 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879964] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-281D6194.v1 04:11:25,683 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879964] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:11:25,683 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879964] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:11:25,683 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879964] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:11:25,683 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879964] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-1DC07AF9.v1 04:11:25,683 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879964] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-29T16:11:25.499153657Z, file=/tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-1DC07AF9.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:11:25,683 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879964] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-29T16:11:25.673014164Z, file=/tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-281D6194.v1, size=573, entryCompress=NONE, stateCompress=NONE} 04:11:25,683 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d879964] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:11:25,690 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:11:25,690 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-08-29T16:11:25.673014164Z 04:11:25,690 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 04:11:25,690 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 04:11:25,690 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 17.80 ms 04:11:25,690 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 04:11:25,690 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 04:11:25,690 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:11:25,690 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 223.4 μs 04:11:25,690 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:11:25,690 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:11:25,864 PM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 04:11:25,896 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-281D6194.v1 04:11:25,897 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:11:25,897 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:11:25,897 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:11:25,897 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-29T16:11:25.673014164Z, file=/tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-281D6194.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:11:25,898 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:11:25,911 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#834,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/waiting 04:11:25,911 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 221.1 ms 04:11:25,911 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 10.59 μs 04:11:25,911 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:11:25,912 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:11:25,912 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:11:25,912 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:11:25,912 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:11:25,914 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:11:25,914 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:11:25,914 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:11:25,914 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 04:11:25,915 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 04:11:25,915 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 04:11:25,915 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:11:25,915 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands [WARN] [08/29/2025 16:11:25.915] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@200b59c4 [INFO] [pekkoDeadLetter][08/29/2025 16:11:25.915] [test-pekko.actor.default-dispatcher-11] [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'. 04:11:25,915 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:11:25,920 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:11:25,921 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-281D6194.v1 04:11:25,921 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:11:25,921 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:11:25,921 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:11:25,921 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-29T16:11:25.673014164Z, file=/tmp/junit-7553923278310406584/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B1D12D-281D6194.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:11:25,921 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:11:25,921 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-08-29T16:11:25.673014164Z 04:11:25,921 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:11:25,922 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 133.7 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 04:11:25,922 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 244.2 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 04:11:25,922 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 04:11:25,922 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:11:25,922 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:11:25,922 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:11:25,922 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 04:11:25,922 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 04:11:25,922 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 04:11:25,922 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 106.4 μs with journalIndex=4 04:11:25,922 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:11:26,25 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior545#530296730] 04:11:26,36 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower546#1405174479] 04:11:26,36 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader547#-1939512108] 04:11:26,37 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:11:26,37 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#839,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161]/waiting 04:11:26,37 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 122.2 ms 04:11:26,37 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 19.10 μs 04:11:26,37 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:11:26,37 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:11:26,37 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:11:26,37 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:11:26,37 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:11:26,42 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 04:11:26,43 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:26,360 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:11:26,491 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:11:26,491 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 04:11:26,741 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 04:11:26,941 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 04:11:26,942 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior548#671277421] 04:11:26,953 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower549#-70759631] 04:11:26,953 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader550#2021024876] 04:11:26,957 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:11:26,958 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:11:26,958 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 04:11:26,958 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:11:26,958 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:11:26,958 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:11:26,958 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior551#2067030411] 04:11:26,969 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower552#923362453] 04:11:26,969 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader553#-93536572] 04:11:26,970 PM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [08/29/2025 16:11:26.970] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:11:26,971 PM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1739928654] 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'. [WARN] [08/29/2025 16:11:26.971] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.251:17355) [INFO] [pekkoDeadLetter][08/29/2025 16:11:26.971] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1739928654] 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] [08/29/2025 16:11:26.971] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - Exiting completed 04:11:26,972 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - Exiting completed 04:11:26,972 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - Shutting down... [INFO] [08/29/2025 16:11:26.972] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - Shutting down... 04:11:26,972 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.251:17355] - Successfully shut down [INFO] [08/29/2025 16:11:26.972] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.251:17355] - Successfully shut down [INFO] [08/29/2025 16:11:26.973] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.251:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [08/29/2025 16:11:26.973] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.251:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 04:11:26,974 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 04:11:26,974 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 04:11:26,976 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [08/29/2025 16:11:26.976] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.251:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [08/29/2025 16:11:26.976] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger