[DEBUG] [08/01/2025 21:06:56.820] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 09:06:56,820 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/01/2025 21:06:56.821] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/01/2025 21:06:56.821] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/01/2025 21:06:56.831] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.57:17355] with UID [-1885129859205713328] 09:06:56,831 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.57:17355] with UID [-1885129859205713328] [INFO] [08/01/2025 21:06:56.831] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.57:17355] - Starting up, Pekko version [1.1.4] ... 09:06:56,831 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.57:17355] - Starting up, Pekko version [1.1.4] ... [INFO] [08/01/2025 21:06:56.834] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.57:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/01/2025 21:06:56.834] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.57:17355] - Started up successfully 09:06:56,834 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.57:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 09:06:56,834 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.57:17355] - Started up successfully [INFO] [08/01/2025 21:06:56.835] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.57:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 09:06:56,836 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.57:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/01/2025 21:06:56.836] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.57:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:06:56,836 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.57:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:06:56,852 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:56,991 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 09:06:56,992 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 09:06:56,992 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#282923098] 09:06:57,4 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#277129696] 09:06:57,4 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#1267914287] 09:06:57,10 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,12 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]]} 09:06:57,13 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:06:57,13 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 09:06:57,13 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 09:06:57,13 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:06:57,13 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 09:06:57,14 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} 09:06:57,14 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 09:06:57,14 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 09:06:57,15 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:06:57,15 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:06:57,15 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 09:06:57,16 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#677411616] 09:06:57,27 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#-1030845215] 09:06:57,27 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#366430457] 09:06:57,32 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,34 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 09:06:57,35 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 09:06:57,35 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-9003906] 09:06:57,46 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#1660429560] 09:06:57,46 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-1528859077] 09:06:57,51 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,52 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 09:06:57,53 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 09:06:57,54 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} 09:06:57,54 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 09:06:57,55 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 09:06:57,56 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 09:06:57,56 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 09:06:57,56 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. 09:06:57,56 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 09:06:57,57 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 09:06:57,58 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 09:06:57,58 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:06:57,59 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#-98626201] 09:06:57,70 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-1341531125] 09:06:57,70 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#420150416] 09:06:57,75 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,75 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:06:57,76 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:06:57,76 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,77 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 09:06:57,78 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:06:57,78 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:06:57,78 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:06:57,78 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:06:57,79 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#1357789828] 09:06:57,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#-452408145] 09:06:57,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#1110495711] 09:06:57,94 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,95 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 09:06:57,96 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#226928981] 09:06:57,107 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#178986259] 09:06:57,107 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#419999450] 09:06:57,111 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,112 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 09:06:57,113 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:06:57,113 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-1087973468] 09:06:57,124 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#290368229] 09:06:57,124 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#698506205] 09:06:57,129 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 09:06:57,129 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,133 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:06:57,133 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:06:57,133 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:06:57,134 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:06:57,134 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:06:57,134 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 09:06:57,135 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:06:57,135 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:06:57,138 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 09:06:57,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#752571310] 09:06:57,149 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#-1497736277] 09:06:57,149 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#-1113629605] 09:06:57,152 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 09:06:57,153 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,154 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]]} 09:06:57,154 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 09:06:57,154 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} 09:06:57,155 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:06:57,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#1449956930] 09:06:57,166 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-210775497] 09:06:57,166 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#-1124514856] 09:06:57,170 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 09:06:57,170 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,171 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:06:57,171 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:06:57,172 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:06:57,172 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:06:57,172 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:06:57,172 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:06:57,173 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:06:57,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:06:57,174 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 09:06:57,174 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]]} 09:06:57,175 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 09:06:57,175 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} 09:06:57,175 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 09:06:57,176 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-284882884] 09:06:57,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#847799063] 09:06:57,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-1258360360] 09:06:57,191 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,192 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:06:57,194 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#-1429202358] 09:06:57,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#-1459869730] 09:06:57,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#70174217] 09:06:57,209 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:06:57,209 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,210 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 09:06:57,212 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]]} 09:06:57,212 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:06:57,212 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:06:57,212 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:06:57,212 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:06:57,212 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:06:57,212 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} 09:06:57,212 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:06:57,212 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:06:57,212 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:06:57,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#-1382109075] 09:06:57,224 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#261282745] 09:06:57,224 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-2066057900] 09:06:57,228 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 09:06:57,229 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,229 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]]} 09:06:57,230 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:06:57,230 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:06:57,230 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:06:57,230 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:06:57,230 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 09:06:57,230 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} 09:06:57,230 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:06:57,230 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:06:57,230 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:06:57,230 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:06:57,230 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:06:57,230 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:06:57,231 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]]} 09:06:57,231 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:06:57,231 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:06:57,231 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:06:57,231 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 09:06:57,231 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:06:57,232 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:06:57,233 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} 09:06:57,234 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 09:06:57,234 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:06:57,234 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:06:57,234 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:06:57,234 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#16156735] 09:06:57,245 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#-1486349001] 09:06:57,245 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#1949522539] 09:06:57,248 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 09:06:57,248 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,249 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 09:06:57,251 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 09:06:57,251 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} 09:06:57,251 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 09:06:57,252 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-1538602610] 09:06:57,263 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-1618281903] 09:06:57,263 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#339292025] 09:06:57,269 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,274 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#72135084] 09:06:57,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#810284608] 09:06:57,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#313551320] 09:06:57,289 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 09:06:57,290 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,290 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:06:57,290 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 09:06:57,291 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]]} 09:06:57,291 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:06:57,292 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:06:57,292 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:06:57,292 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:06:57,292 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:06:57,292 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} 09:06:57,292 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:06:57,292 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 09:06:57,292 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 09:06:57,292 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 09:06:57,293 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 09:06:57,293 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#1237060622] 09:06:57,304 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-1622056058] 09:06:57,304 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#-973167623] 09:06:57,307 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [08/01/2025 21:06:57.310] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@292b4426 09:06:57,310 PM [test-pekko.actor.default-dispatcher-7] [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'. [INFO] [pekkoDeadLetter][08/01/2025 21:06:57.310] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:06:57,312 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 09:06:57,312 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:06:57,312 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:06:57,313 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 09:06:57,314 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:06:57,314 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 09:06:57,314 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 09:06:57,314 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:06:57,317 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 09:06:57,317 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:06:57,317 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:06:57,317 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 09:06:57,317 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:06:57,317 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 09:06:57,322 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:06:57,322 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:06:57,322 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 09:06:57,322 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 09:06:57,322 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 09:06:57,322 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 09:06:57,322 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688D2C71-133DB763.tmp 09:06:57,327 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688D2C71-133DB763.v1 09:06:57,327 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688D2C71-133DB763.v1 09:06:57,327 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:06:57,327 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:06:57,327 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:06:57,327 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-01T21:06:57.322811747Z, file=/tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688D2C71-133DB763.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:06:57,327 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 4.695 ms, resetting timer for the next recovery snapshot 09:06:57,327 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 09:06:57,327 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 09:06:57,327 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 09:06:57,327 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 09:06:57,327 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:06:57,327 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 281.4 μs with journalIndex=1 09:06:57,328 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 09:06:57,429 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688D2C71-133DB763.v1 09:06:57,429 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:06:57,429 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:06:57,429 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:06:57,430 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-01T21:06:57.322811747Z, file=/tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688D2C71-133DB763.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 09:06:57,430 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 09:06:57,431 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 09:06:57,431 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 3 commands after 117.1 ms 09:06:57,438 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 09:06:57,438 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 3 completion(s) pending 09:06:57,438 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 3 completion(s) 09:06:57,438 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 3 commands in 6.917 ms 09:06:57,438 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:06:57,438 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:06:57,438 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08c0d48@427e4f29} 09:06:57,438 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:06:57,439 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 09:06:57,439 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 09:06:57,439 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 09:06:57,439 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 09:06:57,439 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 09:06:57,439 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 09:06:57,439 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08c0d48@427e4f29} 09:06:57,439 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 7.694 ms 09:06:57,439 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d769770] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688D2C71-1A2D7561.tmp [WARN] [08/01/2025 21:06:57.439] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 09:06:57,439 PM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/01/2025 21:06:57.439] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:06:57,441 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d769770] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688D2C71-1A2D7561.v1 09:06:57,441 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d769770] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688D2C71-133DB763.v1 09:06:57,442 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d769770] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688D2C71-1A2D7561.v1 09:06:57,442 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d769770] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:06:57,442 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d769770] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:06:57,442 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d769770] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:06:57,442 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d769770] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-01T21:06:57.322811747Z, file=/tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688D2C71-133DB763.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:06:57,442 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d769770] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-01T21:06:57.439186785Z, file=/tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688D2C71-1A2D7561.v1, size=555, entryCompress=NONE, stateCompress=NONE} 09:06:57,442 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d769770] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:06:57,442 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:06:57,442 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-08-01T21:06:57.439186785Z 09:06:57,442 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 09:06:57,442 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.926 ms 09:06:57,443 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 09:06:57,443 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 09:06:57,443 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 09:06:57,443 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:06:57,443 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 243.2 μs 09:06:57,443 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:06:57,443 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:06:57,633 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688D2C71-1A2D7561.v1 09:06:57,633 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:06:57,633 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:06:57,633 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:06:57,633 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-01T21:06:57.439186785Z, file=/tmp/junit-7980296877814434538/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688D2C71-1A2D7561.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 09:06:57,637 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#1824500240] 09:06:57,648 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#-1139358875] 09:06:57,648 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-1198298060] 09:06:57,648 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 09:06:57,648 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#815,testCaptureSnapshotOnLastEntryInAppendEntries-writer-157]/waiting 09:06:57,649 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 205.9 ms 09:06:57,649 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 22.75 μs 09:06:57,649 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 09:06:57,649 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 09:06:57,649 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 09:06:57,649 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:06:57,649 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:06:57,654 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-396289482] 09:06:57,667 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#1266681289] 09:06:57,667 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-1493860817] 09:06:57,671 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 09:06:57,671 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,673 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 09:06:57,673 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:06:57,674 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#-1502801914] 09:06:57,685 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#433739757] 09:06:57,685 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#254689592] 09:06:57,690 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 09:06:57,690 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,691 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 09:06:57,691 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]]} 09:06:57,692 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:06:57,692 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:06:57,692 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:06:57,692 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:06:57,692 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:06:57,692 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} 09:06:57,692 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:06:57,693 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:06:57,693 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:06:57,693 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#-1349354977] 09:06:57,704 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-2094527682] 09:06:57,704 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#2053974792] 09:06:57,708 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 09:06:57,708 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,709 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 09:06:57,710 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]]} 09:06:57,710 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 09:06:57,710 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} 09:06:57,711 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:06:57,711 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 09:06:57,711 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]]} 09:06:57,712 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 09:06:57,712 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} 09:06:57,712 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:06:57,713 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#-1760684042] 09:06:57,723 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#668424155] 09:06:57,723 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#-267061510] 09:06:57,727 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,727 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#-444147965] 09:06:57,737 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#1960075806] 09:06:57,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#-188043217] 09:06:57,740 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 09:06:57,740 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,741 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 09:06:57,742 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]]} 09:06:57,742 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 09:06:57,742 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} 09:06:57,743 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:06:57,743 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:06:57,744 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]]} 09:06:57,744 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 09:06:57,744 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} 09:06:57,745 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:06:57,746 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]]} 09:06:57,746 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 09:06:57,746 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} 09:06:57,747 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:06:57,747 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#-1748512554] 09:06:57,758 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#-36639741] 09:06:57,758 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#825640223] 09:06:57,765 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 09:06:57,765 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,767 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]]} 09:06:57,767 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:06:57,767 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 09:06:57,767 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:06:57,767 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:06:57,767 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:06:57,767 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} 09:06:57,768 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:06:57,768 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:06:57,768 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 09:06:57,768 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#434079644] 09:06:57,769 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#1065476858] 09:06:57,769 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#-668148934] 09:06:57,772 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 09:06:57,772 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,773 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:06:57,774 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader498 09:06:57,774 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader498 09:06:57,775 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 09:06:57,775 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#1578640620] 09:06:57,776 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-1905025651] 09:06:57,776 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#2018915611] 09:06:57,778 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 09:06:57,778 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,778 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 09:06:57,779 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]]} 09:06:57,779 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:06:57,779 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:06:57,779 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:06:57,779 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:06:57,779 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:06:57,779 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} 09:06:57,779 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:06:57,779 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:06:57,779 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:06:57,780 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#-296213652] 09:06:57,780 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#-721977913] 09:06:57,780 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#1078635366] 09:06:57,782 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:06:57,782 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,782 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 09:06:57,783 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]]} 09:06:57,783 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 09:06:57,783 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} 09:06:57,784 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:06:57,784 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#1536730065] 09:06:57,785 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#553161458] 09:06:57,785 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#1815921292] 09:06:57,787 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [08/01/2025 21:06:57.788] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@13cf05d0 [INFO] [pekkoDeadLetter][08/01/2025 21:06:57.788] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:06:57,788 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:06:57,788 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 09:06:57,788 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:06:57,789 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:06:57,789 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 09:06:57,789 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:06:57,789 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 09:06:57,789 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 09:06:57,789 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:06:57,791 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 09:06:57,791 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:06:57,791 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:06:57,791 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 09:06:57,791 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:06:57,791 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 09:06:57,794 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:06:57,794 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 09:06:57,794 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 09:06:57,794 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 09:06:57,794 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 09:06:57,794 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 09:06:57,794 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688D2C71-2F604EC6.tmp 09:06:57,822 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688D2C71-2F604EC6.v1 09:06:57,822 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:06:57,822 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:06:57,822 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:06:57,822 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688D2C71-2F604EC6.v1 09:06:57,822 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-01T21:06:57.794840774Z, file=/tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688D2C71-2F604EC6.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:06:57,822 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 28.11 ms, resetting timer for the next recovery snapshot 09:06:57,822 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and can restore from snapshot 09:06:57,823 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 09:06:57,823 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 09:06:57,823 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 09:06:57,823 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:06:57,823 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 250.8 μs with journalIndex=1 09:06:57,823 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 09:06:57,824 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 34.56 ms 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 09:06:57,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 09:06:57,829 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 09:06:57,829 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 09:06:57,829 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 4.460 ms 09:06:57,829 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 2.700 μs 09:06:57,829 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:06:57,829 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c08c0d48@4572909a} 09:06:57,829 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:06:57,829 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c08c0d48@4572909a} 09:06:57,829 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 09:06:57,830 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 09:06:57,830 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 09:06:57,830 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 1.012 ms 09:06:57,830 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 09:06:57,830 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:06:57,830 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:06:57,830 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 09:06:57,830 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 09:06:57,830 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 09:06:57,830 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 09:06:57,830 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 09:06:57,830 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 09:06:57,830 PM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c08c0d48@4572909a} 09:06:57,830 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 5.817 ms 09:06:57,830 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d738540] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688D2C71-318027C7.tmp [WARN] [08/01/2025 21:06:57.830] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 09:06:57,831 PM [test-pekko.actor.default-dispatcher-5] [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'. [INFO] [pekkoDeadLetter][08/01/2025 21:06:57.831] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:06:57,832 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d738540] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688D2C71-318027C7.v1 09:06:57,833 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d738540] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688D2C71-318027C7.v1 09:06:57,833 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d738540] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:06:57,833 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d738540] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:06:57,833 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d738540] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:06:57,833 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d738540] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688D2C71-2F604EC6.v1 09:06:57,833 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d738540] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-01T21:06:57.794840774Z, file=/tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688D2C71-2F604EC6.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:06:57,833 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d738540] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-01T21:06:57.830482375Z, file=/tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688D2C71-318027C7.v1, size=539, entryCompress=NONE, stateCompress=NONE} 09:06:57,833 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d738540] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:06:57,833 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 09:06:57,833 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-08-01T21:06:57.830482375Z 09:06:57,833 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 09:06:57,834 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.805 ms 09:06:57,834 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 09:06:57,834 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 09:06:57,834 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 09:06:57,834 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:06:57,834 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 140.3 μs 09:06:57,834 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:06:57,834 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 09:06:57,975 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688D2C71-318027C7.v1 09:06:57,975 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:06:57,975 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:06:57,975 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:06:57,975 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-01T21:06:57.830482375Z, file=/tmp/junit-3277940730744330069/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688D2C71-318027C7.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 09:06:57,978 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-893183356] 09:06:57,979 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#172352004] 09:06:57,980 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#-283089477] 09:06:57,980 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 09:06:57,980 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#822,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158]/waiting 09:06:57,980 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 146.4 ms 09:06:57,980 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 17.40 μs 09:06:57,980 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 09:06:57,981 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 09:06:57,981 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 09:06:57,981 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:06:57,981 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:06:57,986 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 09:06:57,986 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,987 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 09:06:57,988 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]]} 09:06:57,988 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 09:06:57,988 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} 09:06:57,988 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 09:06:57,989 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#1126253538] 09:06:57,989 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#-1182485398] 09:06:57,989 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#-802285984] 09:06:57,992 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 09:06:57,992 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,993 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 09:06:57,993 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 09:06:57,993 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 09:06:57,993 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 09:06:57,993 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 09:06:57,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#1848112821] 09:06:57,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#1896306465] 09:06:57,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#1790727180] 09:06:57,996 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 09:06:57,996 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:57,996 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 09:06:57,997 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]]} 09:06:57,997 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:06:57,997 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:06:57,997 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:06:57,997 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 09:06:57,997 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:06:57,997 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 09:06:57,997 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:06:57,997 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 09:06:57,997 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 09:06:57,997 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} 09:06:57,997 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:06:57,997 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 09:06:57,997 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:06:57,997 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:06:57,997 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:06:57,997 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:06:57,998 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:06:57,998 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:06:57,998 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:06:57,998 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:06:57,998 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#-491311603] 09:06:57,998 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-1138954095] 09:06:57,998 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-29617649] 09:06:58,0 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 09:06:58,0 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:58,1 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 09:06:58,1 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 09:06:58,1 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#1309076511] 09:06:58,2 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#-1816994208] 09:06:58,2 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#726864053] 09:06:58,3 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 09:06:58,4 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:58,4 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:06:58,4 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:06:58,4 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:06:58,4 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:06:58,5 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 09:06:58,5 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]]} 09:06:58,5 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 09:06:58,5 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:06:58,5 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:06:58,5 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 09:06:58,5 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:06:58,5 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:06:58,5 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} 09:06:58,5 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 09:06:58,5 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:06:58,6 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:06:58,6 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:06:58,6 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#-503320375] 09:06:58,6 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#-1090938648] 09:06:58,6 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#-1369186256] 09:06:58,8 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 09:06:58,8 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:58,9 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 09:06:58,9 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]]} 09:06:58,9 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 09:06:58,9 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} 09:06:58,10 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:06:58,10 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:06:58,10 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]]} 09:06:58,10 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 09:06:58,10 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} 09:06:58,10 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:06:58,10 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:06:58,11 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]]} 09:06:58,11 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 09:06:58,11 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} 09:06:58,11 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:06:58,11 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#936630244] 09:06:58,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#1806409229] 09:06:58,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#1249571537] 09:06:58,14 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 09:06:58,14 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:58,214 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:06:58,214 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.57:17355, Removed) 09:06:58,214 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 09:06:58,214 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:06:58,214 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:06:58,215 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:06:58,215 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#-544271158] 09:06:58,216 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#1285863769] 09:06:58,217 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#-592293567] 09:06:58,221 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:58,222 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 09:06:58,473 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:06:58,473 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-766942395] 09:06:58,484 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#1143367899] 09:06:58,484 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#1576538168] 09:06:58,489 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 09:06:58,489 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:58,490 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 09:06:58,491 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 09:06:58,491 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#-1190253030] 09:06:58,502 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#1204868104] 09:06:58,502 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-982421859] 09:06:58,505 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 09:06:58,505 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:58,506 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]]} 09:06:58,506 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:06:58,506 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 09:06:58,506 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:06:58,506 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:06:58,506 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 09:06:58,506 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:06:58,506 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} 09:06:58,506 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 09:06:58,506 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:06:58,507 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:06:58,507 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:06:58,507 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:06:58,507 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:06:58,507 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:06:58,507 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:06:58,507 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:06:58,507 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:06:58,507 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 09:06:58,507 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 09:06:58,508 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-428171799] 09:06:58,518 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#1899386229] 09:06:58,518 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#138492050] 09:06:58,521 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 09:06:58,522 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:58,522 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:06:58,522 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:06:58,522 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:06:58,523 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:06:58,524 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]]} 09:06:58,524 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} 09:06:58,525 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#2087056231] 09:06:58,526 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-501869225] 09:06:58,526 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#1839700334] 09:06:58,530 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 09:06:58,530 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:58,531 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 09:06:58,531 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 09:06:58,532 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:06:58,532 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:06:58,532 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:06:58,532 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#-275939899] 09:06:58,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#1976388534] 09:06:58,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#-1161848094] 09:06:58,534 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [08/01/2025 21:06:58.535] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6cb17f0b 09:06:58,535 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'. [INFO] [pekkoDeadLetter][08/01/2025 21:06:58.535] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:06:58,536 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:06:58,536 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:06:58,536 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:06:58,536 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 09:06:58,537 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:06:58,537 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 09:06:58,537 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 09:06:58,537 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:06:58,539 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 09:06:58,539 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:06:58,539 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:06:58,539 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 09:06:58,539 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:06:58,540 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 09:06:58,543 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:06:58,543 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:06:58,543 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 09:06:58,543 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 09:06:58,543 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 09:06:58,544 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:06:58,544 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-206DA51A.tmp 09:06:58,547 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-206DA51A.v1 09:06:58,547 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-206DA51A.v1 09:06:58,547 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:06:58,547 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:06:58,547 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:06:58,547 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-01T21:06:58.544056602Z, file=/tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-206DA51A.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:06:58,547 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 3.787 ms, resetting timer for the next recovery snapshot 09:06:58,547 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 09:06:58,547 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 09:06:58,547 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 09:06:58,548 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 09:06:58,548 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:06:58,548 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 225.7 μs with journalIndex=1 09:06:58,549 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 09:06:58,649 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-206DA51A.v1 09:06:58,650 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:06:58,650 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:06:58,650 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:06:58,650 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-01T21:06:58.544056602Z, file=/tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-206DA51A.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 09:06:58,651 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]]} 09:06:58,651 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 09:06:58,651 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:06:58,651 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 09:06:58,651 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:06:58,651 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 114.4 ms 09:06:58,652 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 09:06:58,652 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:06:58,652 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 09:06:58,652 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:06:58,652 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 09:06:58,652 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 09:06:58,652 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} 09:06:58,652 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 09:06:58,652 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 09:06:58,652 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 09:06:58,652 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 09:06:58,652 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 09:06:58,652 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 09:06:58,653 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 09:06:58,653 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 09:06:58,653 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 09:06:58,653 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 09:06:58,653 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 09:06:58,653 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 09:06:58,653 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 09:06:58,653 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 09:06:58,653 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 09:06:58,656 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:06:58,656 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 4.215 ms 09:06:58,656 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 3.930 μs 09:06:58,656 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:06:58,656 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:06:58,656 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08c0d48@766a7425} 09:06:58,656 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 09:06:58,659 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 09:06:58,659 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 09:06:58,659 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 3.727 ms 09:06:58,659 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:06:58,660 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 09:06:58,660 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:06:58,660 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/0x00000007c08c0d48@766a7425} 09:06:58,660 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:06:58,660 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] 09:06:58,660 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 09:06:58,660 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 09:06:58,660 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:06:58,660 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d337906] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-275AAE0E.tmp 09:06:58,660 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 09:06:58,660 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 09:06:58,661 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/0x00000007c08c0d48@766a7425} 09:06:58,661 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 7.652 ms [WARN] [08/01/2025 21:06:58.661] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/01/2025 21:06:58.661] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:06:58,661 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:06:58,662 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d337906] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-275AAE0E.v1 09:06:58,662 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d337906] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-206DA51A.v1 09:06:58,662 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d337906] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-275AAE0E.v1 09:06:58,662 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d337906] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:06:58,662 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d337906] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:06:58,663 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d337906] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:06:58,663 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d337906] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-01T21:06:58.544056602Z, file=/tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-206DA51A.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:06:58,663 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d337906] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-01T21:06:58.660254222Z, file=/tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-275AAE0E.v1, size=573, entryCompress=NONE, stateCompress=NONE} 09:06:58,663 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d337906] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:06:58,663 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:06:58,663 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-08-01T21:06:58.660254222Z 09:06:58,663 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 09:06:58,663 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 09:06:58,663 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.522 ms 09:06:58,663 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 09:06:58,663 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 09:06:58,663 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:06:58,663 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 163.2 μs 09:06:58,663 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:06:58,663 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:06:58,894 PM [test-pekko.actor.default-dispatcher-12] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 09:06:58,903 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-275AAE0E.v1 09:06:58,903 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:06:58,903 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:06:58,903 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:06:58,903 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-01T21:06:58.660254222Z, file=/tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-275AAE0E.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:06:58,905 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:06:58,916 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#825,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159]/waiting 09:06:58,916 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 253.2 ms 09:06:58,917 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 41.56 μs 09:06:58,917 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 09:06:58,917 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:06:58,917 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:06:58,917 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:06:58,917 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [08/01/2025 21:06:58.919] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@3c9d4ed4 [INFO] [pekkoDeadLetter][08/01/2025 21:06:58.919] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:06:58,919 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:06:58,920 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:06:58,920 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:06:58,920 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:06:58,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 09:06:58,921 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 09:06:58,921 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 09:06:58,922 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 09:06:58,922 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:06:58,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:06:58,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-275AAE0E.v1 09:06:58,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:06:58,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:06:58,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:06:58,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-01T21:06:58.660254222Z, file=/tmp/junit-1492834717417616325/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688D2C72-275AAE0E.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:06:58,924 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:06:58,925 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-08-01T21:06:58.660254222Z 09:06:58,925 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:06:58,925 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 406.5 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 09:06:58,925 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 547.6 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 09:06:58,925 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 09:06:58,925 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:06:58,925 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 09:06:58,925 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 09:06:58,925 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 09:06:58,925 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 09:06:58,925 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 09:06:58,925 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 124.3 μs with journalIndex=4 09:06:58,926 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#-2107097843] 09:06:58,937 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#1340166075] 09:06:58,937 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#1644090650] 09:06:58,937 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:06:58,937 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#830,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/waiting 09:06:58,938 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 15.93 ms 09:06:58,938 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 13.43 μs 09:06:58,938 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 09:06:58,938 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:06:58,938 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:06:58,938 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:06:58,938 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:06:58,944 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 09:06:58,944 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:59,244 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:06:59,375 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:06:59,375 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 09:06:59,625 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 09:06:59,825 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 09:06:59,825 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#403315016] 09:06:59,837 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#1009137744] 09:06:59,837 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#-1861583067] 09:06:59,842 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:06:59,843 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:06:59,843 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 09:06:59,843 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:06:59,843 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:06:59,843 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:06:59,844 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#-662954182] 09:06:59,855 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#-179176925] 09:06:59,855 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#-1723917083] 09:06:59,856 PM [test-pekko.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [08/01/2025 21:06:59.856] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 09:06:59,859 PM [test-pekko.actor.default-dispatcher-5] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#2004526902] 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/01/2025 21:06:59.858] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.57:17355) [INFO] [pekkoDeadLetter][08/01/2025 21:06:59.859] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#2004526902] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:06:59,859 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.57:17355] - Exiting completed [INFO] [08/01/2025 21:06:59.859] [test-pekko.actor.internal-dispatcher-11] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.57:17355] - Exiting completed [INFO] [08/01/2025 21:06:59.859] [test-pekko.actor.internal-dispatcher-11] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.57:17355] - Shutting down... 09:06:59,859 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.57:17355] - Shutting down... [INFO] [08/01/2025 21:06:59.859] [test-pekko.actor.internal-dispatcher-11] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.57:17355] - Successfully shut down 09:06:59,859 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.57:17355] - Successfully shut down [INFO] [08/01/2025 21:06:59.861] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.57:17355/system/remoting-terminator] Shutting down remote daemon. 09:06:59,862 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [08/01/2025 21:06:59.862] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.57:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 09:06:59,862 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 09:06:59,864 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [08/01/2025 21:06:59.864] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.57:17355/system/remoting-terminator] Remoting shut down.