[DEBUG] [03/26/2026 14:43:26.199] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 02:43:26,200 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/26/2026 14:43:26.200] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [03/26/2026 14:43:26.200] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [03/26/2026 14:43:26.210] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.99:17355] with UID [-7211814473242777806] [INFO] [03/26/2026 14:43:26.211] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.99:17355] - Starting up, Pekko version [1.4.0] ... [INFO] [03/26/2026 14:43:26.213] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.99:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [03/26/2026 14:43:26.213] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.99:17355] - Started up successfully 02:43:26,226 PM [test-pekko.actor.default-dispatcher-11] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.99:17355] with UID [-7211814473242777806] [INFO] [03/26/2026 14:43:26.215] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.99:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 02:43:26,226 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.99:17355] - Starting up, Pekko version [1.4.0] ... 02:43:26,226 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.99:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 02:43:26,226 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.99:17355] - Started up successfully 02:43:26,226 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.99:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [03/26/2026 14:43:26.215] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.99:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:43:26,226 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.99:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:43:26,230 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,315 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 02:43:26,316 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 02:43:26,316 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#-1430366372] 02:43:26,318 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#1353795444] 02:43:26,318 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#460371997] 02:43:26,321 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,323 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]]} 02:43:26,324 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:43:26,324 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:43:26,324 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:43:26,324 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:43:26,324 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 02:43:26,325 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} 02:43:26,325 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 02:43:26,325 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 02:43:26,326 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:43:26,326 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:43:26,327 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 02:43:26,327 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#1672492907] 02:43:26,338 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#1462921552] 02:43:26,338 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#293895796] 02:43:26,341 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,343 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 02:43:26,343 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 02:43:26,344 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#1144297532] 02:43:26,355 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-74238919] 02:43:26,355 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#1092370777] 02:43:26,358 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,359 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 02:43:26,360 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 02:43:26,360 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} 02:43:26,361 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 02:43:26,362 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 02:43:26,363 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 02:43:26,363 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 02:43:26,363 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. 02:43:26,363 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 02:43:26,364 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 02:43:26,364 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 02:43:26,365 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:43:26,366 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-2020642770] 02:43:26,377 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#809678503] 02:43:26,377 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#-1695080715] 02:43:26,380 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,380 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:43:26,381 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:43:26,381 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,381 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 02:43:26,382 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:43:26,382 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:43:26,382 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:43:26,382 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:43:26,382 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#1133919996] 02:43:26,393 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#-233246007] 02:43:26,393 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-821606977] 02:43:26,396 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,397 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 02:43:26,398 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#1984064578] 02:43:26,409 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#224710183] 02:43:26,409 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#-1564348645] 02:43:26,412 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,413 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 02:43:26,414 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:43:26,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#1105471428] 02:43:26,425 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#353092193] 02:43:26,425 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-1087380] 02:43:26,428 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 02:43:26,428 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,431 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:43:26,431 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:43:26,431 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:43:26,431 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:43:26,431 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:43:26,431 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 02:43:26,432 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:43:26,432 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:43:26,435 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 02:43:26,435 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-493067061] 02:43:26,447 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-845728145] 02:43:26,447 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#1217528706] 02:43:26,452 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 02:43:26,452 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,454 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]]} 02:43:26,454 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 02:43:26,454 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} 02:43:26,455 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:43:26,455 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#-936013365] 02:43:26,466 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#159962964] 02:43:26,466 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#1616552361] 02:43:26,470 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 02:43:26,470 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,471 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:43:26,471 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:43:26,471 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:43:26,472 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:43:26,472 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:43:26,473 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:43:26,473 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:43:26,474 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:43:26,474 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 02:43:26,474 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]]} 02:43:26,474 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 02:43:26,475 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} 02:43:26,475 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 02:43:26,475 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#382251971] 02:43:26,486 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#692019914] 02:43:26,486 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#792335522] 02:43:26,491 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,492 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:43:26,493 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#1688782174] 02:43:26,503 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#-2076342282] 02:43:26,504 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#1564757565] 02:43:26,508 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:43:26,510 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,510 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 02:43:26,511 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]]} 02:43:26,511 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:43:26,511 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:43:26,511 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:43:26,511 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:43:26,511 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:43:26,511 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} 02:43:26,511 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:43:26,511 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:43:26,511 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:43:26,512 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#14280433] 02:43:26,523 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#-1698360874] 02:43:26,523 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#25102583] 02:43:26,527 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 02:43:26,527 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,528 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]]} 02:43:26,528 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:43:26,528 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:43:26,528 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:43:26,528 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:43:26,528 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 02:43:26,528 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} 02:43:26,529 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:43:26,529 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:43:26,529 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:43:26,529 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:43:26,529 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:43:26,529 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:43:26,530 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]]} 02:43:26,530 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:43:26,530 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:43:26,530 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:43:26,530 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 02:43:26,530 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:43:26,530 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:43:26,530 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} 02:43:26,531 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 02:43:26,531 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:43:26,531 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:43:26,531 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:43:26,531 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-45483969] 02:43:26,542 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#1235297798] 02:43:26,542 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#1773830451] 02:43:26,548 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 02:43:26,548 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,549 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 02:43:26,550 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 02:43:26,551 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} 02:43:26,551 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 02:43:26,551 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#712962571] 02:43:26,562 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#1366583661] 02:43:26,563 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-1466897806] 02:43:26,568 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,571 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-583305637] 02:43:26,582 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-2043817522] 02:43:26,582 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-1077688005] 02:43:26,587 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 02:43:26,587 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,587 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:43:26,588 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 02:43:26,589 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]]} 02:43:26,589 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:43:26,589 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:43:26,589 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:43:26,589 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:43:26,589 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:43:26,590 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} 02:43:26,590 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:43:26,590 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 02:43:26,590 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 02:43:26,590 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 02:43:26,590 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 02:43:26,591 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#1775640897] 02:43:26,601 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-259118577] 02:43:26,601 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-766317455] 02:43:26,606 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 02:43:26,609 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:43:26,610 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [03/26/2026 14:43:26.611] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@622f6763 02:43:26,611 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][03/26/2026 14:43:26.611] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:43:26,611 PM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 02:43:26,612 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:43:26,612 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:43:26,612 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 02:43:26,613 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 02:43:26,613 PM [test-pekko.actor.default-dispatcher-13] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 02:43:26,613 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 02:43:26,613 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 02:43:26,616 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 02:43:26,616 PM [test-pekko.actor.default-dispatcher-13] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 02:43:26,616 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:43:26,616 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:43:26,616 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:43:26,616 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 02:43:26,616 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 02:43:26,616 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 02:43:26,616 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 02:43:26,616 PM [test-pekko.actor.default-dispatcher-13] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 2.933 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 02:43:26,616 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 02:43:26,616 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: writer thread VirtualThread[#626,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/runnable started 02:43:26,616 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 02:43:26,616 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 02:43:26,617 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:43:26,617 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:43:26,617 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:43:26,617 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 02:43:26,617 PM [test-pekko.actor.default-dispatcher-13] [INFO] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Term 1 in "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]]}" message is greater than follower's term 0 - updating term 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [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]]} 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [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} 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 02:43:26,619 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 2.682 ms 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 02:43:26,619 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 02:43:26,623 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 02:43:26,623 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 02:43:26,623 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 3.885 ms 02:43:26,623 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:43:26,623 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.370 μs 02:43:26,623 PM [test-pekko.actor.default-dispatcher-13] [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/0x00000007c0936730@30d76eca} 02:43:26,623 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:43:26,623 PM [test-pekko.actor.default-dispatcher-13] [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] 02:43:26,623 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 02:43:26,623 PM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 02:43:26,623 PM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 02:43:26,623 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 02:43:26,623 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 02:43:26,623 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:43:26,623 PM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 02:43:26,623 PM [test-pekko.actor.default-dispatcher-13] [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/0x00000007c0936730@30d76eca} 02:43:26,623 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 298.7 μs 02:43:26,623 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d504743] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069C5460E-252B60D0.tmp 02:43:26,623 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 02:43:26,623 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.086 ms 02:43:26,623 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [03/26/2026 14:43:26.623] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][03/26/2026 14:43:26.624] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:43:26,624 PM [test-pekko.actor.default-dispatcher-13] [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'. 02:43:26,628 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d504743] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069C5460E-252B60D0.v1 02:43:26,628 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d504743] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069C5460E-252B60D0.v1 02:43:26,628 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d504743] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:43:26,628 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d504743] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:43:26,628 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d504743] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:43:26,628 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d504743] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-03-26T14:43:26.623599824Z, file=/tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069C5460E-252B60D0.v1, size=555, entryCompress=NONE, stateCompress=NONE} 02:43:26,628 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d504743] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:43:26,628 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 02:43:26,628 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2026-03-26T14:43:26.623599824Z 02:43:26,628 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 02:43:26,628 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.114 ms 02:43:26,628 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 02:43:26,629 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 02:43:26,629 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 02:43:26,629 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:43:26,629 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 216.5 μs 02:43:26,629 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 02:43:26,629 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 02:43:26,718 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069C5460E-252B60D0.v1 02:43:26,718 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:43:26,718 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:43:26,718 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:43:26,718 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2026-03-26T14:43:26.623599824Z, file=/tmp/junit-4776310452001924222/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069C5460E-252B60D0.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 02:43:26,721 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#1313292959] 02:43:26,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#-152539194] 02:43:26,732 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-349907253] 02:43:26,732 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 02:43:26,732 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#626,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 02:43:26,732 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 103.5 ms 02:43:26,732 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 16.33 μs 02:43:26,732 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 02:43:26,732 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminated thread VirtualThread[#626,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/terminated 02:43:26,732 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 02:43:26,732 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 02:43:26,732 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:43:26,732 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:43:26,738 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,739 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#1834415855] 02:43:26,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-1912582395] 02:43:26,750 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#-894878196] 02:43:26,754 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 02:43:26,754 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,756 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 02:43:26,756 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:43:26,757 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#914405892] 02:43:26,768 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-1496388435] 02:43:26,768 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-994907761] 02:43:26,772 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 02:43:26,772 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,773 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 02:43:26,774 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]]} 02:43:26,774 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:43:26,774 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:43:26,774 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:43:26,774 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:43:26,774 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:43:26,774 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} 02:43:26,774 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:43:26,774 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:43:26,775 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:43:26,775 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#1428014523] 02:43:26,786 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#1131412] 02:43:26,786 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#-492547115] 02:43:26,790 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 02:43:26,790 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,791 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 02:43:26,791 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]]} 02:43:26,792 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 02:43:26,792 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} 02:43:26,792 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:43:26,792 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 02:43:26,793 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]]} 02:43:26,793 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 02:43:26,794 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} 02:43:26,794 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:43:26,795 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-2099689795] 02:43:26,805 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#838353736] 02:43:26,805 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#892169448] 02:43:26,809 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,809 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-481827241] 02:43:26,820 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#190081682] 02:43:26,820 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#422036415] 02:43:26,824 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 02:43:26,824 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,825 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 02:43:26,826 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]]} 02:43:26,826 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 02:43:26,826 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} 02:43:26,827 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:43:26,827 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:43:26,827 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]]} 02:43:26,828 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 02:43:26,828 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} 02:43:26,829 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:43:26,829 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]]} 02:43:26,830 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 02:43:26,830 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} 02:43:26,830 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:43:26,830 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-205987114] 02:43:26,841 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#1092449009] 02:43:26,841 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#322162411] 02:43:26,845 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 02:43:26,845 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,846 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]]} 02:43:26,846 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:43:26,847 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 02:43:26,847 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:43:26,847 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:43:26,847 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:43:26,847 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} 02:43:26,847 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:43:26,847 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:43:26,847 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 02:43:26,848 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#1422865189] 02:43:26,859 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-638979960] 02:43:26,859 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-64850841] 02:43:26,862 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 02:43:26,862 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,864 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:43:26,865 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 02:43:26,865 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 02:43:26,866 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 02:43:26,866 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#-2112081306] 02:43:26,877 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-733406051] 02:43:26,877 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-1787182458] 02:43:26,880 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 02:43:26,880 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,880 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 02:43:26,881 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]]} 02:43:26,881 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:43:26,881 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:43:26,881 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:43:26,881 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:43:26,881 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:43:26,881 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} 02:43:26,881 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:43:26,881 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:43:26,882 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:43:26,882 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#-511222557] 02:43:26,893 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#-710187933] 02:43:26,893 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-1556555900] 02:43:26,895 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:43:26,895 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:26,896 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 02:43:26,896 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]]} 02:43:26,896 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 02:43:26,897 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} 02:43:26,897 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:43:26,897 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-667087488] 02:43:26,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-805246944] 02:43:26,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#746977752] 02:43:26,910 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 02:43:26,915 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:43:26,915 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [03/26/2026 14:43:26.915] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@1ebd75f1 02:43:26,916 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'. [INFO] [pekkoDeadLetter][03/26/2026 14:43:26.915] [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'. 02:43:26,916 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 02:43:26,916 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:43:26,916 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:43:26,917 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 02:43:26,917 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 02:43:26,917 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 02:43:26,917 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 02:43:26,917 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 02:43:26,925 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 02:43:26,925 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 02:43:26,925 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:43:26,925 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:43:26,925 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:43:26,925 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 02:43:26,925 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 02:43:26,925 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 02:43:26,925 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 02:43:26,925 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 7.904 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 02:43:26,925 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 02:43:26,925 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: writer thread VirtualThread[#629,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/runnable started 02:43:26,925 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 02:43:26,925 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 02:43:27,16 PM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Term 1 in "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]]}" message is greater than follower's term 0 - updating term 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 02:43:27,23 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 97.99 ms 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 02:43:27,23 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 02:43:27,24 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 02:43:27,36 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:43:27,36 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 12.68 ms 02:43:27,36 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:43:27,36 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 5.460 μs 02:43:27,36 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:43:27,36 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0936730@16ba539c} 02:43:27,36 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 02:43:27,47 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 02:43:27,47 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 02:43:27,47 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 02:43:27,47 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 11.03 ms 02:43:27,47 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:43:27,47 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 02:43:27,47 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0936730@16ba539c} 02:43:27,47 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:43:27,47 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 02:43:27,47 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 02:43:27,47 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 02:43:27,47 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 02:43:27,47 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 02:43:27,47 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 02:43:27,47 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d961137] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069C5460F-02D9AA3D.tmp 02:43:27,47 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0936730@16ba539c} 02:43:27,48 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 23.84 ms [WARN] [03/26/2026 14:43:27.048] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][03/26/2026 14:43:27.048] [test-pekko.actor.default-dispatcher-13] [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'. 02:43:27,48 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:43:27,56 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d961137] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069C5460F-02D9AA3D.v1 02:43:27,56 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d961137] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:43:27,56 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d961137] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:43:27,56 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d961137] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:43:27,56 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d961137] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069C5460F-02D9AA3D.v1 02:43:27,56 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d961137] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-03-26T14:43:27.047819325Z, file=/tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069C5460F-02D9AA3D.v1, size=539, entryCompress=NONE, stateCompress=NONE} 02:43:27,56 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d961137] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:43:27,56 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:43:27,56 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2026-03-26T14:43:27.047819325Z 02:43:27,56 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 02:43:27,56 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 02:43:27,56 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 9.296 ms 02:43:27,57 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 02:43:27,57 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 02:43:27,57 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:43:27,57 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 161.4 μs 02:43:27,57 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:43:27,57 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 02:43:27,167 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:43:27,167 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:43:27,167 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:43:27,167 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069C5460F-02D9AA3D.v1 02:43:27,167 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2026-03-26T14:43:27.047819325Z, file=/tmp/junit-1210409791905299890/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069C5460F-02D9AA3D.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 02:43:27,169 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#-792354489] 02:43:27,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#1671705668] 02:43:27,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#196184915] 02:43:27,181 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 02:43:27,181 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#629,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 02:43:27,181 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 124.6 ms 02:43:27,181 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 15.73 μs 02:43:27,181 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 02:43:27,181 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminated thread VirtualThread[#629,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/terminated 02:43:27,182 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 02:43:27,182 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 02:43:27,182 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:43:27,182 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:43:27,187 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 02:43:27,187 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:27,188 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 02:43:27,188 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]]} 02:43:27,189 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 02:43:27,189 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} 02:43:27,189 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 02:43:27,190 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-458297766] 02:43:27,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-992775085] 02:43:27,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#2100976947] 02:43:27,208 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 02:43:27,208 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:27,209 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 02:43:27,209 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 02:43:27,209 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 02:43:27,210 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 02:43:27,210 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 02:43:27,210 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#134239491] 02:43:27,221 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#1970148828] 02:43:27,221 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-1714441798] 02:43:27,225 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 02:43:27,225 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:27,226 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 02:43:27,226 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]]} 02:43:27,227 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:43:27,227 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:43:27,227 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 02:43:27,227 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:43:27,227 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 02:43:27,227 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:43:27,227 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 02:43:27,227 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 02:43:27,227 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} 02:43:27,228 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:43:27,228 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 02:43:27,228 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:43:27,228 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:43:27,228 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:43:27,228 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:43:27,228 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:43:27,228 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:43:27,228 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:43:27,228 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:43:27,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#-700607575] 02:43:27,240 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#509974037] 02:43:27,240 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#1874714421] 02:43:27,245 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 02:43:27,245 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:27,246 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 02:43:27,246 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 02:43:27,248 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#337703660] 02:43:27,258 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#-1100761678] 02:43:27,259 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#-2013175924] 02:43:27,262 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 02:43:27,262 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:27,263 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:43:27,263 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:43:27,263 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:43:27,264 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:43:27,264 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 02:43:27,265 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]]} 02:43:27,265 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 02:43:27,265 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:43:27,265 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:43:27,265 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 02:43:27,265 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:43:27,266 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:43:27,266 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} 02:43:27,266 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 02:43:27,266 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:43:27,266 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:43:27,266 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:43:27,267 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#-1451765145] 02:43:27,278 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#1468940603] 02:43:27,278 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#637029300] 02:43:27,281 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 02:43:27,282 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:27,283 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 02:43:27,283 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]]} 02:43:27,284 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 02:43:27,284 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} 02:43:27,284 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:43:27,285 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:43:27,285 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]]} 02:43:27,286 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 02:43:27,286 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} 02:43:27,286 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:43:27,286 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:43:27,287 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]]} 02:43:27,287 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 02:43:27,288 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} 02:43:27,288 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:43:27,288 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-2012644798] 02:43:27,298 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#1893254463] 02:43:27,299 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#-1514649865] 02:43:27,302 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 02:43:27,302 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:27,503 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.99:17355, Removed) 02:43:27,503 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 02:43:27,503 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:43:27,503 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:43:27,503 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:43:27,503 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#594335627] 02:43:27,514 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#-345595613] 02:43:27,514 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#-891403354] 02:43:27,518 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:27,518 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 02:43:27,720 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#-159291464] 02:43:27,731 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#1028223557] 02:43:27,731 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#-1642121968] 02:43:27,735 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 02:43:27,735 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:27,737 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 02:43:27,737 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 02:43:27,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#1703464460] 02:43:27,749 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#934720218] 02:43:27,749 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-94015626] 02:43:27,753 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 02:43:27,753 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:27,754 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]]} 02:43:27,754 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:43:27,754 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 02:43:27,754 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:43:27,754 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:43:27,754 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 02:43:27,754 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:43:27,754 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} 02:43:27,755 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 02:43:27,755 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:43:27,755 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:43:27,755 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:43:27,755 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:43:27,755 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:43:27,755 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:43:27,755 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:43:27,755 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:43:27,755 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:43:27,755 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 02:43:27,755 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 02:43:27,756 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#-1560498259] 02:43:27,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#832866033] 02:43:27,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#-879721588] 02:43:27,771 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 02:43:27,772 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:27,773 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:43:27,773 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:43:27,773 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:43:27,774 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:43:27,774 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]]} 02:43:27,775 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} 02:43:27,775 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-1346751575] 02:43:27,786 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#-884323998] 02:43:27,786 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#-1841199988] 02:43:27,790 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 02:43:27,790 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:27,790 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 02:43:27,791 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]]} 02:43:27,791 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:43:27,791 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:43:27,792 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:43:27,792 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-2028482898] 02:43:27,793 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#828645405] 02:43:27,794 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#1817863737] 02:43:27,798 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 02:43:27,800 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:43:27,801 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [03/26/2026 14:43:27.801] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@4224e799 [INFO] [pekkoDeadLetter][03/26/2026 14:43:27.801] [test-pekko.actor.default-dispatcher-13] [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'. 02:43:27,801 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:43:27,802 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:43:27,802 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:43:27,802 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:43:27,802 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 02:43:27,802 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 02:43:27,803 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 02:43:27,803 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 02:43:27,803 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 02:43:27,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 02:43:27,806 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 02:43:27,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:43:27,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:43:27,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:43:27,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 02:43:27,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 02:43:27,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 02:43:27,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 02:43:27,806 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 3.641 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 02:43:27,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 02:43:27,806 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#632,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/runnable started 02:43:27,806 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 02:43:27,806 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:43:27,807 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:43:27,807 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:43:27,807 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:43:27,807 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 02:43:27,807 PM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Term 1 in "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]]}" message is greater than follower's term 0 - updating term 02:43:27,809 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:43:27,809 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 02:43:27,809 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 02:43:27,809 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:43:27,809 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 02:43:27,809 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:43:27,809 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 02:43:27,809 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:43:27,810 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.008 ms 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 02:43:27,810 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 02:43:27,814 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:43:27,814 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:43:27,814 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 4.494 ms 02:43:27,814 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:43:27,814 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 4.660 μs 02:43:27,814 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0936730@23034295} 02:43:27,814 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 02:43:27,816 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 02:43:27,816 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 02:43:27,816 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 1.921 ms 02:43:27,816 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 02:43:27,816 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:43:27,816 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:43:27,816 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0936730@23034295} 02:43:27,816 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:43:27,816 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 02:43:27,816 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 02:43:27,816 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 02:43:27,816 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:43:27,816 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 02:43:27,817 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 02:43:27,817 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0936730@23034295} 02:43:27,817 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d344590] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069C5460F-30B0FAFC.tmp 02:43:27,817 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 6.443 ms [WARN] [03/26/2026 14:43:27.817] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 02:43:27,817 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][03/26/2026 14:43:27.817] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:43:27,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d344590] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069C5460F-30B0FAFC.v1 02:43:27,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d344590] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:43:27,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d344590] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:43:27,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d344590] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:43:27,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d344590] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069C5460F-30B0FAFC.v1 02:43:27,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d344590] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-03-26T14:43:27.816904956Z, file=/tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069C5460F-30B0FAFC.v1, size=573, entryCompress=NONE, stateCompress=NONE} 02:43:27,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d344590] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:43:27,819 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:43:27,819 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2026-03-26T14:43:27.816904956Z 02:43:27,819 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 02:43:27,819 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 02:43:27,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.152 ms 02:43:27,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 02:43:27,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 02:43:27,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:43:27,819 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:43:27,819 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 166.1 μs 02:43:27,820 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:43:27,959 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:43:27,959 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:43:27,959 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:43:27,959 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069C5460F-30B0FAFC.v1 02:43:27,959 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-03-26T14:43:27.816904956Z, file=/tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069C5460F-30B0FAFC.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:43:27,960 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:43:27,961 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#632,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 02:43:27,961 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 141.7 ms 02:43:27,961 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 12.33 μs 02:43:27,961 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 02:43:27,961 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#632,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/terminated 02:43:27,962 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:43:27,962 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:43:27,962 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:43:27,962 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:43:27,962 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [03/26/2026 14:43:27.963] [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@4ccd4516 [INFO] [pekkoDeadLetter][03/26/2026 14:43:27.963] [test-pekko.actor.default-dispatcher-13] [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'. 02:43:27,963 PM [test-pekko.actor.default-dispatcher-13] [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'. 02:43:27,963 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:43:27,963 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:43:27,963 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:43:27,964 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 02:43:27,965 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 02:43:27,965 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 02:43:27,965 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 02:43:27,965 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:43:27,965 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:43:27,965 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:43:27,965 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:43:27,965 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069C5460F-30B0FAFC.v1 02:43:27,965 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2026-03-26T14:43:27.816904956Z, file=/tmp/junit-4235692666903182838/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069C5460F-30B0FAFC.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:43:27,965 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2026-03-26T14:43:27.816904956Z 02:43:27,966 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:43:27,966 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 02:43:27,966 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 02:43:27,966 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 02:43:27,967 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.467 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 02:43:27,967 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 02:43:27,967 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: writer thread VirtualThread[#635,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/runnable started 02:43:27,967 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 02:43:27,967 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:43:27,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#-1320862225] 02:43:27,968 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#211917796] 02:43:27,968 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#-1128885187] 02:43:27,968 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:43:27,968 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#635,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 02:43:27,968 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 1.398 ms 02:43:27,968 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 8.820 μs 02:43:27,968 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 02:43:27,968 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminated thread VirtualThread[#635,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/terminated 02:43:27,968 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:43:27,968 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:43:27,968 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:43:27,968 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:43:27,971 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 02:43:27,971 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:28,272 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:43:28,402 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 02:43:28,653 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 02:43:28,853 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 02:43:28,853 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#1510343402] 02:43:28,864 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#1622125628] 02:43:28,864 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#788113220] 02:43:28,868 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:43:28,869 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 02:43:28,869 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:43:28,869 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:43:28,870 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:43:28,870 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#-801115668] 02:43:28,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#-289632210] 02:43:28,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#2098293922] 02:43:28,882 PM [test-pekko.actor.default-dispatcher-13] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [03/26/2026 14:43:28.882] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:43:28,883 PM [test-pekko.actor.default-dispatcher-13] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1143137640] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [03/26/2026 14:43:28.883] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.99:17355) [INFO] [pekkoDeadLetter][03/26/2026 14:43:28.883] [test-pekko.actor.default-dispatcher-13] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1143137640] 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'. 02:43:28,884 PM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.99:17355] - Exiting completed [INFO] [03/26/2026 14:43:28.884] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.99:17355] - Exiting completed 02:43:28,884 PM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.99:17355] - Shutting down... 02:43:28,885 PM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.99:17355] - Successfully shut down [INFO] [03/26/2026 14:43:28.884] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.99:17355] - Shutting down... [INFO] [03/26/2026 14:43:28.884] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.99:17355] - Successfully shut down 02:43:28,886 PM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [03/26/2026 14:43:28.886] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.99:17355/system/remoting-terminator] Shutting down remote daemon. 02:43:28,886 PM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/26/2026 14:43:28.886] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.99:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/26/2026 14:43:28.888] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.99:17355/system/remoting-terminator] Remoting shut down. 02:43:28,889 PM [test-pekko.actor.default-dispatcher-13] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [03/26/2026 14:43:28.889] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger