[DEBUG] [10/21/2025 07:00:43.342] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 07:00:43,342 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [10/21/2025 07:00:43.342] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [10/21/2025 07:00:43.342] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [10/21/2025 07:00:43.358] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.32:17355] with UID [-6826225093585775041] 07:00:43,359 AM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.32:17355] with UID [-6826225093585775041] [INFO] [10/21/2025 07:00:43.359] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.32:17355] - Starting up, Pekko version [1.2.1] ... 07:00:43,359 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.32:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [10/21/2025 07:00:43.363] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.32:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [10/21/2025 07:00:43.363] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.32:17355] - Started up successfully 07:00:43,363 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.32:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 07:00:43,363 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.32:17355] - Started up successfully 07:00:43,369 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.32:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 07:00:43,369 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.32:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [10/21/2025 07:00:43.369] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.32:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [10/21/2025 07:00:43.369] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.32:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:00:43,381 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,460 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 07:00:43,460 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 07:00:43,461 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior332#1497034310] 07:00:43,472 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower333#-1923931821] 07:00:43,472 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader334#-851082098] 07:00:43,475 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,477 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 07:00:43,478 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:00:43,478 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:00:43,478 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:00:43,479 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:00:43,479 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 07:00:43,479 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,479 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 07:00:43,479 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 07:00:43,481 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:00:43,481 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:00:43,481 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 07:00:43,481 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior335#-70455526] 07:00:43,482 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower336#559438257] 07:00:43,482 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader337#1716672891] 07:00:43,485 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,486 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 07:00:43,486 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 07:00:43,487 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior338#-976584282] 07:00:43,487 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower339#1449454398] 07:00:43,487 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader340#-135878192] 07:00:43,490 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,491 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:00:43,491 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 07:00:43,491 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,491 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 07:00:43,492 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 07:00:43,493 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 07:00:43,493 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 07:00:43,493 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 07:00:43,493 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 07:00:43,494 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 07:00:43,494 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 07:00:43,494 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:00:43,495 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior341#1445264617] 07:00:43,496 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower342#-1696128541] 07:00:43,496 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader343#245730552] 07:00:43,498 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,498 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:00:43,499 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:00:43,499 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,499 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 07:00:43,499 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:00:43,499 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:00:43,500 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:00:43,500 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:00:43,500 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior344#1046590112] 07:00:43,500 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower345#-2121306245] 07:00:43,501 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader346#14220518] 07:00:43,513 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,515 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 07:00:43,516 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior347#-1372155112] 07:00:43,518 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower348#1767345141] 07:00:43,518 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader349#-2126794383] 07:00:43,521 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,522 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 07:00:43,522 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:00:43,523 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior350#1117361906] 07:00:43,524 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower351#1909483607] 07:00:43,524 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader352#-1214722514] 07:00:43,527 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 07:00:43,527 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,529 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:00:43,529 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:00:43,529 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:00:43,529 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:00:43,529 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:00:43,530 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 07:00:43,530 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:00:43,530 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:00:43,533 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 07:00:43,533 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior353#1780053683] 07:00:43,534 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower354#1921322854] 07:00:43,534 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader355#-1845911777] 07:00:43,553 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 07:00:43,554 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,556 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 07:00:43,556 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 07:00:43,556 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,556 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:00:43,557 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior356#-426577426] 07:00:43,559 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower357#-231704958] 07:00:43,559 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader358#1152735987] 07:00:43,562 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 07:00:43,562 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,562 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:00:43,562 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:00:43,562 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:00:43,563 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:00:43,563 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:00:43,563 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:00:43,563 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:00:43,564 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:00:43,564 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:00:43,564 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:00:43,564 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:00:43,564 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,565 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 07:00:43,565 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior359#1542643610] 07:00:43,566 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower360#2039385443] 07:00:43,566 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader361#1361572892] 07:00:43,568 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,569 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:00:43,570 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior362#-1550760621] 07:00:43,570 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower363#-1200614557] 07:00:43,570 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader364#-1806709551] 07:00:43,573 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:00:43,573 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,573 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:00:43,574 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:00:43,574 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:00:43,574 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:00:43,574 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:00:43,574 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:00:43,574 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:00:43,574 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,574 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:00:43,574 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:00:43,574 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:00:43,575 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior365#-104372273] 07:00:43,575 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower366#1648915839] 07:00:43,576 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader367#-1972076151] 07:00:43,578 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 07:00:43,578 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,578 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 07:00:43,579 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:00:43,579 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:00:43,579 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:00:43,579 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:00:43,579 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 07:00:43,579 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,579 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:00:43,579 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:00:43,579 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:00:43,579 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:00:43,579 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:00:43,579 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:00:43,580 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 07:00:43,580 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:00:43,580 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:00:43,580 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:00:43,580 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 07:00:43,580 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:00:43,580 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:00:43,580 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,580 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 07:00:43,580 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:00:43,580 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:00:43,580 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:00:43,581 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior368#-1906706057] 07:00:43,581 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower369#-1969333513] 07:00:43,582 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader370#-1804838886] 07:00:43,584 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 07:00:43,584 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,585 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:00:43,585 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:00:43,586 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,586 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 07:00:43,586 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior371#-1169660671] 07:00:43,587 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower372#-1721024966] 07:00:43,587 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader373#532777039] 07:00:43,590 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,592 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior374#-152538114] 07:00:43,593 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower375#-1188744383] 07:00:43,593 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader376#2002750291] 07:00:43,596 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 07:00:43,596 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,596 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:00:43,596 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:00:43,596 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:00:43,597 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:00:43,597 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:00:43,597 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:00:43,597 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:00:43,597 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:00:43,597 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,597 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:00:43,597 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 07:00:43,597 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 07:00:43,597 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 07:00:43,597 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 07:00:43,598 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior377#-387537847] 07:00:43,598 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower378#-95449711] 07:00:43,598 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader379#2121293838] 07:00:43,601 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 07:00:43,603 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:00:43,604 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [10/21/2025 07:00:43.605] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@75f32340 07:00:43,605 AM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 07:00:43,605 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:00:43,605 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor [INFO] [pekkoDeadLetter][10/21/2025 07:00:43.605] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:00:43,606 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:00:43,606 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:00:43,607 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:00:43,607 AM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 07:00:43,607 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 07:00:43,607 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 07:00:43,607 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 07:00:43,607 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:00:43,609 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 07:00:43,609 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 07:00:43,610 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:00:43,610 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:00:43,610 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:00:43,610 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:00:43,610 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 07:00:43,610 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 07:00:43,610 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:00:43,610 AM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 3.183 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 07:00:43,610 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 07:00:43,611 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:00:43,611 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:00:43,611 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:00:43,611 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:00:43,611 AM [test-pekko.actor.default-dispatcher-12] [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 07:00:43,612 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:00:43,612 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 07:00:43,612 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 07:00:43,612 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:00:43,612 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 07:00:43,612 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:00:43,612 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 07:00:43,612 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:00:43,612 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 07:00:43,612 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 07:00:43,612 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,612 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 07:00:43,612 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.662 ms 07:00:43,612 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:00:43,612 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 07:00:43,612 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 07:00:43,613 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 07:00:43,613 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 07:00:43,613 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 07:00:43,613 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 07:00:43,613 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 07:00:43,613 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 07:00:43,613 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 07:00:43,616 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:00:43,616 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:00:43,616 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 3.235 ms 07:00:43,616 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:00:43,616 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 2.130 μs 07:00:43,616 AM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c093faf8@364b3920} 07:00:43,616 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 07:00:43,616 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 07:00:43,616 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 07:00:43,616 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 07:00:43,616 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 648.9 μs 07:00:43,616 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:00:43,616 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:00:43,616 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 07:00:43,617 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 07:00:43,617 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 07:00:43,617 AM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 07:00:43,617 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 07:00:43,617 AM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 07:00:43,617 AM [test-pekko.actor.default-dispatcher-12] [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/0x00000007c093faf8@364b3920} 07:00:43,617 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d21886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F72F9B-24C83390.tmp 07:00:43,617 AM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.067 ms [WARN] [10/21/2025 07:00:43.617] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][10/21/2025 07:00:43.617] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:00:43,617 AM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:00:43,621 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d21886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F72F9B-24C83390.v1 07:00:43,621 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d21886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:00:43,621 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d21886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:00:43,621 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d21886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:00:43,621 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d21886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F72F9B-24C83390.v1 07:00:43,622 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d21886] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-10-21T07:00:43.617100176Z, file=/tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F72F9B-24C83390.v1, size=555, entryCompress=NONE, stateCompress=NONE} 07:00:43,622 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d21886] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:00:43,622 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:00:43,622 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-10-21T07:00:43.617100176Z 07:00:43,622 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 07:00:43,622 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 07:00:43,622 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.404 ms 07:00:43,622 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 07:00:43,622 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 07:00:43,622 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:00:43,622 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 127.3 μs 07:00:43,622 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:00:43,622 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:00:43,712 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:00:43,712 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:00:43,712 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:00:43,712 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F72F9B-24C83390.v1 07:00:43,712 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-10-21T07:00:43.617100176Z, file=/tmp/junit-2225489746011718018/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068F72F9B-24C83390.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 07:00:43,715 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior380#266669310] 07:00:43,726 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower381#1125067915] 07:00:43,726 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader382#-857660055] 07:00:43,727 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 07:00:43,727 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#642,testCaptureSnapshotOnLastEntryInAppendEntries-writer-151]/waiting 07:00:43,727 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 104.8 ms 07:00:43,727 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 21.54 μs 07:00:43,727 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 07:00:43,727 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:00:43,727 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:00:43,727 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:00:43,727 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:00:43,732 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,733 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior383#742100923] 07:00:43,745 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower384#40699455] 07:00:43,747 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader385#1778005922] 07:00:43,753 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 07:00:43,753 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,754 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 07:00:43,754 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:00:43,755 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior386#-839726496] 07:00:43,756 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower387#-420911170] 07:00:43,756 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader388#-278954696] 07:00:43,759 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 07:00:43,759 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,760 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:00:43,760 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:00:43,760 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:00:43,760 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:00:43,760 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:00:43,760 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:00:43,760 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:00:43,760 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,761 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:00:43,761 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:00:43,761 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:00:43,761 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior389#110701670] 07:00:43,762 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower390#1229171499] 07:00:43,762 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader391#-2050703521] 07:00:43,764 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 07:00:43,764 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,765 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:00:43,765 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:00:43,765 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:00:43,765 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,766 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:00:43,766 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 07:00:43,766 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:00:43,766 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 07:00:43,766 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,766 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:00:43,767 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior392#-468083119] 07:00:43,767 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower393#-448073253] 07:00:43,767 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader394#2132125260] 07:00:43,769 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,770 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior395#1701770195] 07:00:43,770 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower396#1573298898] 07:00:43,770 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader397#1713302796] 07:00:43,772 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 07:00:43,772 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,773 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:00:43,773 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:00:43,773 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:00:43,773 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,773 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:00:43,773 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:00:43,774 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:00:43,774 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:00:43,774 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,774 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:00:43,774 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:00:43,775 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:00:43,775 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,775 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:00:43,775 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior398#-1563297926] 07:00:43,776 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower399#-327380687] 07:00:43,776 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader400#739748719] 07:00:43,777 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 07:00:43,778 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,778 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 07:00:43,778 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:00:43,778 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 07:00:43,778 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:00:43,778 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:00:43,778 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:00:43,779 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,779 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:00:43,779 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:00:43,779 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 07:00:43,779 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior401#-590811766] 07:00:43,780 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower402#1527880998] 07:00:43,780 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader403#34465352] 07:00:43,782 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 07:00:43,782 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,783 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:00:43,783 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader406 07:00:43,783 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader406 07:00:43,785 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 07:00:43,785 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior404#-248619843] 07:00:43,786 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower405#1634249549] 07:00:43,786 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader406#263658846] 07:00:43,788 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 07:00:43,788 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,789 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:00:43,789 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:00:43,789 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:00:43,789 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:00:43,789 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:00:43,789 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:00:43,789 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:00:43,789 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,789 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:00:43,789 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:00:43,789 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:00:43,790 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior407#-168758796] 07:00:43,791 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower408#-1630437994] 07:00:43,791 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader409#685533896] 07:00:43,793 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:00:43,793 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,793 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:00:43,794 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:00:43,794 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:00:43,794 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,794 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:00:43,794 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior410#-391584641] 07:00:43,795 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower411#98021095] 07:00:43,795 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader412#-489027682] 07:00:43,797 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 07:00:43,799 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:00:43,800 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [10/21/2025 07:00:43.800] [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@71cca926 [INFO] [pekkoDeadLetter][10/21/2025 07:00:43.800] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:00:43,800 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 07:00:43,800 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'. 07:00:43,800 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:00:43,800 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:00:43,801 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 07:00:43,801 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:00:43,801 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 07:00:43,801 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 07:00:43,801 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 07:00:43,801 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 07:00:43,801 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:00:43,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 07:00:43,804 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 07:00:43,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:00:43,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:00:43,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:00:43,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 07:00:43,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 07:00:43,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 07:00:43,804 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:00:43,805 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 3.404 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 07:00:43,805 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 07:00:43,805 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 07:00:43,807 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 5.565 ms 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 07:00:43,807 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 07:00:43,810 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 07:00:43,810 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 07:00:43,810 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 3.782 ms 07:00:43,811 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:00:43,811 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 2.231 μs 07:00:43,811 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093faf8@39641d66} 07:00:43,811 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:00:43,811 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093faf8@39641d66} 07:00:43,811 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 07:00:43,811 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 07:00:43,811 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 07:00:43,811 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 07:00:43,811 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 889.7 μs 07:00:43,811 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:00:43,811 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:00:43,811 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 07:00:43,812 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 07:00:43,812 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 07:00:43,812 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 07:00:43,812 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 07:00:43,812 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 07:00:43,812 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093faf8@39641d66} 07:00:43,812 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d503927] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F72F9B-30673F63.tmp 07:00:43,812 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.894 ms [WARN] [10/21/2025 07:00:43.812] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][10/21/2025 07:00:43.812] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:00:43,812 AM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:00:43,814 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d503927] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F72F9B-30673F63.v1 07:00:43,814 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d503927] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:00:43,814 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d503927] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:00:43,814 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d503927] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:00:43,814 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d503927] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F72F9B-30673F63.v1 07:00:43,814 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d503927] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-10-21T07:00:43.812072803Z, file=/tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F72F9B-30673F63.v1, size=539, entryCompress=NONE, stateCompress=NONE} 07:00:43,814 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d503927] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:00:43,814 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:00:43,814 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-10-21T07:00:43.812072803Z 07:00:43,814 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 07:00:43,814 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 07:00:43,814 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.847 ms 07:00:43,814 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 07:00:43,814 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 07:00:43,814 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:00:43,815 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:00:43,814 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 160.6 μs 07:00:43,815 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:00:43,957 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:00:43,957 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:00:43,957 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:00:43,957 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F72F9B-30673F63.v1 07:00:43,957 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-10-21T07:00:43.812072803Z, file=/tmp/junit-15723728448617600101/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068F72F9B-30673F63.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 07:00:43,959 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior413#1249500785] 07:00:43,961 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower414#-1847927471] 07:00:43,961 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader415#-1655065748] 07:00:43,961 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 07:00:43,961 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#645,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152]/waiting 07:00:43,961 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 146.9 ms 07:00:43,962 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 20.94 μs 07:00:43,962 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 07:00:43,962 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:00:43,962 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:00:43,962 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:00:43,962 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:00:43,967 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 07:00:43,967 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,968 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:00:43,968 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 07:00:43,968 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 07:00:43,969 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,969 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 07:00:43,969 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior416#1191146624] 07:00:43,970 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower417#-214407705] 07:00:43,970 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader418#245577622] 07:00:43,974 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 07:00:43,974 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,974 AM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:00:43,975 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 07:00:43,975 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 07:00:43,975 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 07:00:43,976 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 07:00:43,976 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior419#-2101219578] 07:00:43,977 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower420#1798173358] 07:00:43,977 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader421#-1834662752] 07:00:43,980 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 07:00:43,980 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,980 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 07:00:43,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]]} 07:00:43,981 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:00:43,981 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:00:43,981 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 07:00:43,981 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:00:43,981 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 07:00:43,981 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:00:43,981 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 07:00:43,981 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 07:00:43,981 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,981 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:00:43,981 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 07:00:43,982 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:00:43,982 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:00:43,982 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:00:43,982 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:00:43,982 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:00:43,982 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:00:43,982 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:00:43,982 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:00:43,982 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior422#1989062295] 07:00:43,983 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower423#-1248230296] 07:00:43,983 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader424#-659789524] 07:00:43,986 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 07:00:43,986 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,986 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 07:00:43,986 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 07:00:43,987 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#-1418474893] 07:00:43,987 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#1118858009] 07:00:43,987 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#395361113] 07:00:43,990 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 07:00:43,990 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,990 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:00:43,990 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:00:43,991 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:00:43,991 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:00:43,991 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 07:00:43,991 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 07:00:43,991 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 07:00:43,992 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:00:43,992 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:00:43,992 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 07:00:43,992 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:00:43,992 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:00:43,992 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,992 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 07:00:43,992 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:00:43,992 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:00:43,992 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:00:43,993 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#-178814490] 07:00:43,993 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#-277220526] 07:00:43,993 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#981107639] 07:00:43,996 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 07:00:43,996 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:43,996 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:00:43,997 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:00:43,997 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:00:43,997 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,997 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:00:43,997 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:00:43,998 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:00:43,998 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:00:43,998 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,998 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:00:43,998 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:00:43,999 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:00:43,999 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 07:00:43,999 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:43,999 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:00:43,999 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#-1852037199] 07:00:44,0 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#2117879163] 07:00:44,0 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#413521977] 07:00:44,3 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 07:00:44,3 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:44,203 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.32:17355, Removed) 07:00:44,203 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 07:00:44,204 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:00:44,204 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:00:44,204 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:00:44,204 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#1847106034] 07:00:44,205 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#1924690874] 07:00:44,205 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#1617421560] 07:00:44,210 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:44,210 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 07:00:44,362 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#-18148035] 07:00:44,363 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#-202694695] 07:00:44,363 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#1937703545] 07:00:44,368 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 07:00:44,368 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:44,370 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 07:00:44,371 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 07:00:44,372 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#1912973257] 07:00:44,373 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#288117020] 07:00:44,373 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#-721681571] 07:00:44,375 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 07:00:44,375 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:44,376 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 07:00:44,376 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:00:44,376 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 07:00:44,376 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:00:44,376 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:00:44,376 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 07:00:44,376 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:00:44,376 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:44,376 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 07:00:44,376 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:00:44,377 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:00:44,377 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:00:44,377 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:00:44,377 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:00:44,377 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:00:44,377 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:00:44,377 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:00:44,377 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:00:44,377 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 07:00:44,377 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 07:00:44,377 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#221291028] 07:00:44,378 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#860458230] 07:00:44,378 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#-872277130] 07:00:44,381 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 07:00:44,381 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:44,381 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:00:44,381 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:00:44,381 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:00:44,382 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:00:44,382 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 07:00:44,382 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:44,383 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#-1447901668] 07:00:44,394 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#-285899489] 07:00:44,394 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#-1037140281] 07:00:44,398 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 07:00:44,398 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:44,399 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 07:00:44,400 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 07:00:44,400 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:00:44,400 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:00:44,400 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:00:44,401 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#-813108728] 07:00:44,412 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#-1592145657] 07:00:44,412 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#-1239251680] 07:00:44,417 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 07:00:44,420 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:00:44,420 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:00:44,421 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:00:44,421 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:00:44,421 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:00:44,422 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:00:44,422 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:00:44,422 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 07:00:44,422 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:00:44,422 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:00:44,422 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:00:44,422 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist [WARN] [10/21/2025 07:00:44.423] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2653a62e [INFO] [pekkoDeadLetter][10/21/2025 07:00:44.423] [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'. 07:00:44,423 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:00:44,426 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 07:00:44,426 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 07:00:44,427 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:00:44,427 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:00:44,427 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:00:44,427 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:00:44,427 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 07:00:44,427 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 07:00:44,427 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:00:44,427 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 4.566 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 07:00:44,427 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 07:00:44,428 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:00:44,428 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:00:44,428 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:00:44,428 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:00:44,428 AM [test-pekko.actor.default-dispatcher-5] [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 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:00:44,430 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 7.633 ms 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 07:00:44,430 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 07:00:44,434 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 07:00:44,434 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 07:00:44,434 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 3.974 ms 07:00:44,434 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:00:44,434 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 3.740 μs 07:00:44,434 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c093faf8@61fdce7e} 07:00:44,434 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:00:44,434 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c093faf8@61fdce7e} 07:00:44,434 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 07:00:44,435 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 07:00:44,435 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 07:00:44,435 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 951.2 μs 07:00:44,435 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 07:00:44,435 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:00:44,435 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:00:44,435 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 07:00:44,435 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 07:00:44,435 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 07:00:44,435 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:00:44,435 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 07:00:44,435 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 07:00:44,435 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c093faf8@61fdce7e} 07:00:44,435 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d555559] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F72F9C-19FA55E4.tmp 07:00:44,435 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.166 ms [WARN] [10/21/2025 07:00:44.436] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][10/21/2025 07:00:44.436] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:00:44,436 AM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:00:44,438 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d555559] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F72F9C-19FA55E4.v1 07:00:44,438 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d555559] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:00:44,438 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d555559] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:00:44,438 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d555559] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:00:44,438 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d555559] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F72F9C-19FA55E4.v1 07:00:44,438 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d555559] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-10-21T07:00:44.435836388Z, file=/tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F72F9C-19FA55E4.v1, size=573, entryCompress=NONE, stateCompress=NONE} 07:00:44,439 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d555559] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:00:44,439 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:00:44,439 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-10-21T07:00:44.435836388Z 07:00:44,439 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 07:00:44,439 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 07:00:44,439 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.580 ms 07:00:44,439 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 07:00:44,439 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 07:00:44,439 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:00:44,439 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:00:44,439 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 172.8 μs 07:00:44,439 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:00:44,580 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:00:44,580 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:00:44,580 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:00:44,580 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F72F9C-19FA55E4.v1 07:00:44,580 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-10-21T07:00:44.435836388Z, file=/tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F72F9C-19FA55E4.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:00:44,581 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:00:44,583 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#648,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153]/waiting 07:00:44,583 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 144.0 ms 07:00:44,583 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 17.17 μs 07:00:44,583 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:00:44,583 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:00:44,583 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:00:44,583 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:00:44,583 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:00:44,584 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [10/21/2025 07:00:44.585] [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@340c8ec5 [INFO] [pekkoDeadLetter][10/21/2025 07:00:44.585] [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. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:00:44,585 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. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:00:44,585 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:00:44,585 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:00:44,585 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:00:44,586 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 07:00:44,587 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 07:00:44,587 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 07:00:44,587 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:00:44,587 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:00:44,587 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:00:44,587 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:00:44,587 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:00:44,587 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:00:44,587 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:00:44,587 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F72F9C-19FA55E4.v1 07:00:44,587 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-10-21T07:00:44.435836388Z, file=/tmp/junit-11184222921162353524/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068F72F9C-19FA55E4.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:00:44,587 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-10-21T07:00:44.435836388Z 07:00:44,588 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:00:44,589 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 07:00:44,589 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 07:00:44,589 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 07:00:44,589 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.994 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 07:00:44,589 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 07:00:44,590 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#1694618640] 07:00:44,590 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#1134539077] 07:00:44,591 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#-888261735] 07:00:44,591 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:00:44,591 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#651,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154]/waiting 07:00:44,591 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 4.046 ms 07:00:44,591 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 14.05 μs 07:00:44,591 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:00:44,591 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:00:44,591 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:00:44,591 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:00:44,591 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:00:44,597 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 07:00:44,597 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:44,898 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:00:45,28 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 07:00:45,279 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 07:00:45,479 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 07:00:45,479 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#1586591670] 07:00:45,480 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#-1587276276] 07:00:45,481 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#1882462882] 07:00:45,485 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:00:45,486 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 07:00:45,486 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:00:45,486 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:00:45,487 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:00:45,487 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#-1488647321] 07:00:45,489 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#-979115606] 07:00:45,489 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#564106319] [INFO] [10/21/2025 07:00:45.490] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 07:00:45,490 AM [test-pekko.actor.default-dispatcher-5] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [10/21/2025 07:00:45.491] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.32:17355) [INFO] [pekkoDeadLetter][10/21/2025 07:00:45.491] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1083121794] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:00:45,492 AM [test-pekko.actor.default-dispatcher-5] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1083121794] 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] [10/21/2025 07:00:45.492] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.32:17355] - Exiting completed [INFO] [10/21/2025 07:00:45.492] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.32:17355] - Shutting down... 07:00:45,492 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.32:17355] - Exiting completed 07:00:45,492 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.32:17355] - Shutting down... 07:00:45,492 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.32:17355] - Successfully shut down [INFO] [10/21/2025 07:00:45.492] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.32:17355] - Successfully shut down [INFO] [10/21/2025 07:00:45.494] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.32:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [10/21/2025 07:00:45.495] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.32:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 07:00:45,495 AM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 07:00:45,495 AM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [10/21/2025 07:00:45.497] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.170.32:17355/system/remoting-terminator] Remoting shut down. 07:00:45,497 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [10/21/2025 07:00:45.498] [test-pekko.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger