[DEBUG] [08/08/2025 21:18:58.212] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 09:18:58,212 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/08/2025 21:18:58.213] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/08/2025 21:18:58.213] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/08/2025 21:18:58.224] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.124:17355] with UID [-4787975287916235533] 09:18:58,225 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.124:17355] with UID [-4787975287916235533] [INFO] [08/08/2025 21:18:58.225] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.124:17355] - Starting up, Pekko version [1.1.4] ... 09:18:58,225 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.124:17355] - Starting up, Pekko version [1.1.4] ... [INFO] [08/08/2025 21:18:58.227] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.124:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 09:18:58,227 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.124:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/08/2025 21:18:58.227] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.124:17355] - Started up successfully 09:18:58,227 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.124:17355] - Started up successfully 09:18:58,228 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.124:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 09:18:58,228 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.124:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [08/08/2025 21:18:58.228] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.124:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/08/2025 21:18:58.228] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.124:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:18:58,256 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,373 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 09:18:58,373 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 09:18:58,375 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-1816871383] 09:18:58,389 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#942010990] 09:18:58,389 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#1370363404] 09:18:58,396 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,399 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 09:18:58,400 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:18:58,400 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 09:18:58,400 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 09:18:58,400 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:18:58,400 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 09:18:58,401 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:58,401 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 09:18:58,401 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 09:18:58,402 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:18:58,402 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:18:58,402 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 09:18:58,403 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#1727566021] 09:18:58,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#-1922216714] 09:18:58,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#40784981] 09:18:58,417 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,419 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 09:18:58,420 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 09:18:58,420 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-1364968830] 09:18:58,431 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#1044003273] 09:18:58,431 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#1987071360] 09:18:58,434 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,435 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 09:18:58,435 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 09:18:58,436 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:58,436 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 09:18:58,437 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 09:18:58,438 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 09:18:58,438 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 09:18:58,438 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 09:18:58,438 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 09:18:58,439 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 09:18:58,439 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 09:18:58,440 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:18:58,441 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#428645475] 09:18:58,451 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-343725096] 09:18:58,451 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#-1395034426] 09:18:58,455 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,455 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:18:58,455 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:18:58,456 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,456 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 09:18:58,456 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:18:58,456 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:18:58,457 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:18:58,457 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:18:58,457 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#658825562] 09:18:58,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#196887481] 09:18:58,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-1423830894] 09:18:58,472 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,473 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 09:18:58,474 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#1919108353] 09:18:58,485 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#1566608120] 09:18:58,485 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#876623877] 09:18:58,489 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,490 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 09:18:58,490 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:18:58,490 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-173073087] 09:18:58,501 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-1385310281] 09:18:58,501 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#812799906] 09:18:58,504 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 09:18:58,504 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,506 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:18:58,506 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:18:58,507 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:18:58,507 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:18:58,507 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:18:58,507 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 09:18:58,507 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:18:58,507 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:18:58,511 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 09:18:58,512 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#1299769860] 09:18:58,522 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#506938427] 09:18:58,522 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#933204042] 09:18:58,525 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 09:18:58,526 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,527 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 09:18:58,527 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 09:18:58,527 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:58,527 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:18:58,528 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#1023332542] 09:18:58,538 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#1364731670] 09:18:58,538 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#-720268249] 09:18:58,542 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 09:18:58,542 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,543 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:18:58,543 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:18:58,543 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:18:58,543 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:18:58,544 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:18:58,544 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:18:58,544 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:18:58,545 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:18:58,545 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:18:58,545 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:18:58,546 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:18:58,546 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:58,546 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 09:18:58,547 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-2062277986] 09:18:58,557 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-535027904] 09:18:58,558 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#1236931120] 09:18:58,561 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,562 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:18:58,563 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#-1655494040] 09:18:58,573 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#1414153947] 09:18:58,574 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-1987237230] 09:18:58,577 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:18:58,577 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,577 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:18:58,578 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:18:58,578 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:18:58,578 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:18:58,578 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:18:58,578 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:18:58,578 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:18:58,579 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:58,579 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:18:58,579 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:18:58,579 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:18:58,580 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#-1183346014] 09:18:58,591 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#902531069] 09:18:58,591 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#728724309] 09:18:58,594 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 09:18:58,594 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,596 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 09:18:58,596 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:18:58,596 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:18:58,596 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:18:58,596 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:18:58,596 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 09:18:58,596 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:58,596 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:18:58,596 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:18:58,597 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:18:58,597 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:18:58,597 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:18:58,597 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:18:58,598 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 09:18:58,598 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:18:58,598 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:18:58,598 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:18:58,598 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 09:18:58,598 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:18:58,599 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:18:58,599 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:58,599 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 09:18:58,599 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:18:58,599 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:18:58,599 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:18:58,600 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-998657538] 09:18:58,611 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#624211411] 09:18:58,611 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#597775331] 09:18:58,614 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 09:18:58,614 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,615 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 09:18:58,616 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:18:58,616 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:58,616 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 09:18:58,617 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#347587185] 09:18:58,627 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-1051408798] 09:18:58,628 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#1385966434] 09:18:58,631 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,635 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#781739381] 09:18:58,645 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#1530648156] 09:18:58,645 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#-1282739744] 09:18:58,649 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 09:18:58,649 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:58,649 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:18:58,651 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:18:58,651 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:18:58,651 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:18:58,652 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:18:58,652 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:18:58,652 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:18:58,652 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:18:58,652 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:58,652 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:18:58,652 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 09:18:58,652 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 09:18:58,652 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 09:18:58,652 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 09:18:58,653 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-825163585] 09:18:58,663 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-827716554] 09:18:58,663 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#971869806] 09:18:58,667 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [08/08/2025 21:18:58.671] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@5122eb69 [INFO] [pekkoDeadLetter][08/08/2025 21:18:58.671] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:18:58,672 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:18:58,674 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 09:18:58,674 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:18:58,674 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:18:58,675 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 09:18:58,675 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:18:58,675 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 09:18:58,676 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 09:18:58,676 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:18:58,677 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 09:18:58,677 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:18:58,678 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:18:58,678 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 09:18:58,678 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:18:58,678 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 09:18:58,682 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:18:58,682 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:18:58,682 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 09:18:58,682 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 09:18:58,682 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 09:18:58,682 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 09:18:58,683 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689669C2-28B5CA54.tmp 09:18:58,687 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689669C2-28B5CA54.v1 09:18:58,687 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689669C2-28B5CA54.v1 09:18:58,687 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:18:58,687 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:18:58,687 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:18:58,688 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-08T21:18:58.683002452Z, file=/tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689669C2-28B5CA54.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:18:58,688 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 5.231 ms, resetting timer for the next recovery snapshot 09:18:58,688 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 09:18:58,688 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 09:18:58,688 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 09:18:58,688 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 09:18:58,688 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:18:58,688 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 334.4 μs with journalIndex=1 09:18:58,689 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 09:18:58,790 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689669C2-28B5CA54.v1 09:18:58,790 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:18:58,790 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:18:58,790 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:18:58,790 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-08T21:18:58.683002452Z, file=/tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689669C2-28B5CA54.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 09:18:58,791 PM [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]]} 09:18:58,791 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 09:18:58,791 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:18:58,791 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 09:18:58,791 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:18:58,792 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 116.1 ms 09:18:58,792 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 09:18:58,792 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:18:58,792 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 09:18:58,792 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 09:18:58,792 PM [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} 09:18:58,793 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 09:18:58,793 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:18:58,793 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 09:18:58,793 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 09:18:58,793 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 09:18:58,793 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 09:18:58,793 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 09:18:58,793 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 09:18:58,793 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 09:18:58,793 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 09:18:58,793 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 09:18:58,795 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:18:58,795 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:18:58,795 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 3.197 ms 09:18:58,795 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 4.010 μs 09:18:58,795 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:18:58,795 PM [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/0x00000007c08bcf60@39e7e493} 09:18:58,795 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 09:18:58,796 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 09:18:58,796 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 09:18:58,796 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 09:18:58,796 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 721.5 μs 09:18:58,796 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:18:58,796 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:18:58,796 PM [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] 09:18:58,796 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 09:18:58,796 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 09:18:58,796 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 09:18:58,796 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 09:18:58,796 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 09:18:58,796 PM [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/0x00000007c08bcf60@39e7e493} 09:18:58,796 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d654618] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689669C2-2F7A1E21.tmp 09:18:58,796 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 3.259 ms [WARN] [08/08/2025 21:18:58.797] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/08/2025 21:18:58.797] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:18:58,797 PM [test-pekko.actor.default-dispatcher-12] [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'. 09:18:58,798 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d654618] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689669C2-2F7A1E21.v1 09:18:58,798 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d654618] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689669C2-2F7A1E21.v1 09:18:58,799 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d654618] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689669C2-28B5CA54.v1 09:18:58,799 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d654618] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:18:58,799 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d654618] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:18:58,799 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d654618] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:18:58,799 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d654618] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-08T21:18:58.683002452Z, file=/tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689669C2-28B5CA54.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:18:58,799 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d654618] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-08T21:18:58.796532257Z, file=/tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689669C2-2F7A1E21.v1, size=555, entryCompress=NONE, stateCompress=NONE} 09:18:58,799 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d654618] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:18:58,799 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:18:58,799 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-08-08T21:18:58.796532257Z 09:18:58,799 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 09:18:58,799 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.494 ms 09:18:58,799 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 09:18:58,799 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 09:18:58,800 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 09:18:58,800 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:18:58,800 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 314.9 μs 09:18:58,800 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:18:58,800 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 09:18:58,993 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689669C2-2F7A1E21.v1 09:18:58,993 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:18:58,993 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 09:18:58,994 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 09:18:58,994 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-08T21:18:58.796532257Z, file=/tmp/junit-14482545002244080915/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000689669C2-2F7A1E21.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 09:18:58,997 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#-1813949877] 09:18:59,8 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#-245103875] 09:18:59,8 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#504001803] 09:18:59,8 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 09:18:59,8 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#818,testCaptureSnapshotOnLastEntryInAppendEntries-writer-157]/waiting 09:18:59,9 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 208.9 ms 09:18:59,9 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 31.09 μs 09:18:59,9 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 09:18:59,9 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 09:18:59,9 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 09:18:59,9 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:18:59,9 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:18:59,17 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,18 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-2037125806] 09:18:59,19 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#2071875489] 09:18:59,19 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-847621502] 09:18:59,22 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 09:18:59,22 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,23 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 09:18:59,23 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:18:59,24 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#1068124905] 09:18:59,24 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#-1364230391] 09:18:59,24 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#-1398425072] 09:18:59,27 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 09:18:59,27 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,28 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:18:59,28 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:18:59,28 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:18:59,28 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:18:59,28 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:18:59,28 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:18:59,28 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:18:59,29 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,29 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:18:59,29 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:18:59,29 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:18:59,29 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#1942220458] 09:18:59,30 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#910541176] 09:18:59,30 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-1350853518] 09:18:59,32 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 09:18:59,32 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,32 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:18:59,33 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:18:59,33 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:18:59,33 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,33 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:18:59,33 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 09:18:59,33 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:18:59,34 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 09:18:59,34 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,34 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:18:59,34 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#1637751599] 09:18:59,34 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-1292206276] 09:18:59,35 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#-912708112] 09:18:59,36 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,36 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#1214252853] 09:18:59,37 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#-1567177143] 09:18:59,37 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#708961811] 09:18:59,38 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 09:18:59,39 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,39 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:18:59,39 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:18:59,39 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:18:59,40 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,40 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:18:59,40 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:18:59,40 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:18:59,40 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:18:59,40 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,41 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:18:59,41 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:18:59,41 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:18:59,41 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,41 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:18:59,42 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#-1264301822] 09:18:59,42 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#1454933233] 09:18:59,42 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#1204118267] 09:18:59,44 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 09:18:59,44 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,45 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 09:18:59,45 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:18:59,45 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 09:18:59,45 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:18:59,45 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:18:59,45 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:18:59,45 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,45 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:18:59,45 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:18:59,45 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 09:18:59,46 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#1965621492] 09:18:59,46 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#2100716096] 09:18:59,46 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#-1099760104] 09:18:59,49 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 09:18:59,49 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,50 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:18:59,50 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader498 09:18:59,50 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader498 09:18:59,51 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 09:18:59,52 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#828993446] 09:18:59,52 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#1086850847] 09:18:59,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#598799096] 09:18:59,55 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 09:18:59,55 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,55 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:18:59,56 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:18:59,56 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:18:59,56 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:18:59,56 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:18:59,56 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:18:59,56 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:18:59,56 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,56 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:18:59,56 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:18:59,56 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:18:59,56 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#1164587115] 09:18:59,57 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#48292587] 09:18:59,57 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#635584545] 09:18:59,59 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:18:59,59 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,59 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:18:59,60 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:18:59,60 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:18:59,60 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,60 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:18:59,60 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#380582031] 09:18:59,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#1062194539] 09:18:59,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#-931541005] 09:18:59,62 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [08/08/2025 21:18:59.063] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@b8a6813 [INFO] [pekkoDeadLetter][08/08/2025 21:18:59.063] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:18:59,63 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:18:59,63 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 09:18:59,63 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:18:59,63 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:18:59,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 09:18:59,64 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:18:59,64 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 09:18:59,64 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 09:18:59,64 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:18:59,65 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 09:18:59,65 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:18:59,65 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:18:59,66 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 09:18:59,66 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:18:59,66 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 09:18:59,70 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:18:59,70 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 09:18:59,70 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 09:18:59,70 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 09:18:59,70 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 09:18:59,70 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 09:18:59,70 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689669C3-0435E65F.tmp 09:18:59,73 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689669C3-0435E65F.v1 09:18:59,73 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689669C3-0435E65F.v1 09:18:59,73 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:18:59,73 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:18:59,73 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:18:59,73 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-08T21:18:59.070641247Z, file=/tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689669C3-0435E65F.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:18:59,73 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.183 ms, resetting timer for the next recovery snapshot 09:18:59,73 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and can restore from snapshot 09:18:59,73 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 09:18:59,73 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 09:18:59,73 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 09:18:59,74 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:18:59,74 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 219.6 μs with journalIndex=1 09:18:59,74 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 09:18:59,75 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 10.76 ms 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 09:18:59,75 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 09:18:59,78 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 09:18:59,78 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 3.331 ms 09:18:59,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 09:18:59,78 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 5.140 μs 09:18:59,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:18:59,78 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c08bcf60@c0e674c} 09:18:59,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:18:59,78 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c08bcf60@c0e674c} 09:18:59,78 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 09:18:59,79 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 09:18:59,79 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 09:18:59,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 09:18:59,79 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 863.2 μs 09:18:59,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:18:59,79 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:18:59,79 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 09:18:59,79 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 09:18:59,79 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 09:18:59,79 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 09:18:59,80 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 09:18:59,80 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 09:18:59,80 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c08bcf60@c0e674c} 09:18:59,80 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.354 ms 09:18:59,80 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d856804] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689669C3-04C3B90D.tmp [WARN] [08/08/2025 21:18:59.080] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 09:18:59,80 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/08/2025 21:18:59.080] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:18:59,82 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d856804] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689669C3-04C3B90D.v1 09:18:59,82 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d856804] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689669C3-0435E65F.v1 09:18:59,82 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d856804] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:18:59,82 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d856804] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689669C3-04C3B90D.v1 09:18:59,82 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d856804] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:18:59,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d856804] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:18:59,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d856804] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-08T21:18:59.070641247Z, file=/tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689669C3-0435E65F.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:18:59,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d856804] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-08T21:18:59.079935757Z, file=/tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689669C3-04C3B90D.v1, size=539, entryCompress=NONE, stateCompress=NONE} 09:18:59,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d856804] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:18:59,83 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 09:18:59,83 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-08-08T21:18:59.079935757Z 09:18:59,83 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 09:18:59,83 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 09:18:59,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.738 ms 09:18:59,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 09:18:59,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 09:18:59,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:18:59,83 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 09:18:59,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 219.9 μs 09:18:59,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 09:18:59,226 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:18:59,226 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689669C3-04C3B90D.v1 09:18:59,226 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 09:18:59,226 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 09:18:59,226 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-08-08T21:18:59.079935757Z, file=/tmp/junit-3867349582393794889/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000689669C3-04C3B90D.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 09:18:59,227 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#730956963] 09:18:59,238 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#-127655709] 09:18:59,238 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#1949486820] 09:18:59,238 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 09:18:59,238 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#823,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158]/waiting 09:18:59,238 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 155.1 ms 09:18:59,239 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 13.84 μs 09:18:59,239 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 09:18:59,239 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 09:18:59,239 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 09:18:59,239 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:18:59,239 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:18:59,242 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 09:18:59,242 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,243 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:18:59,244 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 09:18:59,244 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 09:18:59,244 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,245 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 09:18:59,245 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#-1719740961] 09:18:59,256 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#-388177711] 09:18:59,256 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#1417727710] 09:18:59,260 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 09:18:59,260 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,260 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 09:18:59,261 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 09:18:59,262 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 09:18:59,262 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 09:18:59,262 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 09:18:59,263 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#-881168268] 09:18:59,274 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#844321015] 09:18:59,274 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#2007609449] 09:18:59,277 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 09:18:59,277 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,278 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 09:18:59,278 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 09:18:59,279 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:18:59,279 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:18:59,279 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:18:59,279 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 09:18:59,279 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:18:59,279 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 09:18:59,279 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:18:59,279 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 09:18:59,279 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 09:18:59,279 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,280 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:18:59,280 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 09:18:59,280 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:18:59,280 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:18:59,280 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:18:59,280 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:18:59,280 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:18:59,280 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:18:59,280 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:18:59,280 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:18:59,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#329206200] 09:18:59,292 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-42744486] 09:18:59,292 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#12545816] 09:18:59,295 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 09:18:59,295 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,296 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 09:18:59,296 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 09:18:59,297 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#1273899182] 09:18:59,308 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#856254677] 09:18:59,308 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#1030290] 09:18:59,310 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 09:18:59,311 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,311 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:18:59,312 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:18:59,312 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:18:59,312 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:18:59,313 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 09:18:59,314 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 09:18:59,314 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 09:18:59,314 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:18:59,314 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:18:59,314 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 09:18:59,314 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:18:59,314 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:18:59,314 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,315 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 09:18:59,315 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:18:59,315 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:18:59,315 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:18:59,316 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#-414913727] 09:18:59,327 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#1307938520] 09:18:59,327 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#1157576235] 09:18:59,331 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 09:18:59,331 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,331 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:18:59,332 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:18:59,332 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:18:59,332 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,332 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:18:59,332 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:18:59,333 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:18:59,333 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:18:59,333 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,333 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:18:59,334 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:18:59,334 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:18:59,334 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 09:18:59,334 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,334 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:18:59,335 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#921674090] 09:18:59,345 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#-1482130760] 09:18:59,345 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-765768559] 09:18:59,348 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 09:18:59,348 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,549 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:18:59,549 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.124:17355, Removed) 09:18:59,549 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 09:18:59,549 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:18:59,549 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:18:59,549 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:18:59,549 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#-707813839] 09:18:59,560 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#-1314577722] 09:18:59,561 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#-610377922] 09:18:59,564 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,565 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 09:18:59,716 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:18:59,716 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-192591267] 09:18:59,727 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-1597073332] 09:18:59,727 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#612594732] 09:18:59,732 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 09:18:59,732 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,733 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 09:18:59,734 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 09:18:59,735 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#-228106550] 09:18:59,735 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#513678453] 09:18:59,735 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-172030228] 09:18:59,738 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 09:18:59,738 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,739 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 09:18:59,739 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:18:59,739 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 09:18:59,739 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:18:59,739 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:18:59,739 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 09:18:59,739 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:18:59,739 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,739 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 09:18:59,739 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:18:59,740 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:18:59,740 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:18:59,740 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:18:59,740 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:18:59,740 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:18:59,740 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:18:59,740 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:18:59,740 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:18:59,740 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 09:18:59,740 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 09:18:59,741 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-1512491018] 09:18:59,742 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#-118992750] 09:18:59,742 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#2079900512] 09:18:59,744 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 09:18:59,744 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,745 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:18:59,745 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:18:59,745 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:18:59,745 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:18:59,746 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 09:18:59,746 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,746 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#294471500] 09:18:59,747 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#75653408] 09:18:59,747 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#1674011112] 09:18:59,749 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 09:18:59,749 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:18:59,749 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 09:18:59,749 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 09:18:59,750 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:18:59,750 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:18:59,750 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:18:59,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#154867362] 09:18:59,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#-419396042] 09:18:59,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#520544943] 09:18:59,752 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [08/08/2025 21:18:59.753] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@55f6576 [INFO] [pekkoDeadLetter][08/08/2025 21:18:59.753] [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'. 09:18:59,753 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:18:59,753 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:18:59,753 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:18:59,753 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:18:59,754 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 09:18:59,754 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 09:18:59,754 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 09:18:59,754 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 09:18:59,754 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:18:59,755 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 09:18:59,755 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:18:59,755 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:18:59,756 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 09:18:59,756 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:18:59,756 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 09:18:59,757 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:18:59,757 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:18:59,757 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 09:18:59,757 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 09:18:59,757 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 09:18:59,757 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:18:59,757 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-2D2C0A8B.tmp 09:18:59,758 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-2D2C0A8B.v1 09:18:59,759 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-2D2C0A8B.v1 09:18:59,759 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:18:59,759 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:18:59,759 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:18:59,759 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-08T21:18:59.757861003Z, file=/tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-2D2C0A8B.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:18:59,759 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 1.360 ms, resetting timer for the next recovery snapshot 09:18:59,759 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 09:18:59,759 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 09:18:59,759 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 09:18:59,759 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 09:18:59,759 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 09:18:59,759 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 141.8 μs with journalIndex=1 09:18:59,759 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 09:18:59,860 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-2D2C0A8B.v1 09:18:59,860 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:18:59,860 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:18:59,860 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:18:59,861 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-08T21:18:59.757861003Z, file=/tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-2D2C0A8B.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 09:18:59,861 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 09:18:59,861 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 09:18:59,861 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:18:59,861 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 09:18:59,861 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:18:59,861 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 09:18:59,861 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:18:59,861 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 09:18:59,861 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:18:59,861 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 09:18:59,861 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 107.2 ms 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 09:18:59,862 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 09:18:59,866 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:18:59,866 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:18:59,866 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 4.246 ms 09:18:59,866 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:18:59,866 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 4.420 μs 09:18:59,866 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08bcf60@4a4a10e6} 09:18:59,866 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 09:18:59,867 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 09:18:59,868 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 09:18:59,868 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 09:18:59,868 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.672 ms 09:18:59,868 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:18:59,868 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:18:59,868 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08bcf60@4a4a10e6} 09:18:59,868 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:18:59,868 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 09:18:59,868 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 09:18:59,868 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 09:18:59,868 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:18:59,868 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 09:18:59,868 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 09:18:59,868 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08bcf60@4a4a10e6} 09:18:59,868 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d301643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-33C11084.tmp 09:18:59,868 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.973 ms [WARN] [08/08/2025 21:18:59.868] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/08/2025 21:18:59.868] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:18:59,869 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:18:59,870 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d301643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-33C11084.v1 09:18:59,870 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d301643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-2D2C0A8B.v1 09:18:59,870 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d301643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-33C11084.v1 09:18:59,870 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d301643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:18:59,871 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d301643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:18:59,871 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d301643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:18:59,871 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d301643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-08T21:18:59.757861003Z, file=/tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-2D2C0A8B.v1, size=419, entryCompress=NONE, stateCompress=NONE} 09:18:59,871 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d301643] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-08T21:18:59.868290692Z, file=/tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-33C11084.v1, size=573, entryCompress=NONE, stateCompress=NONE} 09:18:59,871 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d301643] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:18:59,871 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:18:59,871 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-08-08T21:18:59.868290692Z 09:18:59,871 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 09:18:59,871 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 09:18:59,871 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.564 ms 09:18:59,871 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 09:18:59,871 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 09:18:59,871 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:18:59,871 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 220.5 μs 09:18:59,871 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:18:59,871 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:19:00,86 PM [test-pekko.actor.default-dispatcher-7] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 09:19:00,114 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-33C11084.v1 09:19:00,114 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:19:00,114 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:19:00,114 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:19:00,114 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-08T21:18:59.868290692Z, file=/tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-33C11084.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:19:00,116 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:19:00,127 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#826,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159]/waiting 09:19:00,127 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 255.4 ms 09:19:00,127 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 16.65 μs 09:19:00,127 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 09:19:00,127 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:19:00,127 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:19:00,127 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:19:00,127 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [08/08/2025 21:19:00.129] [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@ab22b5b [INFO] [pekkoDeadLetter][08/08/2025 21:19:00.129] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:19:00,129 PM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:19:00,129 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:19:00,129 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:19:00,129 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:19:00,130 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 09:19:00,131 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 09:19:00,131 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 09:19:00,131 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 09:19:00,131 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 09:19:00,132 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:19:00,132 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-33C11084.v1 09:19:00,132 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:19:00,132 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 09:19:00,132 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 09:19:00,132 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-08T21:18:59.868290692Z, file=/tmp/junit-15121134131464913817/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000689669C3-33C11084.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:19:00,133 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:19:00,133 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-08-08T21:18:59.868290692Z 09:19:00,133 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:19:00,133 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 145.2 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 09:19:00,134 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 268.5 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 09:19:00,134 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 09:19:00,134 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:19:00,134 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 09:19:00,134 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 09:19:00,134 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 09:19:00,134 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 09:19:00,134 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 09:19:00,134 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 118.0 μs with journalIndex=4 09:19:00,134 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#1736076740] 09:19:00,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#869027733] 09:19:00,145 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-962208124] 09:19:00,146 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:19:00,146 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#831,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/waiting 09:19:00,146 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 14.95 ms 09:19:00,146 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 11.17 μs 09:19:00,146 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 09:19:00,146 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:19:00,146 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 09:19:00,146 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:19:00,146 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:19:00,150 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 09:19:00,150 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:19:00,450 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:19:00,581 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:19:00,581 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 09:19:00,831 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 09:19:01,31 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 09:19:01,32 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#-1325744671] 09:19:01,43 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#467325820] 09:19:01,44 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#1653139601] 09:19:01,48 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:19:01,48 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:19:01,48 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 09:19:01,48 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:19:01,48 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:19:01,49 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:19:01,49 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#1966712911] 09:19:01,50 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#851635977] 09:19:01,50 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#-1470113428] 09:19:01,52 PM [test-pekko.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [08/08/2025 21:19:01.052] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/08/2025 21:19:01.053] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.124:17355) [INFO] [pekkoDeadLetter][08/08/2025 21:19:01.053] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1713281275] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:19:01,53 PM [test-pekko.actor.default-dispatcher-12] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1713281275] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [08/08/2025 21:19:01.054] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.124:17355] - Exiting completed [INFO] [08/08/2025 21:19:01.054] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.124:17355] - Shutting down... 09:19:01,54 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.124:17355] - Exiting completed 09:19:01,54 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.124:17355] - Shutting down... 09:19:01,56 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.124:17355] - Successfully shut down [INFO] [08/08/2025 21:19:01.055] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.124:17355] - Successfully shut down [INFO] [08/08/2025 21:19:01.056] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.124:17355/system/remoting-terminator] Shutting down remote daemon. 09:19:01,57 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 09:19:01,57 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/08/2025 21:19:01.057] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.124:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/08/2025 21:19:01.058] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.124:17355/system/remoting-terminator] Remoting shut down. 09:19:01,59 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [08/08/2025 21:19:01.059] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger