[DEBUG] [12/09/2025 02:58:28.134] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 02:58:28,135 AM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [12/09/2025 02:58:28.135] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [12/09/2025 02:58:28.135] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [12/09/2025 02:58:28.149] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.235:17355] with UID [-1308035707870915811] 02:58:28,151 AM [test-pekko.actor.default-dispatcher-9] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.235:17355] with UID [-1308035707870915811] [INFO] [12/09/2025 02:58:28.151] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.235:17355] - Starting up, Pekko version [1.2.1] ... 02:58:28,151 AM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.235:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [12/09/2025 02:58:28.155] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.235:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [12/09/2025 02:58:28.155] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.235:17355] - Started up successfully 02:58:28,155 AM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.235:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 02:58:28,155 AM [test-pekko.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.235:17355] - Started up successfully [INFO] [12/09/2025 02:58:28.156] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.235:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [12/09/2025 02:58:28.156] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.235:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:58:28,156 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.235:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 02:58:28,156 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.235:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:58:28,169 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,255 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 02:58:28,255 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 02:58:28,255 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#1392676194] 02:58:28,266 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#-1003423041] 02:58:28,266 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#-593425466] 02:58:28,269 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,271 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 02:58:28,271 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:28,271 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:58:28,271 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:58:28,271 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:58:28,271 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 02:58:28,271 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,272 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 02:58:28,272 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 02:58:28,273 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:58:28,273 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:58:28,273 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 02:58:28,273 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#1876314113] 02:58:28,284 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#-49661247] 02:58:28,284 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#365885877] 02:58:28,287 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,289 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 02:58:28,290 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 02:58:28,290 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#315751049] 02:58:28,301 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#2019894247] 02:58:28,301 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#1706689440] 02:58:28,305 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,306 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 02:58:28,307 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 02:58:28,308 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,308 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 02:58:28,309 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 02:58:28,310 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 02:58:28,310 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 02:58:28,310 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 02:58:28,310 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 02:58:28,311 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 02:58:28,311 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 02:58:28,311 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:58:28,312 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-1884332591] 02:58:28,323 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#1861282245] 02:58:28,323 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#-1329793379] 02:58:28,326 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,326 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:58:28,326 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:58:28,327 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,327 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 02:58:28,327 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:58:28,328 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:58:28,328 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:58:28,328 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:58:28,328 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#-1236289185] 02:58:28,339 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#1883347700] 02:58:28,339 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-1279137721] 02:58:28,343 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,344 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 02:58:28,345 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#408204113] 02:58:28,356 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#1380340465] 02:58:28,356 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#1738361468] 02:58:28,360 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,362 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 02:58:28,362 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:58:28,363 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#-700107363] 02:58:28,373 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-1281766433] 02:58:28,373 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-1157853276] 02:58:28,377 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 02:58:28,377 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,380 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:58:28,381 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:58:28,381 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:58:28,381 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:58:28,382 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:58:28,382 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 02:58:28,382 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:58:28,382 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:58:28,384 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 02:58:28,385 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-1454935714] 02:58:28,395 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#2061131107] 02:58:28,395 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-633926644] 02:58:28,399 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 02:58:28,399 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,400 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 02:58:28,400 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 02:58:28,400 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,400 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:58:28,401 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#886708823] 02:58:28,411 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-1351094884] 02:58:28,412 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-986850068] 02:58:28,415 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 02:58:28,416 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,416 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:58:28,417 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:58:28,417 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:58:28,417 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:58:28,418 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:58:28,418 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:58:28,418 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:58:28,419 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:58:28,419 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:58:28,420 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:58:28,420 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:58:28,421 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,421 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 02:58:28,421 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#462763528] 02:58:28,432 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#458529519] 02:58:28,432 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#-1121409488] 02:58:28,436 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,437 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:58:28,438 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#1702305110] 02:58:28,449 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#1717930833] 02:58:28,449 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#1874877066] 02:58:28,452 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:58:28,452 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,453 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:58:28,454 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:58:28,454 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:28,454 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:58:28,454 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:58:28,454 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:58:28,454 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:58:28,455 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,455 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:28,455 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:58:28,455 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:58:28,456 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#1379804814] 02:58:28,467 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#1697883163] 02:58:28,467 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#-493732646] 02:58:28,472 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 02:58:28,473 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,474 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 02:58:28,474 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:28,474 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:58:28,474 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:58:28,474 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:58:28,474 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 02:58:28,475 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,475 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:58:28,475 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:58:28,475 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:58:28,475 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:58:28,475 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:58:28,475 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:58:28,477 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 02:58:28,477 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:58:28,477 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:58:28,477 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:58:28,477 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 02:58:28,477 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:58:28,477 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:58:28,478 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,478 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 02:58:28,478 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:58:28,478 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:58:28,478 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:58:28,478 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#1241726634] 02:58:28,489 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#1047582649] 02:58:28,490 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#1489109264] 02:58:28,493 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 02:58:28,493 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,494 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 02:58:28,495 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:58:28,496 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,496 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 02:58:28,496 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#1287677842] 02:58:28,507 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#491372012] 02:58:28,507 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-1075000783] 02:58:28,511 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,514 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#125073798] 02:58:28,525 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-1793344133] 02:58:28,525 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#219062919] 02:58:28,529 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 02:58:28,529 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,529 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:58:28,530 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:58:28,530 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:58:28,530 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:28,531 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:58:28,531 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:58:28,531 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:58:28,531 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:58:28,531 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,531 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:28,531 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 02:58:28,531 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 02:58:28,531 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 02:58:28,532 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 02:58:28,532 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-92376079] 02:58:28,543 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-2093059681] 02:58:28,543 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#-599813899] 02:58:28,547 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 02:58:28,551 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:58:28,551 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 02:58:28,552 AM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 02:58:28,552 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:58:28,552 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor [WARN] [12/09/2025 02:58:28.552] [test-pekko.actor.default-dispatcher-9] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@53411db4 02:58:28,553 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 02:58:28,553 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 02:58:28,553 AM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 02:58:28,553 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 02:58:28,553 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 02:58:28,553 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 02:58:28,553 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands [INFO] [pekkoDeadLetter][12/09/2025 02:58:28.553] [test-pekko.actor.default-dispatcher-9] [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:58:28,554 AM [test-pekko.actor.default-dispatcher-9] [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'. 02:58:28,557 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 02:58:28,557 AM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 02:58:28,557 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:58:28,557 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:58:28,557 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:58:28,557 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 02:58:28,557 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 02:58:28,557 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 02:58:28,558 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 02:58:28,558 AM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 4.296 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 02:58:28,558 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 02:58:28,558 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:58:28,558 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:58:28,558 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:58:28,558 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 02:58:28,558 AM [test-pekko.actor.default-dispatcher-7] [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:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [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:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [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:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 02:58:28,560 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 7.014 ms 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 02:58:28,560 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 02:58:28,561 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 02:58:28,565 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 02:58:28,565 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 4.721 ms 02:58:28,565 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 02:58:28,565 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 2.480 μs 02:58:28,565 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:58:28,565 AM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c09144d0@1e9c2905} 02:58:28,565 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:58:28,565 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 02:58:28,565 AM [test-pekko.actor.default-dispatcher-7] [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:58:28,565 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:58:28,565 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 02:58:28,565 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 160.0 μs 02:58:28,565 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 02:58:28,565 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 02:58:28,565 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 02:58:28,565 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 02:58:28,565 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 02:58:28,566 AM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c09144d0@1e9c2905} 02:58:28,566 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d594419] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069379054-21BB2FF2.tmp 02:58:28,566 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.986 ms 02:58:28,566 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [12/09/2025 02:58:28.566] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][12/09/2025 02:58:28.566] [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:58:28,566 AM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:58:28,570 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d594419] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069379054-21BB2FF2.v1 02:58:28,571 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d594419] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:58:28,571 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d594419] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:58:28,571 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d594419] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:58:28,571 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d594419] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069379054-21BB2FF2.v1 02:58:28,571 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d594419] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-12-09T02:58:28.565915634Z, file=/tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069379054-21BB2FF2.v1, size=555, entryCompress=NONE, stateCompress=NONE} 02:58:28,571 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d594419] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:58:28,571 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 02:58:28,571 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-12-09T02:58:28.565915634Z 02:58:28,571 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 02:58:28,571 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.703 ms 02:58:28,571 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 02:58:28,571 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 02:58:28,571 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 02:58:28,571 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:58:28,571 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 184.8 μs 02:58:28,571 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 02:58:28,571 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 02:58:28,659 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:58:28,659 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 02:58:28,659 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 02:58:28,659 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069379054-21BB2FF2.v1 02:58:28,659 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-12-09T02:58:28.565915634Z, file=/tmp/junit-14798743864340178686/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069379054-21BB2FF2.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 02:58:28,661 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#972311340] 02:58:28,672 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#-1496002197] 02:58:28,673 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-705458166] 02:58:28,673 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 02:58:28,673 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#620,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 02:58:28,673 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 101.7 ms 02:58:28,673 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 21.29 μs 02:58:28,673 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 02:58:28,673 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 02:58:28,673 AM [test-pekko.actor.default-dispatcher-13] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 02:58:28,673 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:58:28,673 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:58:28,678 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,679 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#60826439] 02:58:28,689 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#1907403698] 02:58:28,689 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#583120639] 02:58:28,693 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 02:58:28,693 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,694 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 02:58:28,695 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:58:28,695 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#545589769] 02:58:28,706 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#1226970821] 02:58:28,706 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-678000061] 02:58:28,710 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 02:58:28,710 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,711 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:58:28,711 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:58:28,712 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:28,712 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:58:28,712 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:58:28,712 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:58:28,712 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:58:28,712 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,712 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:28,712 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:58:28,712 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:58:28,713 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-311331506] 02:58:28,724 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#19464924] 02:58:28,724 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#956589162] 02:58:28,727 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 02:58:28,728 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,729 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:58:28,729 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:58:28,730 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:58:28,730 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,730 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:28,730 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 02:58:28,731 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:58:28,731 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 02:58:28,732 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,732 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:58:28,733 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-1078413883] 02:58:28,733 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#589078614] 02:58:28,734 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#910937259] 02:58:28,736 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,736 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#-11023410] 02:58:28,736 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#-2103351890] 02:58:28,736 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#-1321270420] 02:58:28,738 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 02:58:28,738 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,739 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:58:28,739 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:58:28,739 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:58:28,739 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,740 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:28,740 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:58:28,740 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:58:28,740 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:58:28,740 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,740 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:58:28,741 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:58:28,741 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:58:28,741 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,741 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:58:28,741 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-1391904664] 02:58:28,742 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#-1351956693] 02:58:28,742 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#665376339] 02:58:28,744 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 02:58:28,744 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,745 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 02:58:28,745 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:28,745 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 02:58:28,745 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:58:28,745 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:58:28,745 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:58:28,745 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,745 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:58:28,745 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:58:28,745 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 02:58:28,745 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#781270336] 02:58:28,746 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#791039074] 02:58:28,746 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-1409781256] 02:58:28,748 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 02:58:28,748 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,749 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:58:28,750 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 02:58:28,750 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 02:58:28,751 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 02:58:28,751 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#1999716497] 02:58:28,752 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-2035729436] 02:58:28,752 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#911368204] 02:58:28,754 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 02:58:28,754 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,754 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:58:28,755 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:58:28,755 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:28,755 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:58:28,755 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:58:28,755 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:58:28,755 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:58:28,755 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,755 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:28,755 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:58:28,755 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:58:28,755 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#2089805577] 02:58:28,756 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#-746375918] 02:58:28,756 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#2416460] 02:58:28,758 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:58:28,758 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,758 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:58:28,759 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:58:28,759 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:58:28,759 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,759 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:28,760 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#-1735559915] 02:58:28,760 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-2123988506] 02:58:28,760 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-1569167396] 02:58:28,762 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 02:58:28,767 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:58:28,767 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [12/09/2025 02:58:28.768] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@d2418f6 02:58:28,768 AM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 02:58:28,768 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor [INFO] [pekkoDeadLetter][12/09/2025 02:58:28.768] [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:58:28,768 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:58:28,768 AM [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'. 02:58:28,768 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 02:58:28,769 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 02:58:28,769 AM [test-pekko.actor.default-dispatcher-13] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 02:58:28,769 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 02:58:28,769 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 02:58:28,769 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 02:58:28,769 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 02:58:28,773 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 02:58:28,773 AM [test-pekko.actor.default-dispatcher-13] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 02:58:28,773 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:58:28,773 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:58:28,773 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:58:28,773 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 02:58:28,773 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 02:58:28,773 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 02:58:28,773 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 02:58:28,773 AM [test-pekko.actor.default-dispatcher-13] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 4.199 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 02:58:28,773 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 02:58:28,774 AM [test-pekko.actor.default-dispatcher-13] [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:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [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:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 02:58:28,776 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 7.177 ms 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [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:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 02:58:28,776 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 02:58:28,780 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:58:28,780 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 3.514 ms 02:58:28,780 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:58:28,780 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 2.080 μs 02:58:28,780 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:58:28,780 AM [test-pekko.actor.default-dispatcher-13] [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/0x00000007c09144d0@219fc13b} 02:58:28,780 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 02:58:28,781 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 02:58:28,781 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 02:58:28,781 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 1.369 ms 02:58:28,781 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 02:58:28,781 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 02:58:28,781 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:58:28,781 AM [test-pekko.actor.default-dispatcher-13] [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/0x00000007c09144d0@219fc13b} 02:58:28,781 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:58:28,781 AM [test-pekko.actor.default-dispatcher-13] [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:58:28,781 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 02:58:28,781 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 02:58:28,781 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 02:58:28,781 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 02:58:28,781 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 02:58:28,781 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d833] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069379054-2E9A80C3.tmp 02:58:28,781 AM [test-pekko.actor.default-dispatcher-13] [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/0x00000007c09144d0@219fc13b} 02:58:28,782 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 5.063 ms [WARN] [12/09/2025 02:58:28.782] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][12/09/2025 02:58:28.782] [test-pekko.actor.default-dispatcher-7] [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:58:28,782 AM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:58:28,783 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d833] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069379054-2E9A80C3.v1 02:58:28,783 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d833] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:58:28,783 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d833] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:58:28,783 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d833] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:58:28,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d833] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069379054-2E9A80C3.v1 02:58:28,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d833] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-12-09T02:58:28.781877443Z, file=/tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069379054-2E9A80C3.v1, size=539, entryCompress=NONE, stateCompress=NONE} 02:58:28,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d833] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:58:28,784 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:58:28,784 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-12-09T02:58:28.781877443Z 02:58:28,784 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 02:58:28,784 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 02:58:28,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.740 ms 02:58:28,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 02:58:28,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 02:58:28,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:58:28,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 95.60 μs 02:58:28,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 02:58:28,784 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:58:28,925 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:58:28,925 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 02:58:28,925 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 02:58:28,925 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069379054-2E9A80C3.v1 02:58:28,925 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-12-09T02:58:28.781877443Z, file=/tmp/junit-16045198348556405236/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069379054-2E9A80C3.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 02:58:28,927 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#-665779797] 02:58:28,938 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#1747744577] 02:58:28,938 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#-465690764] 02:58:28,938 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 02:58:28,938 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#624,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 02:58:28,938 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 154.1 ms 02:58:28,938 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 24.03 μs 02:58:28,938 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 02:58:28,938 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 02:58:28,938 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 02:58:28,938 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:58:28,939 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:58:28,943 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 02:58:28,943 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,944 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:58:28,945 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 02:58:28,945 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 02:58:28,945 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,945 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 02:58:28,946 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-990921287] 02:58:28,956 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#-1089822706] 02:58:28,957 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#-278802410] 02:58:28,962 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 02:58:28,962 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,963 AM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 02:58:28,964 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 02:58:28,964 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 02:58:28,964 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 02:58:28,964 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 02:58:28,965 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#649640551] 02:58:28,975 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-1813974493] 02:58:28,976 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#846717990] 02:58:28,980 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 02:58:28,980 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:28,981 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 02:58:28,981 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 02:58:28,982 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:58:28,982 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:58:28,982 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 02:58:28,982 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:58:28,982 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 02:58:28,982 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:58:28,982 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 02:58:28,982 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 02:58:28,982 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:28,982 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:58:28,982 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 02:58:28,983 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:58:28,983 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:58:28,983 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:58:28,983 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:58:28,983 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:58:28,983 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:58:28,983 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:58:28,983 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:58:28,984 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#1466765061] 02:58:28,994 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#870571554] 02:58:28,995 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-2035042456] 02:58:28,999 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 02:58:28,999 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:29,0 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 02:58:29,0 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 02:58:29,1 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#843672589] 02:58:29,12 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#2045875027] 02:58:29,12 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#2118154977] 02:58:29,16 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 02:58:29,16 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:29,16 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:58:29,17 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:58:29,17 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:58:29,17 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:58:29,18 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 02:58:29,18 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 02:58:29,18 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 02:58:29,19 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:58:29,19 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:58:29,19 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 02:58:29,19 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:58:29,19 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:58:29,19 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:29,19 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 02:58:29,19 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:58:29,19 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:58:29,19 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:58:29,20 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#-2022694034] 02:58:29,31 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-702943674] 02:58:29,31 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#1819298486] 02:58:29,35 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 02:58:29,35 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:29,36 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 02:58:29,36 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:58:29,37 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 02:58:29,37 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:29,37 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:58:29,37 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:58:29,38 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:58:29,38 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 02:58:29,39 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:29,39 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:58:29,39 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:58:29,39 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 02:58:29,40 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 02:58:29,40 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:29,41 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:58:29,41 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#1489337039] 02:58:29,51 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#1797181918] 02:58:29,52 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#-498243034] 02:58:29,55 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 02:58:29,55 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:29,256 AM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.235:17355, Removed) 02:58:29,256 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 02:58:29,256 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:58:29,256 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:58:29,256 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:58:29,256 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#1523927186] 02:58:29,267 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#1480843516] 02:58:29,268 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#-401092330] 02:58:29,272 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:29,272 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 02:58:29,473 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#-7312405] 02:58:29,484 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#1328920052] 02:58:29,484 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#1916985385] 02:58:29,488 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 02:58:29,488 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:29,491 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 02:58:29,491 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 02:58:29,492 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-462067656] 02:58:29,503 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#-2100941703] 02:58:29,503 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#-1796486230] 02:58:29,506 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 02:58:29,506 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:29,507 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 02:58:29,508 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:58:29,508 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 02:58:29,508 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:58:29,508 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:58:29,508 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 02:58:29,508 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:58:29,508 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:29,509 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 02:58:29,509 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:58:29,509 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:58:29,509 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:58:29,509 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:58:29,509 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:58:29,509 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:58:29,509 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:58:29,509 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:58:29,509 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:58:29,509 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 02:58:29,509 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 02:58:29,510 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#-463395877] 02:58:29,521 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#846162259] 02:58:29,521 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#-792843809] 02:58:29,525 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 02:58:29,525 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:29,526 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:58:29,526 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:58:29,526 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:58:29,526 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:58:29,528 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 02:58:29,528 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:58:29,529 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-1166275019] 02:58:29,539 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#-447691357] 02:58:29,539 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#-1191115362] 02:58:29,543 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 02:58:29,543 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:29,544 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 02:58:29,544 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 02:58:29,545 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:58:29,545 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:58:29,545 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:58:29,546 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-7988021] 02:58:29,556 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#495676251] 02:58:29,557 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-2107814333] 02:58:29,560 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 02:58:29,563 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:58:29,564 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [12/09/2025 02:58:29.564] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2afe9550 [INFO] [pekkoDeadLetter][12/09/2025 02:58:29.564] [test-pekko.actor.default-dispatcher-12] [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:58:29,564 AM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:58:29,564 AM [test-pekko.actor.default-dispatcher-13] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:58:29,564 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:58:29,564 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:58:29,565 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 02:58:29,565 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 02:58:29,565 AM [test-pekko.actor.default-dispatcher-13] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 02:58:29,565 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 02:58:29,565 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 02:58:29,565 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 02:58:29,565 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:58:29,569 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 02:58:29,569 AM [test-pekko.actor.default-dispatcher-13] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 02:58:29,569 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:58:29,569 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:58:29,569 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:58:29,569 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 02:58:29,569 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 02:58:29,569 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 02:58:29,569 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 02:58:29,569 AM [test-pekko.actor.default-dispatcher-13] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 3.652 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 02:58:29,569 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 02:58:29,570 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:58:29,570 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:58:29,570 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:58:29,570 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 02:58:29,570 AM [test-pekko.actor.default-dispatcher-13] [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:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [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:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [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:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 02:58:29,572 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 6.439 ms 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 02:58:29,572 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 02:58:29,577 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 02:58:29,577 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 02:58:29,577 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 4.955 ms 02:58:29,577 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:58:29,577 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.910 μs 02:58:29,577 AM [test-pekko.actor.default-dispatcher-13] [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/0x00000007c09144d0@77fda6d2} 02:58:29,577 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:58:29,577 AM [test-pekko.actor.default-dispatcher-13] [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/0x00000007c09144d0@77fda6d2} 02:58:29,577 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:58:29,577 AM [test-pekko.actor.default-dispatcher-13] [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:58:29,577 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 02:58:29,577 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 02:58:29,577 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:58:29,577 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 02:58:29,577 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:58:29,577 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 181.5 μs 02:58:29,577 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:58:29,577 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 02:58:29,577 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 02:58:29,577 AM [test-pekko.actor.default-dispatcher-13] [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/0x00000007c09144d0@77fda6d2} 02:58:29,577 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.098 ms 02:58:29,577 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d428104] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069379055-226D8ABC.tmp 02:58:29,577 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) [WARN] [12/09/2025 02:58:29.577] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][12/09/2025 02:58:29.577] [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:58:29,578 AM [test-pekko.actor.default-dispatcher-13] [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'. 02:58:29,579 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d428104] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069379055-226D8ABC.v1 02:58:29,580 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d428104] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069379055-226D8ABC.v1 02:58:29,580 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d428104] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:58:29,580 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d428104] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:58:29,580 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d428104] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:58:29,580 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d428104] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-12-09T02:58:29.577604284Z, file=/tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069379055-226D8ABC.v1, size=573, entryCompress=NONE, stateCompress=NONE} 02:58:29,580 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d428104] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:58:29,580 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:58:29,580 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-12-09T02:58:29.577604284Z 02:58:29,580 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 02:58:29,580 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 02:58:29,580 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.929 ms 02:58:29,580 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 02:58:29,580 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 02:58:29,580 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:58:29,580 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 212.3 μs 02:58:29,580 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:58:29,580 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:58:29,721 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069379055-226D8ABC.v1 02:58:29,721 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:58:29,721 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:58:29,721 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:58:29,721 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-12-09T02:58:29.577604284Z, file=/tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069379055-226D8ABC.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:58:29,723 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:58:29,734 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#627,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 02:58:29,734 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 153.4 ms 02:58:29,734 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 17.50 μs 02:58:29,734 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 02:58:29,734 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:58:29,734 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:58:29,734 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:58:29,734 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:58:29,735 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [12/09/2025 02:58:29.735] [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@6b3640e7 [INFO] [pekkoDeadLetter][12/09/2025 02:58:29.735] [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:58:29,736 AM [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:58:29,736 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:58:29,736 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:58:29,736 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:58:29,737 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 02:58:29,738 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 02:58:29,738 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 02:58:29,738 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 02:58:29,738 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 02:58:29,738 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 02:58:29,738 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:58:29,738 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069379055-226D8ABC.v1 02:58:29,738 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:58:29,738 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 02:58:29,738 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 02:58:29,738 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-12-09T02:58:29.577604284Z, file=/tmp/junit-17849072146081880239/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069379055-226D8ABC.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:58:29,738 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-12-09T02:58:29.577604284Z 02:58:29,739 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:58:29,739 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 02:58:29,740 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 02:58:29,740 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 02:58:29,740 AM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.679 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 02:58:29,740 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 02:58:29,740 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#177828221] 02:58:29,751 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#1599648079] 02:58:29,751 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#-686790908] 02:58:29,752 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:58:29,752 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#630,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 02:58:29,752 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 14.14 ms 02:58:29,752 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 16.13 μs 02:58:29,752 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 02:58:29,752 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:58:29,752 AM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 02:58:29,753 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:58:29,753 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:58:29,757 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 02:58:29,757 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:30,57 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:58:30,188 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 02:58:30,438 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 02:58:30,638 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 02:58:30,638 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#-1381723328] 02:58:30,640 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#332248246] 02:58:30,641 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#26957840] 02:58:30,645 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:58:30,646 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 02:58:30,646 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:58:30,646 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:58:30,646 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:58:30,646 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#-1940276326] 02:58:30,647 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#1468227143] 02:58:30,647 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#-332504769] [INFO] [12/09/2025 02:58:30.648] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:58:30,648 AM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [12/09/2025 02:58:30.649] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.235:17355) [INFO] [pekkoDeadLetter][12/09/2025 02:58:30.649] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1572883521] 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:58:30,650 AM [test-pekko.actor.default-dispatcher-12] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1572883521] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [12/09/2025 02:58:30.650] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.235:17355] - Exiting completed [INFO] [12/09/2025 02:58:30.650] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.235:17355] - Shutting down... 02:58:30,650 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.235:17355] - Exiting completed 02:58:30,650 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.235:17355] - Shutting down... 02:58:30,650 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.235:17355] - Successfully shut down [INFO] [12/09/2025 02:58:30.650] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.235:17355] - Successfully shut down [INFO] [12/09/2025 02:58:30.652] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.235:17355/system/remoting-terminator] Shutting down remote daemon. 02:58:30,652 AM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [12/09/2025 02:58:30.652] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.235:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 02:58:30,652 AM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [12/09/2025 02:58:30.654] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.235:17355/system/remoting-terminator] Remoting shut down. 02:58:30,655 AM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [12/09/2025 02:58:30.655] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger