[DEBUG] [09/16/2025 16:30:40.479] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:30:40,480 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [09/16/2025 16:30:40.480] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [09/16/2025 16:30:40.480] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [09/16/2025 16:30:40.497] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.205:17355] with UID [-2589515091595947103] 04:30:40,497 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.205:17355] with UID [-2589515091595947103] [INFO] [09/16/2025 16:30:40.497] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.205:17355] - Starting up, Pekko version [1.0.3] ... 04:30:40,498 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.205:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [09/16/2025 16:30:40.500] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.205:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:30:40,500 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.205:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [09/16/2025 16:30:40.500] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.205:17355] - Started up successfully 04:30:40,500 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.205:17355] - Started up successfully [INFO] [09/16/2025 16:30:40.500] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.205:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:30:40,500 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.205:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [09/16/2025 16:30:40.500] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.205:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:30:40,500 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.205:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:30:40,513 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,599 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 04:30:40,599 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 04:30:40,600 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#2093484874] 04:30:40,611 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#-174936391] 04:30:40,611 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#-1064772454] 04:30:40,615 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,617 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 04:30:40,617 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:30:40,617 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 04:30:40,617 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 04:30:40,618 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:30:40,618 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 04:30:40,618 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:40,618 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 04:30:40,618 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 04:30:40,620 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:30:40,620 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:30:40,620 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 04:30:40,621 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#1086285326] 04:30:40,632 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#-728225420] 04:30:40,632 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#1025037880] 04:30:40,637 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,639 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 04:30:40,640 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 04:30:40,641 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#60634611] 04:30:40,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#1460739922] 04:30:40,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#-1998107055] 04:30:40,656 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,657 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:30:40,659 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 04:30:40,659 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:40,660 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 04:30:40,661 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 04:30:40,662 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 04:30:40,662 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 04:30:40,662 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 04:30:40,662 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 04:30:40,663 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 04:30:40,664 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 04:30:40,665 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:30:40,666 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#1526994467] 04:30:40,677 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#922162187] 04:30:40,677 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#-583538724] 04:30:40,680 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,680 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:30:40,681 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:30:40,681 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,681 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 04:30:40,682 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:30:40,682 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:30:40,682 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:30:40,682 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:30:40,683 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#-1604609837] 04:30:40,693 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#-2111001802] 04:30:40,693 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#-819363648] 04:30:40,697 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,699 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 04:30:40,701 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#1365404326] 04:30:40,711 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#1339799561] 04:30:40,712 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#1104575877] 04:30:40,715 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,717 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:30:40,718 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:30:40,718 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#-1216629031] 04:30:40,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#745076287] 04:30:40,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#770858106] 04:30:40,733 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 04:30:40,733 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,737 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:30:40,737 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:30:40,737 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:30:40,737 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:30:40,738 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:30:40,738 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 04:30:40,738 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:30:40,738 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:30:40,742 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 04:30:40,743 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#-2142262107] 04:30:40,753 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#24955614] 04:30:40,753 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#401749651] 04:30:40,756 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 04:30:40,756 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,758 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:30:40,758 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 04:30:40,758 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:40,758 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:30:40,759 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#2133160714] 04:30:40,770 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#-1829366984] 04:30:40,770 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#361496934] 04:30:40,774 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 04:30:40,774 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,775 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:30:40,775 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:30:40,775 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:30:40,775 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:30:40,776 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:30:40,777 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:30:40,777 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:30:40,777 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:30:40,778 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:30:40,778 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:30:40,778 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:30:40,778 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:40,778 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 04:30:40,779 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#1214989894] 04:30:40,789 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#1953380323] 04:30:40,789 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#-111063060] 04:30:40,792 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,792 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:30:40,793 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#1638636169] 04:30:40,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#-107039592] 04:30:40,804 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#270955499] 04:30:40,806 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:30:40,806 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,807 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:30:40,807 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:30:40,807 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:30:40,807 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:30:40,807 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:30:40,807 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:30:40,807 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:30:40,807 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:40,807 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:30:40,807 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:30:40,808 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:30:40,808 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#-1282099063] 04:30:40,818 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#-1024245490] 04:30:40,819 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#1140250018] 04:30:40,821 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 04:30:40,821 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,822 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 04:30:40,822 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:30:40,822 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:30:40,822 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:30:40,822 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:30:40,822 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 04:30:40,822 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:40,822 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:30:40,822 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:30:40,822 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:30:40,822 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:30:40,822 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:30:40,822 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:30:40,823 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 04:30:40,823 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:30:40,823 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:30:40,823 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:30:40,823 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 04:30:40,823 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:30:40,823 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:30:40,823 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:40,823 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 04:30:40,823 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:30:40,823 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:30:40,823 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:30:40,824 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior461#-244962037] 04:30:40,834 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower462#-1928991396] 04:30:40,834 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader463#2078606813] 04:30:40,837 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 04:30:40,837 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,837 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:30:40,838 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:30:40,838 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:40,838 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 04:30:40,838 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior464#-1573706466] 04:30:40,849 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower465#-1348557107] 04:30:40,849 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader466#1950157486] 04:30:40,852 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,855 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior467#559063675] 04:30:40,866 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower468#-428391885] 04:30:40,866 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader469#377816395] 04:30:40,870 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 04:30:40,870 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:40,871 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:30:40,871 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:30:40,872 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:30:40,873 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:30:40,873 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:30:40,873 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:30:40,873 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:30:40,873 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:30:40,874 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:40,874 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:30:40,874 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 04:30:40,874 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 04:30:40,874 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 04:30:40,874 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 04:30:40,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior470#1603161955] 04:30:40,885 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower471#51911073] 04:30:40,886 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader472#-771735034] 04:30:40,890 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 04:30:40,895 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 04:30:40,895 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:30:40,895 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:30:40,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:30:40,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:30:40,896 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 04:30:40,897 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 04:30:40,897 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:30:40,897 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [09/16/2025 16:30:40.897] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@85d91b [INFO] [pekkoDeadLetter][09/16/2025 16:30:40.897] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:30:40,900 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 04:30:40,900 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:30:40,900 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:30:40,900 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 04:30:40,900 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:30:40,900 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:30:40,903 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:30:40,903 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 04:30:40,903 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 04:30:40,903 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:30:40,904 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 04:30:40,904 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:30:40,904 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C990B0-35E3596E.tmp 04:30:40,907 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C990B0-35E3596E.v1 04:30:40,907 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C990B0-35E3596E.v1 04:30:40,908 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:30:40,908 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:30:40,908 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:30:40,908 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T16:30:40.904092014Z, file=/tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C990B0-35E3596E.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:30:40,908 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 4.182 ms, resetting timer for the next recovery snapshot 04:30:40,908 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:30:40,908 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 04:30:40,908 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 04:30:40,908 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 04:30:40,908 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:30:40,908 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 295.3 μs with journalIndex=1 04:30:40,908 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:30:40,909 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 04:30:41,11 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C990B0-35E3596E.v1 04:30:41,11 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:30:41,11 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:30:41,11 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:30:41,11 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T16:30:40.904092014Z, file=/tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C990B0-35E3596E.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 04:30:41,12 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 04:30:41,12 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 04:30:41,12 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:30:41,12 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 04:30:41,12 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 04:30:41,13 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 116.3 ms 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 04:30:41,13 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 04:30:41,18 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 04:30:41,18 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 5.212 ms 04:30:41,18 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 04:30:41,18 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 4.110 μs 04:30:41,18 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:30:41,18 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d76b0@7b0139e7} 04:30:41,18 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:30:41,18 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 04:30:41,19 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:30:41,19 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 200.3 μs 04:30:41,19 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:30:41,19 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:30:41,19 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 04:30:41,19 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 04:30:41,19 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:30:41,19 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 04:30:41,19 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 04:30:41,19 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d76b0@7b0139e7} 04:30:41,19 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d388818] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C990B1-0124ED2F.tmp 04:30:41,19 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 5.653 ms 04:30:41,19 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [09/16/2025 16:30:41.019] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 04:30:41,19 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][09/16/2025 16:30:41.019] [test-pekko.actor.default-dispatcher-7] [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'. 04:30:41,21 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d388818] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C990B1-0124ED2F.v1 04:30:41,22 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d388818] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C990B0-35E3596E.v1 04:30:41,22 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d388818] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C990B1-0124ED2F.v1 04:30:41,22 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d388818] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:30:41,22 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d388818] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:30:41,22 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d388818] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:30:41,22 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d388818] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T16:30:40.904092014Z, file=/tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C990B0-35E3596E.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:30:41,22 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d388818] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-09-16T16:30:41.019197231Z, file=/tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C990B1-0124ED2F.v1, size=555, entryCompress=NONE, stateCompress=NONE} 04:30:41,22 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d388818] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:30:41,22 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:30:41,22 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-09-16T16:30:41.019197231Z 04:30:41,22 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 04:30:41,22 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.542 ms 04:30:41,22 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 04:30:41,22 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 04:30:41,22 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 04:30:41,22 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:30:41,22 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 185.7 μs 04:30:41,22 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:30:41,22 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:30:41,215 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C990B1-0124ED2F.v1 04:30:41,215 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:30:41,215 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:30:41,215 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:30:41,215 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-09-16T16:30:41.019197231Z, file=/tmp/junit-12739627359967734784/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068C990B1-0124ED2F.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 04:30:41,218 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior473#-186730324] 04:30:41,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower474#-1109684485] 04:30:41,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader475#-784783415] 04:30:41,229 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 04:30:41,229 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#826,testCaptureSnapshotOnLastEntryInAppendEntries-writer-158]/waiting 04:30:41,229 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 207.1 ms 04:30:41,230 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 10.82 μs 04:30:41,230 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 04:30:41,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:30:41,230 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:30:41,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:30:41,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:30:41,234 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,235 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior476#-706995021] 04:30:41,246 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower477#-1882631899] 04:30:41,246 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader478#336769161] 04:30:41,251 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 04:30:41,251 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,252 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 04:30:41,252 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:30:41,253 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior479#847361411] 04:30:41,264 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower480#1179901164] 04:30:41,264 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader481#-954586150] 04:30:41,268 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 04:30:41,269 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,270 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:30:41,271 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:30:41,271 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:30:41,271 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:30:41,271 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:30:41,271 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:30:41,271 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:30:41,271 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,271 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:30:41,271 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:30:41,272 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:30:41,272 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#1286138582] 04:30:41,283 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower483#1703078733] 04:30:41,283 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader484#62850230] 04:30:41,288 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 04:30:41,288 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,289 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:30:41,290 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:30:41,290 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:30:41,290 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,291 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:30:41,291 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 04:30:41,292 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:30:41,292 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:30:41,293 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,293 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:30:41,293 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior485#-14193078] 04:30:41,304 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower486#1886023596] 04:30:41,304 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader487#188161853] 04:30:41,313 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,313 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#-1204695709] 04:30:41,324 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower489#1810396770] 04:30:41,324 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader490#-999605315] 04:30:41,327 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 04:30:41,327 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,328 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:30:41,330 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:30:41,330 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:30:41,331 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,331 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:30:41,331 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:30:41,332 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:30:41,332 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:30:41,333 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,333 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:30:41,334 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:30:41,334 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:30:41,335 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,335 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:30:41,336 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior491#848695737] 04:30:41,346 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower492#-2047158374] 04:30:41,346 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader493#383927519] 04:30:41,349 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 04:30:41,349 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,351 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:30:41,351 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:30:41,351 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 04:30:41,351 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:30:41,352 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:30:41,352 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:30:41,352 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,352 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:30:41,352 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:30:41,352 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 04:30:41,353 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#-456054234] 04:30:41,364 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower495#-514684595] 04:30:41,364 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader496#-1925088162] 04:30:41,367 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 04:30:41,367 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,368 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:30:41,369 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader499 04:30:41,369 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader499 04:30:41,370 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 04:30:41,371 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior497#1132327381] 04:30:41,382 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower498#955882836] 04:30:41,382 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader499#1848182919] 04:30:41,386 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 04:30:41,386 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,387 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:30:41,388 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:30:41,388 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:30:41,388 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:30:41,388 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:30:41,388 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:30:41,388 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:30:41,388 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,389 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:30:41,389 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:30:41,389 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:30:41,389 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior500#1815469334] 04:30:41,400 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower501#1184094581] 04:30:41,400 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader502#-2084088865] 04:30:41,404 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:30:41,404 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,405 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:30:41,405 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:30:41,406 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:30:41,406 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,407 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:30:41,407 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior503#1557056332] 04:30:41,418 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower504#-245278410] 04:30:41,418 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader505#-1466629807] 04:30:41,421 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [09/16/2025 16:30:41.422] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@161053db 04:30:41,422 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][09/16/2025 16:30:41.422] [test-pekko.actor.default-dispatcher-7] [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'. 04:30:41,422 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 04:30:41,422 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:30:41,422 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:30:41,423 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 04:30:41,423 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:30:41,423 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 04:30:41,423 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 04:30:41,423 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:30:41,424 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 04:30:41,424 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:30:41,424 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:30:41,425 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 04:30:41,425 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:30:41,425 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:30:41,428 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:30:41,428 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 04:30:41,428 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 04:30:41,428 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:30:41,428 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 04:30:41,428 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:30:41,428 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C990B1-198A5AE9.tmp 04:30:41,431 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C990B1-198A5AE9.v1 04:30:41,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C990B1-198A5AE9.v1 04:30:41,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:30:41,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:30:41,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:30:41,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T16:30:41.428497641Z, file=/tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C990B1-198A5AE9.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:30:41,432 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.785 ms, resetting timer for the next recovery snapshot 04:30:41,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 04:30:41,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 04:30:41,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 04:30:41,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 04:30:41,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:30:41,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 168.2 μs with journalIndex=1 04:30:41,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 04:30:41,432 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 04:30:41,433 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 9.835 ms 04:30:41,433 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 04:30:41,440 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 04:30:41,440 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 04:30:41,440 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 7.246 ms 04:30:41,440 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:30:41,440 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 4.280 μs 04:30:41,440 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d76b0@1e1015c3} 04:30:41,440 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:30:41,440 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d76b0@1e1015c3} 04:30:41,440 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:30:41,440 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 04:30:41,440 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:30:41,440 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 04:30:41,440 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 04:30:41,440 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 191.6 μs 04:30:41,440 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:30:41,440 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 04:30:41,440 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:30:41,441 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 04:30:41,441 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 04:30:41,441 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d76b0@1e1015c3} 04:30:41,441 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 7.679 ms 04:30:41,441 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:30:41,441 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d182215] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C990B1-1A495CF0.tmp [WARN] [09/16/2025 16:30:41.441] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][09/16/2025 16:30:41.441] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:30:41,441 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:30:41,443 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d182215] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C990B1-1A495CF0.v1 04:30:41,443 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d182215] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C990B1-198A5AE9.v1 04:30:41,443 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d182215] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C990B1-1A495CF0.v1 04:30:41,443 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d182215] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:30:41,443 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d182215] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:30:41,443 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d182215] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:30:41,443 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d182215] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T16:30:41.428497641Z, file=/tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C990B1-198A5AE9.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:30:41,444 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d182215] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-09-16T16:30:41.441015536Z, file=/tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C990B1-1A495CF0.v1, size=539, entryCompress=NONE, stateCompress=NONE} 04:30:41,444 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d182215] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:30:41,444 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:30:41,444 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-09-16T16:30:41.441015536Z 04:30:41,444 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 04:30:41,444 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 04:30:41,444 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.403 ms 04:30:41,444 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 04:30:41,444 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 04:30:41,444 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:30:41,444 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 166.8 μs 04:30:41,444 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:30:41,444 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:30:41,584 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C990B1-1A495CF0.v1 04:30:41,584 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:30:41,584 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:30:41,584 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:30:41,584 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-09-16T16:30:41.441015536Z, file=/tmp/junit-3044822701149874702/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068C990B1-1A495CF0.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 04:30:41,586 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior506#39810673] 04:30:41,597 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower507#1667324264] 04:30:41,597 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader508#-2026669901] 04:30:41,597 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 04:30:41,598 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#832,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159]/waiting 04:30:41,598 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 153.8 ms 04:30:41,598 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 17.89 μs 04:30:41,598 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 04:30:41,598 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:30:41,598 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:30:41,598 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:30:41,598 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:30:41,603 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 04:30:41,603 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,604 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:30:41,605 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 04:30:41,605 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 04:30:41,606 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,606 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 04:30:41,607 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#-519752727] 04:30:41,618 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower510#256239404] 04:30:41,618 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader511#935712337] 04:30:41,622 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 04:30:41,622 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,623 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:30:41,624 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 04:30:41,624 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 04:30:41,624 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 04:30:41,624 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 04:30:41,625 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior512#1961949863] 04:30:41,636 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower513#-1241580887] 04:30:41,636 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader514#805831398] 04:30:41,641 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 04:30:41,641 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,642 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:30:41,643 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:30:41,643 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:30:41,643 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:30:41,644 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:30:41,644 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 04:30:41,644 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:30:41,644 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 04:30:41,644 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:30:41,644 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 04:30:41,644 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 04:30:41,644 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,644 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:30:41,644 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 04:30:41,645 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:30:41,645 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:30:41,645 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:30:41,645 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:30:41,645 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:30:41,645 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:30:41,645 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:30:41,645 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:30:41,646 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#-1691911876] 04:30:41,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower516#1894489703] 04:30:41,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader517#-370822965] 04:30:41,660 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 04:30:41,660 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,661 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 04:30:41,661 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 04:30:41,662 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior518#-2055137670] 04:30:41,673 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower519#770232019] 04:30:41,673 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader520#864586304] 04:30:41,676 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 04:30:41,677 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,677 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:30:41,677 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:30:41,677 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:30:41,678 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:30:41,678 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 04:30:41,679 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 04:30:41,679 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 04:30:41,679 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:30:41,679 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:30:41,679 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 04:30:41,679 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:30:41,680 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:30:41,680 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,680 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 04:30:41,680 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:30:41,680 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:30:41,680 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:30:41,681 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior521#-2045720274] 04:30:41,692 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower522#-1808394188] 04:30:41,692 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader523#2057911519] 04:30:41,696 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 04:30:41,696 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,696 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:30:41,697 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:30:41,697 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:30:41,698 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,698 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:30:41,698 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:30:41,699 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:30:41,699 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:30:41,700 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,700 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:30:41,700 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:30:41,701 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:30:41,701 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:30:41,701 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:41,702 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:30:41,702 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior524#2056441629] 04:30:41,713 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower525#-779894148] 04:30:41,713 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader526#1756167182] 04:30:41,717 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 04:30:41,717 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,917 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:30:41,918 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.205:17355, Removed) 04:30:41,918 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 04:30:41,918 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:30:41,918 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:30:41,918 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:30:41,918 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior527#131739840] 04:30:41,929 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower528#1346985941] 04:30:41,930 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader529#1955871197] 04:30:41,934 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:41,934 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 04:30:42,136 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:30:42,136 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior530#743025912] 04:30:42,147 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower531#2074292250] 04:30:42,147 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader532#1450165067] 04:30:42,151 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 04:30:42,152 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:42,154 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:30:42,155 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 04:30:42,155 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior533#-685731512] 04:30:42,166 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower534#664928868] 04:30:42,166 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader535#-1080342146] 04:30:42,170 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 04:30:42,170 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:42,171 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 04:30:42,171 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:30:42,172 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 04:30:42,172 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:30:42,172 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:30:42,172 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 04:30:42,172 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:30:42,172 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:42,172 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 04:30:42,172 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:30:42,172 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:30:42,172 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:30:42,173 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:30:42,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:30:42,173 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:30:42,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:30:42,173 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:30:42,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:30:42,173 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 04:30:42,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 04:30:42,174 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior536#1514080013] 04:30:42,185 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower537#-141418105] 04:30:42,185 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader538#-2144745768] 04:30:42,189 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 04:30:42,189 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:42,189 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:30:42,190 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:30:42,190 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:30:42,190 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:30:42,191 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 04:30:42,191 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:42,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior539#503639318] 04:30:42,203 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower540#958126796] 04:30:42,203 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader541#-1826764459] 04:30:42,207 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 04:30:42,207 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:42,208 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:30:42,208 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:30:42,208 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:30:42,209 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:30:42,209 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:30:42,210 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior542#-278634635] 04:30:42,220 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower543#-1029541555] 04:30:42,220 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader544#1417804291] 04:30:42,224 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [09/16/2025 16:30:42.225] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6b70bb05 [INFO] [pekkoDeadLetter][09/16/2025 16:30:42.225] [test-pekko.actor.default-dispatcher-7] [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'. 04:30:42,226 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:30:42,226 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:30:42,226 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:30:42,226 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:30:42,227 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:30:42,227 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:30:42,227 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 04:30:42,228 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:30:42,228 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:30:42,229 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 04:30:42,229 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:30:42,229 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:30:42,229 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 04:30:42,229 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:30:42,229 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 04:30:42,235 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:30:42,235 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 04:30:42,235 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 04:30:42,235 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 04:30:42,235 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 04:30:42,236 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:30:42,236 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-0E11676B.tmp 04:30:42,240 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-0E11676B.v1 04:30:42,240 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-0E11676B.v1 04:30:42,240 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:30:42,240 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:30:42,240 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:30:42,240 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T16:30:42.236021611Z, file=/tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-0E11676B.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:30:42,240 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 4.761 ms, resetting timer for the next recovery snapshot 04:30:42,240 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:30:42,240 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:30:42,240 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 04:30:42,240 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 04:30:42,241 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:30:42,241 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 184.8 μs with journalIndex=1 04:30:42,241 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:30:42,241 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 04:30:42,342 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-0E11676B.v1 04:30:42,343 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:30:42,343 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:30:42,343 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:30:42,343 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T16:30:42.236021611Z, file=/tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-0E11676B.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:30:42,344 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 116.4 ms 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 04:30:42,344 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 04:30:42,345 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 04:30:42,349 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 04:30:42,349 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 04:30:42,349 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 5.281 ms 04:30:42,349 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:30:42,349 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 4.280 μs 04:30:42,349 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d76b0@4c3ce1cd} 04:30:42,349 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:30:42,349 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d76b0@4c3ce1cd} 04:30:42,349 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 04:30:42,351 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 04:30:42,351 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 04:30:42,351 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 04:30:42,351 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 1.206 ms 04:30:42,351 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:30:42,351 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:30:42,351 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:30:42,351 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 04:30:42,351 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 04:30:42,351 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:30:42,351 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 04:30:42,351 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 04:30:42,351 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c08d76b0@4c3ce1cd} 04:30:42,351 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d800640] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-14F0E4F1.tmp 04:30:42,351 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 6.490 ms [WARN] [09/16/2025 16:30:42.351] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][09/16/2025 16:30:42.352] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:30:42,352 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:30:42,355 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d800640] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-14F0E4F1.v1 04:30:42,355 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d800640] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-0E11676B.v1 04:30:42,355 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d800640] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-14F0E4F1.v1 04:30:42,355 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d800640] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:30:42,355 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d800640] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:30:42,355 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d800640] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:30:42,355 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d800640] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-09-16T16:30:42.236021611Z, file=/tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-0E11676B.v1, size=419, entryCompress=NONE, stateCompress=NONE} 04:30:42,355 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d800640] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-16T16:30:42.351331569Z, file=/tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-14F0E4F1.v1, size=573, entryCompress=NONE, stateCompress=NONE} 04:30:42,356 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d800640] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:30:42,356 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:30:42,356 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-09-16T16:30:42.351331569Z 04:30:42,356 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 04:30:42,356 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 04:30:42,356 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 5.070 ms 04:30:42,356 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 04:30:42,356 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 04:30:42,356 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:30:42,356 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:30:42,356 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 161.9 μs 04:30:42,356 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:30:42,547 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-14F0E4F1.v1 04:30:42,547 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:30:42,547 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:30:42,547 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:30:42,547 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-16T16:30:42.351331569Z, file=/tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-14F0E4F1.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:30:42,549 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:30:42,560 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#835,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160]/waiting 04:30:42,560 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 203.8 ms 04:30:42,560 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 20.13 μs 04:30:42,560 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:30:42,560 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:30:42,560 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:30:42,560 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:30:42,560 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [09/16/2025 16:30:42.561] [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@753aa7f5 04:30:42,562 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. [INFO] [pekkoDeadLetter][09/16/2025 16:30:42.562] [test-pekko.actor.default-dispatcher-7] [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'. 04:30:42,562 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:30:42,562 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:30:42,562 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:30:42,563 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 04:30:42,564 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 04:30:42,564 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 04:30:42,564 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:30:42,564 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:30:42,565 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:30:42,565 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-14F0E4F1.v1 04:30:42,565 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:30:42,565 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:30:42,565 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:30:42,565 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-16T16:30:42.351331569Z, file=/tmp/junit-8941345618998150516/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068C990B2-14F0E4F1.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:30:42,565 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:30:42,566 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-09-16T16:30:42.351331569Z 04:30:42,566 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:30:42,566 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 124.1 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 04:30:42,566 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 233.5 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 04:30:42,566 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 04:30:42,566 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:30:42,566 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 04:30:42,566 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:30:42,566 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 04:30:42,566 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 04:30:42,566 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 04:30:42,566 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 173.6 μs with journalIndex=4 04:30:42,566 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 04:30:42,567 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior545#1980491616] 04:30:42,578 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower546#654201683] 04:30:42,578 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader547#580244421] 04:30:42,578 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:30:42,578 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#840,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161]/waiting 04:30:42,578 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 14.72 ms 04:30:42,579 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 10.08 μs 04:30:42,579 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:30:42,579 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:30:42,579 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:30:42,579 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:30:42,579 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:30:42,583 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 04:30:42,584 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:42,884 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:30:43,16 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:30:43,16 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 131 < election timeout PT0.4S 04:30:43,266 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 04:30:43,467 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 04:30:43,467 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior548#-742576086] 04:30:43,479 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower549#-1185096869] 04:30:43,479 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader550#-95380528] 04:30:43,484 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:30:43,485 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 04:30:43,485 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 04:30:43,485 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:30:43,485 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:30:43,485 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:30:43,486 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior551#-1527727791] 04:30:43,496 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower552#-942992192] 04:30:43,497 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader553#-677905168] 04:30:43,499 PM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [09/16/2025 16:30:43.499] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:30:43,501 PM [test-pekko.actor.default-dispatcher-11] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-868480155] 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'. 04:30:43,501 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.205:17355] - Exiting completed 04:30:43,501 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.205:17355] - Shutting down... 04:30:43,502 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.205:17355] - Successfully shut down [WARN] [09/16/2025 16:30:43.502] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.205:17355) [INFO] [pekkoDeadLetter][09/16/2025 16:30:43.501] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-868480155] 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] [09/16/2025 16:30:43.501] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.205:17355] - Exiting completed [INFO] [09/16/2025 16:30:43.501] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.205:17355] - Shutting down... [INFO] [09/16/2025 16:30:43.501] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.205:17355] - Successfully shut down 04:30:43,504 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [09/16/2025 16:30:43.504] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.205:17355/system/remoting-terminator] Shutting down remote daemon. 04:30:43,504 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [09/16/2025 16:30:43.504] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.205:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [09/16/2025 16:30:43.506] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.205:17355/system/remoting-terminator] Remoting shut down. 04:30:43,506 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [09/16/2025 16:30:43.506] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger