[DEBUG] [08/02/2025 07:45:05.219] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 07:45:05,220 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/02/2025 07:45:05.220] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/02/2025 07:45:05.220] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/02/2025 07:45:05.232] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.63:17355] with UID [-4180995651836214964] 07:45:05,232 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.63:17355] with UID [-4180995651836214964] 07:45:05,233 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.63:17355] - Starting up, Pekko version [1.1.4] ... [INFO] [08/02/2025 07:45:05.233] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.63:17355] - Starting up, Pekko version [1.1.4] ... [INFO] [08/02/2025 07:45:05.235] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.63:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/02/2025 07:45:05.235] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.63:17355] - Started up successfully 07:45:05,236 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.63:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 07:45:05,236 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.63:17355] - Started up successfully [INFO] [08/02/2025 07:45:05.236] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.63:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/02/2025 07:45:05.236] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.63:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:45:05,236 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.63:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 07:45:05,236 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.63:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:45:05,271 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,364 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 07:45:05,365 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 07:45:05,365 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#945535223] 07:45:05,376 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-1828515930] 07:45:05,376 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#-1526667993] 07:45:05,380 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,382 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 07:45:05,382 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:05,382 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:45:05,382 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:45:05,383 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:45:05,383 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 07:45:05,383 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,383 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 07:45:05,383 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 07:45:05,385 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:45:05,385 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:45:05,385 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 07:45:05,386 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-1296607453] 07:45:05,397 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#1669524834] 07:45:05,397 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#1991939574] 07:45:05,400 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,402 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 07:45:05,402 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 07:45:05,403 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-562874039] 07:45:05,413 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#-880867493] 07:45:05,414 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#150299057] 07:45:05,416 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,416 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:45:05,417 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 07:45:05,418 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,418 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 07:45:05,418 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 07:45:05,419 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 07:45:05,419 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 07:45:05,419 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 07:45:05,419 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 07:45:05,420 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 07:45:05,421 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 07:45:05,421 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:45:05,422 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#752156345] 07:45:05,433 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#455131000] 07:45:05,433 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#2063752421] 07:45:05,436 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,436 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:45:05,437 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:45:05,437 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,437 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 07:45:05,438 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:45:05,438 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:45:05,439 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:45:05,439 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:45:05,439 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-1024870376] 07:45:05,450 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#-952397753] 07:45:05,450 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-1996033754] 07:45:05,455 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,457 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 07:45:05,458 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#-2041348716] 07:45:05,468 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-258392403] 07:45:05,468 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-747103750] 07:45:05,472 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,473 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 07:45:05,474 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:45:05,474 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#1352561657] 07:45:05,485 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-170657926] 07:45:05,485 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#1521971022] 07:45:05,488 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 07:45:05,489 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,491 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:45:05,492 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:45:05,492 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:45:05,493 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:45:05,495 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:45:05,495 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 07:45:05,495 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:45:05,495 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:45:05,497 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 07:45:05,498 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#599386554] 07:45:05,502 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#105133134] 07:45:05,502 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#-1528681399] 07:45:05,506 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 07:45:05,506 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,507 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 07:45:05,507 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 07:45:05,508 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,508 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:45:05,508 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#-777919205] 07:45:05,509 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#1725983915] 07:45:05,509 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#-494873795] 07:45:05,512 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 07:45:05,512 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,512 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:45:05,512 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:45:05,512 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:45:05,512 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:45:05,512 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:45:05,512 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:45:05,513 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:45:05,513 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:45:05,513 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:05,514 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:05,514 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:45:05,515 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,515 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 07:45:05,515 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#251776885] 07:45:05,515 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-1338257121] 07:45:05,516 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#484144327] 07:45:05,523 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,523 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:45:05,524 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#303231841] 07:45:05,525 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#1827447839] 07:45:05,525 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#509666058] 07:45:05,528 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:45:05,528 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,528 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:05,528 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:05,528 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:05,528 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:45:05,528 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:45:05,528 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:45:05,529 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:45:05,529 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,529 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:05,529 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:45:05,529 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:45:05,529 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#-1411071736] 07:45:05,530 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#1501535390] 07:45:05,530 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-256783819] 07:45:05,533 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 07:45:05,533 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,533 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 07:45:05,534 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:05,534 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:45:05,534 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:45:05,534 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:45:05,534 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 07:45:05,534 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,534 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:45:05,534 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:45:05,534 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:45:05,534 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:45:05,534 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:45:05,534 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:45:05,535 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 07:45:05,535 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:45:05,535 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:45:05,535 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:45:05,535 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 07:45:05,535 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:45:05,535 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:45:05,535 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,535 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 07:45:05,535 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:45:05,536 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:45:05,536 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:45:05,536 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#442085056] 07:45:05,536 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#-1051879652] 07:45:05,536 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#2019244265] 07:45:05,539 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 07:45:05,539 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,539 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:45:05,539 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:45:05,539 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,540 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 07:45:05,540 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#28645186] 07:45:05,540 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-1390555481] 07:45:05,540 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#-108252731] 07:45:05,543 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,547 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#382049894] 07:45:05,548 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#1538474509] 07:45:05,548 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#1472043233] 07:45:05,554 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 07:45:05,555 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,555 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:45:05,556 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:05,556 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:05,556 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:05,556 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:45:05,556 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:45:05,556 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:45:05,556 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:45:05,556 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,556 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:05,556 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 07:45:05,556 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 07:45:05,556 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 07:45:05,556 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 07:45:05,557 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-1257225881] 07:45:05,557 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#2126455534] 07:45:05,557 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#-329323320] 07:45:05,566 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [08/02/2025 07:45:05.569] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@520a639b [INFO] [pekkoDeadLetter][08/02/2025 07:45:05.569] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:45:05,569 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:45:05,571 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 07:45:05,572 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:45:05,572 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:45:05,572 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:45:05,573 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:45:05,573 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 07:45:05,573 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 07:45:05,573 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:45:05,575 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 07:45:05,575 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:45:05,575 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:45:05,575 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:45:05,575 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:45:05,575 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 07:45:05,577 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:45:05,577 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:45:05,577 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 07:45:05,578 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 07:45:05,578 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 07:45:05,578 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 07:45:05,578 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688DC201-22753320.tmp 07:45:05,581 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688DC201-22753320.v1 07:45:05,581 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688DC201-22753320.v1 07:45:05,581 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:45:05,581 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:45:05,581 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:45:05,582 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-02T07:45:05.578106144Z, file=/tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688DC201-22753320.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:45:05,582 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 4.045 ms, resetting timer for the next recovery snapshot 07:45:05,582 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 07:45:05,582 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 07:45:05,582 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 07:45:05,582 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 07:45:05,582 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:45:05,582 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 179.6 μs with journalIndex=1 07:45:05,583 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 07:45:05,683 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688DC201-22753320.v1 07:45:05,683 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:45:05,683 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:45:05,683 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:45:05,683 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-02T07:45:05.578106144Z, file=/tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688DC201-22753320.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 07:45:05,684 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 111.2 ms 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 07:45:05,684 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 07:45:05,685 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 07:45:05,685 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 07:45:05,685 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 07:45:05,685 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 07:45:05,685 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 07:45:05,688 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:45:05,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:45:05,688 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 3.850 ms 07:45:05,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:45:05,688 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 4.361 μs 07:45:05,688 AM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08bdd60@67b65f23} 07:45:05,688 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 07:45:05,689 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 07:45:05,689 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 07:45:05,689 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 850.9 μs 07:45:05,689 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 07:45:05,689 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:45:05,689 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:45:05,689 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 07:45:05,689 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 07:45:05,689 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 07:45:05,689 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 07:45:05,689 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 07:45:05,689 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 07:45:05,689 AM [test-pekko.actor.default-dispatcher-6] [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/0x00000007c08bdd60@67b65f23} 07:45:05,690 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d968839] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688DC201-291D9AAE.tmp 07:45:05,690 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.827 ms [WARN] [08/02/2025 07:45:05.690] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 07:45:05,690 AM [test-pekko.actor.default-dispatcher-6] [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/02/2025 07:45:05.690] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:45:05,692 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d968839] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688DC201-291D9AAE.v1 07:45:05,692 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d968839] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688DC201-22753320.v1 07:45:05,692 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d968839] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688DC201-291D9AAE.v1 07:45:05,692 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d968839] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:45:05,692 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d968839] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:45:05,692 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d968839] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:45:05,692 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d968839] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-02T07:45:05.578106144Z, file=/tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688DC201-22753320.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:45:05,692 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d968839] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-02T07:45:05.689805998Z, file=/tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688DC201-291D9AAE.v1, size=555, entryCompress=NONE, stateCompress=NONE} 07:45:05,692 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d968839] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:45:05,692 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:45:05,692 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-08-02T07:45:05.689805998Z 07:45:05,692 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 07:45:05,693 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 07:45:05,693 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.489 ms 07:45:05,693 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 07:45:05,693 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 07:45:05,693 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:45:05,693 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:45:05,693 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 341.0 μs 07:45:05,693 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:45:05,886 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688DC201-291D9AAE.v1 07:45:05,886 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:45:05,886 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:45:05,886 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:45:05,886 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-02T07:45:05.689805998Z, file=/tmp/junit-18257798019014634258/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000688DC201-291D9AAE.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 07:45:05,889 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#588382230] 07:45:05,900 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#1535560324] 07:45:05,900 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-1941572964] 07:45:05,901 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 07:45:05,901 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#819,testCaptureSnapshotOnLastEntryInAppendEntries-writer-157]/waiting 07:45:05,901 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 207.9 ms 07:45:05,901 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 21.17 μs 07:45:05,901 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 07:45:05,901 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:45:05,901 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:45:05,901 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:45:05,902 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:45:05,908 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,909 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#1747041767] 07:45:05,919 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#-868755272] 07:45:05,920 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-1166735635] 07:45:05,922 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 07:45:05,922 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,923 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 07:45:05,923 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:45:05,924 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#1530172318] 07:45:05,934 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#1701750076] 07:45:05,934 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#-397311509] 07:45:05,938 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 07:45:05,938 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,938 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:05,939 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:05,939 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:05,939 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:45:05,939 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:45:05,939 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:45:05,939 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:45:05,939 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,940 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:05,940 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:45:05,940 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:45:05,941 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#-1792373116] 07:45:05,951 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-1209160247] 07:45:05,951 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-1720913497] 07:45:05,957 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 07:45:05,957 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,958 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:05,958 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:05,959 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:45:05,959 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,959 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:05,959 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 07:45:05,960 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:05,960 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 07:45:05,961 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,961 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:45:05,961 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#1035842180] 07:45:05,972 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#989714692] 07:45:05,973 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#1484399983] 07:45:05,977 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,978 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#350105311] 07:45:05,989 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#272826033] 07:45:05,989 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#510885653] 07:45:05,992 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 07:45:05,993 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:05,994 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:05,995 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:05,995 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:45:05,995 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,995 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:05,996 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:45:05,996 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:05,996 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:45:05,996 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,996 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:45:05,997 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:05,997 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:45:05,997 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:05,997 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:45:05,997 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#-802534755] 07:45:05,998 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#800859079] 07:45:05,998 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#-2117023857] 07:45:06,0 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 07:45:06,1 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,1 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 07:45:06,2 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:06,2 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 07:45:06,2 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:45:06,2 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:45:06,2 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:45:06,2 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:06,2 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:45:06,2 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:45:06,2 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 07:45:06,3 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#764386067] 07:45:06,3 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#-1290816958] 07:45:06,3 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#-2109403862] 07:45:06,6 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 07:45:06,6 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,7 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:45:06,8 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader498 07:45:06,8 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader498 07:45:06,9 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 07:45:06,10 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#-1973112732] 07:45:06,10 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#1315389705] 07:45:06,10 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#-1374010102] 07:45:06,12 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 07:45:06,12 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,13 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:06,13 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:06,13 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:06,13 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:45:06,13 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:45:06,13 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:45:06,13 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:45:06,14 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:06,14 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:06,14 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:45:06,14 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:45:06,14 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#2050169648] 07:45:06,15 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#1459165477] 07:45:06,15 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#79863153] 07:45:06,16 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:45:06,17 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,17 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:06,17 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:06,18 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:45:06,18 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:06,18 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:06,18 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#-1077076894] 07:45:06,19 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#-748831374] 07:45:06,19 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#-1309445261] 07:45:06,21 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [08/02/2025 07:45:06.022] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@39be87db [INFO] [pekkoDeadLetter][08/02/2025 07:45:06.022] [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'. 07:45:06,22 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:45:06,23 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 07:45:06,23 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:45:06,23 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:45:06,23 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 07:45:06,24 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:45:06,24 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 07:45:06,24 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 07:45:06,24 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:45:06,25 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 07:45:06,25 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:45:06,25 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:45:06,25 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 07:45:06,25 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:45:06,25 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 07:45:06,28 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:45:06,28 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 07:45:06,28 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 07:45:06,28 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 07:45:06,28 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 07:45:06,28 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 07:45:06,28 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688DC202-01AE63C6.tmp 07:45:06,31 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688DC202-01AE63C6.v1 07:45:06,31 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688DC202-01AE63C6.v1 07:45:06,31 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:45:06,31 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:45:06,31 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:45:06,31 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-02T07:45:06.028206022Z, file=/tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688DC202-01AE63C6.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:45:06,31 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.426 ms, resetting timer for the next recovery snapshot 07:45:06,31 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and can restore from snapshot 07:45:06,31 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 07:45:06,31 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 07:45:06,31 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 07:45:06,31 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:45:06,31 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 206.4 μs with journalIndex=1 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:45:06,32 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 8.250 ms 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 07:45:06,32 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 07:45:06,33 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 07:45:06,35 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:45:06,35 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:45:06,35 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 2.780 ms 07:45:06,35 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:45:06,35 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 2.650 μs 07:45:06,35 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08bdd60@54aa0493} 07:45:06,35 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 07:45:06,36 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 07:45:06,36 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 07:45:06,36 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 07:45:06,36 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 1.250 ms 07:45:06,36 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:45:06,36 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:45:06,36 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08bdd60@54aa0493} 07:45:06,36 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:45:06,36 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 07:45:06,37 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 07:45:06,37 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 07:45:06,37 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 07:45:06,37 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 07:45:06,37 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 07:45:06,37 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08bdd60@54aa0493} 07:45:06,37 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.077 ms 07:45:06,37 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d291339] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688DC202-0235B786.tmp [WARN] [08/02/2025 07:45:06.037] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/02/2025 07:45:06.037] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:45:06,37 AM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:45:06,38 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d291339] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688DC202-0235B786.v1 07:45:06,38 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d291339] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688DC202-01AE63C6.v1 07:45:06,38 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d291339] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688DC202-0235B786.v1 07:45:06,38 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d291339] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:45:06,39 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d291339] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:45:06,39 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d291339] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:45:06,39 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d291339] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-02T07:45:06.028206022Z, file=/tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688DC202-01AE63C6.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:45:06,39 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d291339] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-02T07:45:06.037074822Z, file=/tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688DC202-0235B786.v1, size=539, entryCompress=NONE, stateCompress=NONE} 07:45:06,39 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d291339] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:45:06,39 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:45:06,39 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-08-02T07:45:06.037074822Z 07:45:06,39 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 07:45:06,39 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 07:45:06,39 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.506 ms 07:45:06,39 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 07:45:06,39 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 07:45:06,39 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:45:06,39 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 118.1 μs 07:45:06,39 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:45:06,39 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:45:06,183 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688DC202-0235B786.v1 07:45:06,183 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:45:06,183 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:45:06,183 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:45:06,184 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-02T07:45:06.037074822Z, file=/tmp/junit-4720799353604545576/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000688DC202-0235B786.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 07:45:06,186 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#353559614] 07:45:06,187 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#35435872] 07:45:06,187 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#-597805067] 07:45:06,187 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 07:45:06,187 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#824,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158]/waiting 07:45:06,188 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 148.5 ms 07:45:06,188 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 17.97 μs 07:45:06,188 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 07:45:06,188 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:45:06,188 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:45:06,188 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:45:06,188 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:45:06,192 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 07:45:06,192 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,193 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:06,194 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 07:45:06,194 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 07:45:06,195 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:06,195 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 07:45:06,195 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#1060042856] 07:45:06,196 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#997767622] 07:45:06,196 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#736393588] 07:45:06,198 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 07:45:06,198 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,199 AM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:45:06,199 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 07:45:06,199 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 07:45:06,199 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 07:45:06,199 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 07:45:06,200 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#-1180052774] 07:45:06,200 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#-1441480109] 07:45:06,200 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#-211478053] 07:45:06,202 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 07:45:06,202 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,202 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 07:45:06,202 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 07:45:06,203 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:45:06,203 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:45:06,203 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:45:06,203 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 07:45:06,203 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:45:06,203 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 07:45:06,203 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:45:06,203 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 07:45:06,203 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 07:45:06,203 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:06,203 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:45:06,203 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 07:45:06,203 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:45:06,203 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:45:06,203 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:45:06,203 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:45:06,203 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:45:06,203 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:45:06,203 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:45:06,203 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:45:06,204 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#613289401] 07:45:06,204 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#350679825] 07:45:06,204 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-689794166] 07:45:06,206 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 07:45:06,206 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,206 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 07:45:06,206 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 07:45:06,207 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#463312477] 07:45:06,207 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#-1275524701] 07:45:06,207 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#1812968237] 07:45:06,209 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 07:45:06,209 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,209 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:45:06,209 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:45:06,209 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:45:06,209 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:45:06,210 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 07:45:06,210 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 07:45:06,210 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 07:45:06,210 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:45:06,210 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:45:06,210 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 07:45:06,210 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:45:06,210 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:45:06,210 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:06,210 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 07:45:06,210 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:45:06,210 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:45:06,210 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:45:06,211 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#625148698] 07:45:06,211 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#-2092148214] 07:45:06,211 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#2145247139] 07:45:06,213 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 07:45:06,213 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,213 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:45:06,213 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:06,214 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:45:06,214 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:06,214 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:45:06,214 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:45:06,214 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:06,214 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:45:06,215 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:06,215 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:45:06,215 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:45:06,215 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:45:06,215 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 07:45:06,215 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:06,215 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:45:06,216 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#1807802344] 07:45:06,216 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#-1412712128] 07:45:06,216 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-1150311934] 07:45:06,218 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 07:45:06,218 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,418 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:45:06,418 AM [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.63:17355, Removed) 07:45:06,418 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 07:45:06,418 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:45:06,418 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:45:06,418 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:45:06,419 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#662725534] 07:45:06,430 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#952551706] 07:45:06,430 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#-1270067721] 07:45:06,434 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,434 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 07:45:06,585 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:45:06,585 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#1140913716] 07:45:06,596 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-2098483941] 07:45:06,596 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#-1151653578] 07:45:06,600 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 07:45:06,600 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,602 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 07:45:06,602 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 07:45:06,603 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#-1381716173] 07:45:06,614 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#-1236373457] 07:45:06,614 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-1770033246] 07:45:06,617 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 07:45:06,617 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,618 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 07:45:06,618 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:45:06,618 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 07:45:06,618 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:45:06,619 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:45:06,619 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 07:45:06,619 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:45:06,619 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:06,619 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 07:45:06,619 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:45:06,619 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:45:06,619 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:45:06,619 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:45:06,619 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:45:06,620 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:45:06,620 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:45:06,620 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:45:06,620 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:45:06,620 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 07:45:06,620 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 07:45:06,621 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#1104089665] 07:45:06,631 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#22298406] 07:45:06,632 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#1697770281] 07:45:06,635 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 07:45:06,635 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,636 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:45:06,636 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:45:06,636 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:45:06,636 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:45:06,637 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 07:45:06,638 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:06,638 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#-1259479246] 07:45:06,649 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-1767583381] 07:45:06,649 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#-1518402610] 07:45:06,652 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 07:45:06,652 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:06,653 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 07:45:06,653 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 07:45:06,653 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:45:06,654 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:45:06,654 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:45:06,654 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#1613456880] 07:45:06,665 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#-492749240] 07:45:06,665 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#350740503] 07:45:06,668 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [08/02/2025 07:45:06.669] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2211b774 07:45:06,670 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/02/2025 07:45:06.669] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:45:06,670 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:45:06,670 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:45:06,670 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:45:06,671 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:45:06,671 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:45:06,671 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 07:45:06,671 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:45:06,671 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:45:06,673 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 07:45:06,673 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:45:06,673 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:45:06,673 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:45:06,673 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:45:06,673 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 07:45:06,676 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:45:06,676 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:45:06,676 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 07:45:06,676 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 07:45:06,676 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 07:45:06,676 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:45:06,676 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-284F5235.tmp 07:45:06,679 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-284F5235.v1 07:45:06,679 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-284F5235.v1 07:45:06,679 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:45:06,679 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:45:06,679 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:45:06,679 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-02T07:45:06.676287029Z, file=/tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-284F5235.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:45:06,679 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 3.344 ms, resetting timer for the next recovery snapshot 07:45:06,679 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 07:45:06,679 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:45:06,679 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 07:45:06,679 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 07:45:06,679 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:45:06,679 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 217.8 μs with journalIndex=1 07:45:06,680 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 07:45:06,781 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-284F5235.v1 07:45:06,781 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:45:06,781 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:45:06,781 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:45:06,781 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-02T07:45:06.676287029Z, file=/tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-284F5235.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 07:45:06,781 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 07:45:06,781 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 07:45:06,781 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:45:06,781 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 07:45:06,781 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 07:45:06,782 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 110.1 ms 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 07:45:06,782 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 07:45:06,785 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:45:06,785 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:45:06,785 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:45:06,785 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 3.392 ms 07:45:06,785 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08bdd60@9e8465c} 07:45:06,785 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 07:45:06,785 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 3.610 μs 07:45:06,787 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 07:45:06,787 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 07:45:06,787 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 07:45:06,787 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.583 ms 07:45:06,787 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:45:06,787 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:45:06,787 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08bdd60@9e8465c} 07:45:06,787 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:45:06,787 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 07:45:06,787 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 07:45:06,787 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 07:45:06,787 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:45:06,787 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 07:45:06,787 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 07:45:06,787 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08bdd60@9e8465c} 07:45:06,787 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d737357] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-2EEE3675.tmp 07:45:06,787 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.070 ms [WARN] [08/02/2025 07:45:06.787] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/02/2025 07:45:06.788] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:45:06,788 AM [test-pekko.actor.default-dispatcher-6] [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'. 07:45:06,789 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d737357] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-2EEE3675.v1 07:45:06,789 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d737357] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-2EEE3675.v1 07:45:06,789 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d737357] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-284F5235.v1 07:45:06,789 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d737357] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:45:06,789 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d737357] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:45:06,789 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d737357] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:45:06,789 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d737357] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-02T07:45:06.676287029Z, file=/tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-284F5235.v1, size=419, entryCompress=NONE, stateCompress=NONE} 07:45:06,789 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d737357] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-02T07:45:06.787363445Z, file=/tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-2EEE3675.v1, size=573, entryCompress=NONE, stateCompress=NONE} 07:45:06,789 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d737357] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:45:06,790 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:45:06,790 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-08-02T07:45:06.787363445Z 07:45:06,790 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 07:45:06,790 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.922 ms 07:45:06,790 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 07:45:06,790 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 07:45:06,790 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:45:06,790 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 151.4 μs 07:45:06,790 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:45:06,790 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:45:06,790 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 07:45:07,24 AM [test-pekko.actor.default-dispatcher-5] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 07:45:07,33 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-2EEE3675.v1 07:45:07,33 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:45:07,34 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:45:07,34 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:45:07,34 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-02T07:45:06.787363445Z, file=/tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-2EEE3675.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:45:07,35 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:45:07,46 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#827,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159]/waiting 07:45:07,46 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 256.5 ms 07:45:07,46 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 18.45 μs 07:45:07,46 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:45:07,47 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:45:07,47 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:45:07,47 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:45:07,47 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [08/02/2025 07:45:07.048] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6ad8a2ab [INFO] [pekkoDeadLetter][08/02/2025 07:45:07.048] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:45:07,49 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:45:07,49 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:45:07,49 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:45:07,49 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:45:07,50 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 07:45:07,50 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 07:45:07,50 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 07:45:07,50 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:45:07,50 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:45:07,52 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:45:07,52 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-2EEE3675.v1 07:45:07,52 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:45:07,52 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:45:07,52 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:45:07,52 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-02T07:45:06.787363445Z, file=/tmp/junit-6767736394251413162/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000688DC202-2EEE3675.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:45:07,52 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:45:07,53 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-08-02T07:45:06.787363445Z 07:45:07,53 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:45:07,53 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 133.9 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 07:45:07,53 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 208.6 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 07:45:07,53 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 07:45:07,53 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:45:07,53 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 07:45:07,53 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:45:07,53 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 07:45:07,53 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 07:45:07,53 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 07:45:07,53 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 86.81 μs with journalIndex=4 07:45:07,54 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#1065530251] 07:45:07,64 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#-806628824] 07:45:07,64 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-1955614511] 07:45:07,65 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:45:07,65 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#833,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/waiting 07:45:07,65 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 14.54 ms 07:45:07,65 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 13.60 μs 07:45:07,65 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:45:07,65 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:45:07,65 AM [test-pekko.actor.default-dispatcher-14] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:45:07,65 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:45:07,65 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:45:07,70 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 07:45:07,70 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:07,371 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:45:07,501 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:45:07,501 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 07:45:07,751 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 07:45:07,952 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 07:45:07,952 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#-2132519086] 07:45:07,963 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#1300234616] 07:45:07,963 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#-1104478711] 07:45:07,967 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:45:07,968 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:45:07,968 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 07:45:07,968 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:45:07,968 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:45:07,968 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:45:07,969 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#-1599857301] 07:45:07,979 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#-748000122] 07:45:07,980 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#-1497050227] [INFO] [08/02/2025 07:45:07.981] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 07:45:07,981 AM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/02/2025 07:45:07.982] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.63:17355) [INFO] [pekkoDeadLetter][08/02/2025 07:45:07.982] [test-pekko.actor.default-dispatcher-14] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-2069780077] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:45:07,982 AM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-2069780077] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:45:07,982 AM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.63:17355] - Exiting completed [INFO] [08/02/2025 07:45:07.982] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.63:17355] - Exiting completed 07:45:07,982 AM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.63:17355] - Shutting down... [INFO] [08/02/2025 07:45:07.982] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.63:17355] - Shutting down... [INFO] [08/02/2025 07:45:07.982] [test-pekko.actor.internal-dispatcher-9] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.63:17355] - Successfully shut down 07:45:07,983 AM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.63:17355] - Successfully shut down [INFO] [08/02/2025 07:45:07.984] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.63:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [08/02/2025 07:45:07.984] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.63:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 07:45:07,984 AM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 07:45:07,984 AM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 07:45:07,985 AM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [08/02/2025 07:45:07.985] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.63:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [08/02/2025 07:45:07.986] [test-pekko.actor.internal-dispatcher-9] [EventStream] shutting down: StandardOutLogger