[DEBUG] [11/15/2025 23:44:23.706] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 11:44:23,707 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/15/2025 23:44:23.707] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [11/15/2025 23:44:23.707] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [11/15/2025 23:44:23.721] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.50:17355] with UID [6639144227546173355] 11:44:23,721 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.50:17355] with UID [6639144227546173355] [INFO] [11/15/2025 23:44:23.722] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.50:17355] - Starting up, Pekko version [1.0.3] ... 11:44:23,722 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.50:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [11/15/2025 23:44:23.724] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.50:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 11:44:23,724 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.50:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [11/15/2025 23:44:23.725] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.50:17355] - Started up successfully 11:44:23,725 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.50:17355] - Started up successfully [INFO] [11/15/2025 23:44:23.725] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.50:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [11/15/2025 23:44:23.725] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.50:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 11:44:23,725 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.50:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 11:44:23,725 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.50:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 11:44:23,744 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:23,849 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 11:44:23,849 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 11:44:23,850 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior337#-701146055] 11:44:23,862 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower338#2085001334] 11:44:23,862 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader339#-593011680] 11:44:23,866 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:23,868 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]]} 11:44:23,868 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:44:23,868 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 11:44:23,868 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 11:44:23,869 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 11:44:23,869 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 11:44:23,869 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} 11:44:23,869 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 11:44:23,869 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 11:44:23,870 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 11:44:23,870 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:44:23,871 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 11:44:23,871 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior340#-1393572388] 11:44:23,872 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower341#-1759271787] 11:44:23,872 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader342#-1870238037] 11:44:23,876 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:23,878 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 11:44:23,878 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 11:44:23,880 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior343#1087187903] 11:44:23,880 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower344#2132669806] 11:44:23,880 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader345#-796366636] 11:44:23,883 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:23,884 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 11:44:23,884 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 11:44:23,884 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} 11:44:23,884 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 11:44:23,885 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 11:44:23,886 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 11:44:23,886 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 11:44:23,886 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. 11:44:23,886 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 11:44:23,887 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 11:44:23,887 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 11:44:23,888 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 11:44:23,889 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior346#-1268348630] 11:44:23,890 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower347#-604537805] 11:44:23,890 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader348#1733446751] 11:44:23,894 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:23,895 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:44:23,895 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:44:23,895 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:23,895 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 11:44:23,896 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 11:44:23,896 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 11:44:23,897 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 11:44:23,897 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 11:44:23,897 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior349#1220834276] 11:44:23,898 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower350#-221028886] 11:44:23,898 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader351#-315379570] 11:44:23,901 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:23,901 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 11:44:23,902 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior352#47241884] 11:44:23,903 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower353#1141674398] 11:44:23,903 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader354#99581809] 11:44:23,905 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:23,906 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 11:44:23,907 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 11:44:23,907 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior355#1445053593] 11:44:23,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower356#-345315238] 11:44:23,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader357#713871982] 11:44:23,910 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 11:44:23,910 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:23,912 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 11:44:23,912 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 11:44:23,912 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:44:23,912 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 11:44:23,913 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 11:44:23,913 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 11:44:23,913 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 11:44:23,913 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 11:44:23,917 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 11:44:23,920 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior358#1771969752] 11:44:23,931 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower359#269360348] 11:44:23,931 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader360#-1530611250] 11:44:23,937 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 11:44:23,937 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:23,939 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]]} 11:44:23,940 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 11:44:23,941 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} 11:44:23,941 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 11:44:23,944 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior361#-375957096] 11:44:23,955 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower362#2089285807] 11:44:23,955 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader363#-196112004] 11:44:23,965 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 11:44:23,965 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:23,966 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 11:44:23,966 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 11:44:23,966 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:44:23,966 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 11:44:23,966 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 11:44:23,966 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 11:44:23,966 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 11:44:23,967 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 11:44:23,967 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 11:44:23,967 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]]} 11:44:23,968 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 11:44:23,969 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} 11:44:23,969 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 11:44:23,969 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior364#-466340656] 11:44:23,980 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower365#-1989032971] 11:44:23,980 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader366#336369961] 11:44:23,988 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:23,989 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 11:44:23,990 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior367#-441115197] 11:44:24,1 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower368#2096721160] 11:44:24,2 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader369#-2029770675] 11:44:24,7 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 11:44:24,7 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,8 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 11:44:24,8 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]]} 11:44:24,8 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:44:24,9 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 11:44:24,9 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 11:44:24,9 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 11:44:24,9 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 11:44:24,9 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} 11:44:24,9 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:44:24,9 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 11:44:24,9 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 11:44:24,10 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior370#-1829129992] 11:44:24,20 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower371#-1853649258] 11:44:24,20 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader372#-1649283796] 11:44:24,23 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 11:44:24,23 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,24 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]]} 11:44:24,24 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:44:24,24 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 11:44:24,24 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:44:24,24 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 11:44:24,24 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 11:44:24,24 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} 11:44:24,24 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 11:44:24,24 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 11:44:24,25 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 11:44:24,25 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:44:24,25 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 11:44:24,25 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 11:44:24,26 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]]} 11:44:24,26 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 11:44:24,26 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 11:44:24,26 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 11:44:24,26 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 11:44:24,26 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 11:44:24,26 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 11:44:24,26 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} 11:44:24,26 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 11:44:24,26 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:44:24,26 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 11:44:24,26 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 11:44:24,27 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior373#-2052050486] 11:44:24,38 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower374#-1343027267] 11:44:24,38 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader375#683828510] 11:44:24,42 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 11:44:24,42 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,42 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 11:44:24,43 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 11:44:24,43 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} 11:44:24,43 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 11:44:24,44 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior376#1036741572] 11:44:24,54 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower377#93112936] 11:44:24,54 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader378#-1538367000] 11:44:24,57 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,60 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior379#-1967562383] 11:44:24,70 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower380#-1728187328] 11:44:24,71 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader381#-53818142] 11:44:24,75 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 11:44:24,75 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,75 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 11:44:24,76 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 11:44:24,77 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]]} 11:44:24,77 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:44:24,77 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 11:44:24,77 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 11:44:24,77 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 11:44:24,77 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 11:44:24,77 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} 11:44:24,78 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:44:24,78 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 11:44:24,78 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 11:44:24,78 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 11:44:24,78 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 11:44:24,78 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior382#-1638335658] 11:44:24,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower383#-2029908705] 11:44:24,89 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader384#1741144464] 11:44:24,93 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [11/15/2025 23:44:24.096] [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@7bbeb248 [INFO] [pekkoDeadLetter][11/15/2025 23:44:24.096] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:44:24,97 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'. 11:44:24,98 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 11:44:24,98 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 11:44:24,98 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 11:44:24,99 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 11:44:24,99 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 11:44:24,99 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 11:44:24,99 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 11:44:24,99 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 11:44:24,101 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 11:44:24,101 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 11:44:24,101 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 11:44:24,101 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 11:44:24,101 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:44:24,101 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 11:44:24,107 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:44:24,107 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 11:44:24,107 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 11:44:24,107 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 11:44:24,107 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 11:44:24,107 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 11:44:24,107 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069191058-06648462.tmp 11:44:24,124 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069191058-06648462.v1 11:44:24,124 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 11:44:24,124 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 11:44:24,124 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 11:44:24,124 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069191058-06648462.v1 11:44:24,126 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-15T23:44:24.107250786Z, file=/tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069191058-06648462.v1, size=419, entryCompress=NONE, stateCompress=NONE} 11:44:24,126 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 19.44 ms, resetting timer for the next recovery snapshot 11:44:24,126 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 11:44:24,126 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 11:44:24,126 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 11:44:24,126 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 11:44:24,126 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 11:44:24,126 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 229.0 μs with journalIndex=1 11:44:24,126 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 11:44:24,127 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 11:44:24,228 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 11:44:24,228 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 11:44:24,228 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 11:44:24,229 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069191058-06648462.v1 11:44:24,229 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-15T23:44:24.107250786Z, file=/tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069191058-06648462.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 11:44:24,229 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 11:44:24,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 11:44:24,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:44:24,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 11:44:24,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 11:44:24,230 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 130.4 ms 11:44:24,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 11:44:24,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 11:44:24,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 11:44:24,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 11:44:24,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 11:44:24,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 11:44:24,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 11:44:24,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 11:44:24,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 11:44:24,230 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 11:44:24,230 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 11:44:24,231 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 11:44:24,231 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 11:44:24,231 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 11:44:24,231 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 11:44:24,231 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 11:44:24,263 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 11:44:24,263 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 33.27 ms 11:44:24,263 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 3.600 μs 11:44:24,263 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 11:44:24,263 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 11:44:24,263 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c09298f8@33b25566} 11:44:24,263 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 11:44:24,265 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 11:44:24,265 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 11:44:24,265 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 2.099 ms 11:44:24,265 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 11:44:24,265 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 11:44:24,265 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 11:44:24,265 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 11:44:24,265 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 11:44:24,265 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 11:44:24,265 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 11:44:24,266 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 11:44:24,266 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 11:44:24,266 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d359866] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069191058-0FDB4D66.tmp 11:44:24,266 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c09298f8@33b25566} 11:44:24,266 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 35.12 ms 11:44:24,266 PM [test-pekko.actor.default-dispatcher-11] [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'. [WARN] [11/15/2025 23:44:24.266] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][11/15/2025 23:44:24.266] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:44:24,273 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d359866] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069191058-0FDB4D66.v1 11:44:24,273 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d359866] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069191058-0FDB4D66.v1 11:44:24,273 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d359866] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 11:44:24,273 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d359866] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 11:44:24,273 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d359866] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 11:44:24,273 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d359866] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069191058-06648462.v1 11:44:24,274 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d359866] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-15T23:44:24.107250786Z, file=/tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069191058-06648462.v1, size=419, entryCompress=NONE, stateCompress=NONE} 11:44:24,274 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d359866] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-11-15T23:44:24.266030438Z, file=/tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069191058-0FDB4D66.v1, size=555, entryCompress=NONE, stateCompress=NONE} 11:44:24,274 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d359866] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 11:44:24,274 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 11:44:24,274 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-11-15T23:44:24.266030438Z 11:44:24,274 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 11:44:24,274 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 11:44:24,274 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 8.627 ms 11:44:24,274 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 11:44:24,274 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 11:44:24,274 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 11:44:24,274 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 190.3 μs 11:44:24,274 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 11:44:24,274 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 11:44:24,431 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069191058-0FDB4D66.v1 11:44:24,431 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 11:44:24,431 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 11:44:24,431 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 11:44:24,431 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-11-15T23:44:24.266030438Z, file=/tmp/junit-3424655969886846465/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000069191058-0FDB4D66.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 11:44:24,434 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior385#1964253831] 11:44:24,445 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower386#488254916] 11:44:24,446 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader387#-921690689] 11:44:24,446 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 11:44:24,446 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#848,testCaptureSnapshotOnLastEntryInAppendEntries-writer-155]/waiting 11:44:24,447 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 172.4 ms 11:44:24,447 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 20.76 μs 11:44:24,447 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 11:44:24,447 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 11:44:24,447 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 11:44:24,447 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 11:44:24,447 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 11:44:24,452 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,453 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior388#-258196427] 11:44:24,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower389#-196754336] 11:44:24,464 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader390#-985260998] 11:44:24,467 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 11:44:24,467 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,469 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 11:44:24,469 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 11:44:24,470 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior391#-1911540232] 11:44:24,470 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower392#-812862768] 11:44:24,471 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader393#-1215017226] 11:44:24,473 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 11:44:24,473 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,474 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 11:44:24,474 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]]} 11:44:24,474 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:44:24,475 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 11:44:24,475 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 11:44:24,475 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 11:44:24,475 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 11:44:24,475 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} 11:44:24,475 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:44:24,475 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 11:44:24,475 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 11:44:24,476 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior394#-698495971] 11:44:24,476 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower395#1281730742] 11:44:24,476 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader396#372213097] 11:44:24,479 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 11:44:24,479 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,479 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 11:44:24,480 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]]} 11:44:24,480 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 11:44:24,480 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} 11:44:24,480 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:44:24,481 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 11:44:24,481 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]]} 11:44:24,481 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 11:44:24,482 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} 11:44:24,482 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 11:44:24,482 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior397#2111857771] 11:44:24,483 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower398#-510980398] 11:44:24,483 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader399#-949355054] 11:44:24,487 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,487 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior400#-1286984082] 11:44:24,488 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower401#1861279662] 11:44:24,488 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader402#-1503894118] 11:44:24,490 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 11:44:24,490 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,491 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 11:44:24,491 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]]} 11:44:24,492 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 11:44:24,492 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} 11:44:24,492 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:44:24,492 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 11:44:24,493 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]]} 11:44:24,493 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 11:44:24,493 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} 11:44:24,493 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 11:44:24,494 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]]} 11:44:24,494 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 11:44:24,495 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} 11:44:24,495 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 11:44:24,495 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior403#1320854360] 11:44:24,496 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower404#-993375790] 11:44:24,496 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader405#-1869772837] 11:44:24,498 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 11:44:24,498 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,499 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]]} 11:44:24,499 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:44:24,499 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 11:44:24,499 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 11:44:24,499 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 11:44:24,499 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 11:44:24,499 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} 11:44:24,500 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 11:44:24,500 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 11:44:24,500 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 11:44:24,500 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior406#191839085] 11:44:24,501 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower407#1589114735] 11:44:24,501 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader408#1226196005] 11:44:24,504 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 11:44:24,504 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,505 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 11:44:24,507 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader411 11:44:24,507 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader411 11:44:24,508 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 11:44:24,508 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior409#1468092743] 11:44:24,509 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower410#161276577] 11:44:24,509 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader411#-1409592593] 11:44:24,511 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 11:44:24,511 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,512 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 11:44:24,512 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]]} 11:44:24,512 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:44:24,512 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 11:44:24,512 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 11:44:24,512 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 11:44:24,512 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 11:44:24,512 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} 11:44:24,513 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:44:24,513 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 11:44:24,513 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 11:44:24,513 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior412#-92104054] 11:44:24,514 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower413#-1963453193] 11:44:24,514 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader414#166416637] 11:44:24,516 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 11:44:24,516 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,516 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 11:44:24,517 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]]} 11:44:24,517 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 11:44:24,517 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} 11:44:24,517 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:44:24,517 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior415#863944731] 11:44:24,518 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower416#652533620] 11:44:24,518 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader417#2060873740] 11:44:24,520 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 11:44:24,520 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 11:44:24,521 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 11:44:24,521 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor [WARN] [11/15/2025 23:44:24.521] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@5c0a540f [INFO] [pekkoDeadLetter][11/15/2025 23:44:24.521] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:44:24,521 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:44:24,521 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 11:44:24,522 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 11:44:24,522 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 11:44:24,522 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 11:44:24,522 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 11:44:24,523 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 11:44:24,524 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 11:44:24,524 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 11:44:24,524 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 11:44:24,524 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 11:44:24,524 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 11:44:24,530 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 11:44:24,530 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 11:44:24,530 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 11:44:24,530 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 11:44:24,530 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 11:44:24,530 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 11:44:24,530 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069191058-1FA33D32.tmp 11:44:24,550 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069191058-1FA33D32.v1 11:44:24,550 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 11:44:24,550 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069191058-1FA33D32.v1 11:44:24,550 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 11:44:24,551 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 11:44:24,551 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-15T23:44:24.530791730Z, file=/tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069191058-1FA33D32.v1, size=419, entryCompress=NONE, stateCompress=NONE} 11:44:24,551 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 20.51 ms, resetting timer for the next recovery snapshot 11:44:24,551 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 11:44:24,551 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 11:44:24,551 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 11:44:24,551 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 11:44:24,551 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 11:44:24,551 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 235.0 μs with journalIndex=1 11:44:24,551 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 11:44:24,552 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 11:44:24,552 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]]} 11:44:24,552 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 11:44:24,552 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:44:24,552 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 11:44:24,552 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 11:44:24,552 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 30.36 ms 11:44:24,553 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 11:44:24,553 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 11:44:24,553 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 11:44:24,553 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 11:44:24,553 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 11:44:24,553 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 11:44:24,553 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} 11:44:24,553 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 11:44:24,553 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 11:44:24,553 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 11:44:24,553 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 11:44:24,553 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 11:44:24,553 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 11:44:24,553 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 11:44:24,563 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 11:44:24,563 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 11:44:24,563 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 11:44:24,563 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 10.77 ms 11:44:24,563 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 3.940 μs 11:44:24,563 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/0x00000007c09298f8@28c179b9} 11:44:24,563 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 11:44:24,594 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 11:44:24,594 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 11:44:24,594 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 11:44:24,594 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 31.12 ms 11:44:24,594 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 11:44:24,594 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 11:44:24,595 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/0x00000007c09298f8@28c179b9} 11:44:24,595 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 11:44:24,595 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] 11:44:24,595 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 11:44:24,595 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 11:44:24,595 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 11:44:24,595 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 11:44:24,595 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 11:44:24,595 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/0x00000007c09298f8@28c179b9} 11:44:24,595 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d456826] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069191058-237BDC51.tmp 11:44:24,595 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 41.85 ms 11:44:24,595 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [11/15/2025 23:44:24.596] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][11/15/2025 23:44:24.595] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:44:24,615 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d456826] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069191058-237BDC51.v1 11:44:24,615 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d456826] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069191058-237BDC51.v1 11:44:24,615 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d456826] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 11:44:24,615 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d456826] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069191058-1FA33D32.v1 11:44:24,615 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d456826] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 11:44:24,615 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d456826] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 11:44:24,615 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d456826] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-15T23:44:24.530791730Z, file=/tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069191058-1FA33D32.v1, size=419, entryCompress=NONE, stateCompress=NONE} 11:44:24,616 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d456826] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-11-15T23:44:24.595319889Z, file=/tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069191058-237BDC51.v1, size=539, entryCompress=NONE, stateCompress=NONE} 11:44:24,616 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d456826] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 11:44:24,616 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 11:44:24,616 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-11-15T23:44:24.595319889Z 11:44:24,616 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 11:44:24,616 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 11:44:24,616 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 21.45 ms 11:44:24,616 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 11:44:24,616 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 11:44:24,616 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 11:44:24,616 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 181.3 μs 11:44:24,616 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 11:44:24,616 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 11:44:24,703 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069191058-237BDC51.v1 11:44:24,703 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 11:44:24,703 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 11:44:24,703 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 11:44:24,703 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-11-15T23:44:24.595319889Z, file=/tmp/junit-6337782673001028241/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000069191058-237BDC51.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 11:44:24,705 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior418#1289599616] 11:44:24,706 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower419#1538087757] 11:44:24,707 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader420#-1820110708] 11:44:24,707 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 11:44:24,707 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#853,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156]/waiting 11:44:24,707 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 90.84 ms 11:44:24,707 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 15.70 μs 11:44:24,707 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 11:44:24,707 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 11:44:24,707 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 11:44:24,707 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 11:44:24,707 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 11:44:24,711 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 11:44:24,712 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,712 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 11:44:24,713 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]]} 11:44:24,713 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 11:44:24,713 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} 11:44:24,714 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 11:44:24,714 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior421#-958728160] 11:44:24,715 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower422#-188941628] 11:44:24,715 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader423#903289720] 11:44:24,717 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 11:44:24,718 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,718 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 11:44:24,719 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 11:44:24,719 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 11:44:24,719 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 11:44:24,719 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 11:44:24,719 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#2112245461] 11:44:24,728 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-1921167923] 11:44:24,728 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#-2060679472] 11:44:24,731 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 11:44:24,731 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,732 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 11:44:24,732 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]]} 11:44:24,732 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 11:44:24,732 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 11:44:24,732 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:44:24,732 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 11:44:24,732 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:44:24,732 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 11:44:24,732 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 11:44:24,732 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 11:44:24,732 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 11:44:24,732 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} 11:44:24,732 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 11:44:24,732 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 11:44:24,733 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 11:44:24,733 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:44:24,733 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 11:44:24,733 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 11:44:24,733 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 11:44:24,733 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 11:44:24,733 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 11:44:24,733 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 11:44:24,733 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-936466943] 11:44:24,734 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#-1360292876] 11:44:24,734 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#607909208] 11:44:24,736 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 11:44:24,736 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,736 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 11:44:24,736 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 11:44:24,737 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-640168575] 11:44:24,737 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#2121466526] 11:44:24,737 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#1285618505] 11:44:24,739 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 11:44:24,739 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,740 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 11:44:24,740 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 11:44:24,740 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:44:24,740 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 11:44:24,740 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 11:44:24,741 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]]} 11:44:24,741 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 11:44:24,741 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 11:44:24,741 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 11:44:24,741 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 11:44:24,741 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 11:44:24,741 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 11:44:24,741 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} 11:44:24,741 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 11:44:24,741 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 11:44:24,741 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 11:44:24,741 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 11:44:24,742 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#1144893689] 11:44:24,742 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#210516667] 11:44:24,742 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#-966120012] 11:44:24,744 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 11:44:24,744 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,744 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 11:44:24,745 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]]} 11:44:24,745 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 11:44:24,745 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} 11:44:24,745 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 11:44:24,745 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 11:44:24,746 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]]} 11:44:24,746 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 11:44:24,746 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} 11:44:24,746 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 11:44:24,746 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 11:44:24,747 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]]} 11:44:24,747 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 11:44:24,747 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} 11:44:24,747 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 11:44:24,747 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#1726150588] 11:44:24,758 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#-536815875] 11:44:24,758 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-1323388014] 11:44:24,761 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 11:44:24,761 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,961 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:44:24,961 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.50:17355, Removed) 11:44:24,961 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 11:44:24,961 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 11:44:24,961 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 11:44:24,962 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:44:24,962 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#-2027965580] 11:44:24,973 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#1223630392] 11:44:24,973 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#259847755] 11:44:24,977 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:24,977 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 11:44:25,179 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:44:25,179 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#416409137] 11:44:25,190 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-2079480030] 11:44:25,190 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#38449803] 11:44:25,195 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 11:44:25,195 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:25,197 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 11:44:25,198 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 11:44:25,198 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-73620514] 11:44:25,209 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#555361968] 11:44:25,209 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#1704607735] 11:44:25,212 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 11:44:25,212 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:25,213 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]]} 11:44:25,213 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 11:44:25,213 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 11:44:25,213 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 11:44:25,213 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 11:44:25,213 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 11:44:25,213 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 11:44:25,213 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} 11:44:25,214 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 11:44:25,214 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 11:44:25,214 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 11:44:25,214 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 11:44:25,214 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 11:44:25,214 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 11:44:25,214 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 11:44:25,214 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 11:44:25,214 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 11:44:25,214 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 11:44:25,214 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 11:44:25,214 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 11:44:25,214 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#2028459946] 11:44:25,225 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#1704136509] 11:44:25,225 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#146061596] 11:44:25,228 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 11:44:25,228 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:25,229 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 11:44:25,229 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 11:44:25,229 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 11:44:25,229 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 11:44:25,230 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]]} 11:44:25,230 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} 11:44:25,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#815455483] 11:44:25,241 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#1778033837] 11:44:25,241 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-578935478] 11:44:25,244 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 11:44:25,244 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:25,245 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 11:44:25,245 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]]} 11:44:25,245 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 11:44:25,245 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 11:44:25,246 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 11:44:25,246 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#797626046] 11:44:25,256 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#-1275512798] 11:44:25,257 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-408855884] 11:44:25,259 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [11/15/2025 23:44:25.260] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@7d87c572 11:44:25,260 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'. [INFO] [pekkoDeadLetter][11/15/2025 23:44:25.260] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 11:44:25,261 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 11:44:25,261 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 11:44:25,261 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 11:44:25,261 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 11:44:25,262 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 11:44:25,262 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 11:44:25,262 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 11:44:25,262 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 11:44:25,263 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 11:44:25,263 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 11:44:25,263 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 11:44:25,263 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 11:44:25,263 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:44:25,263 PM [test-pekko.actor.default-dispatcher-7] [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 11:44:25,270 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:44:25,270 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 11:44:25,270 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 11:44:25,270 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 11:44:25,270 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 11:44:25,270 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 11:44:25,270 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-10200508.tmp 11:44:25,273 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-10200508.v1 11:44:25,273 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 11:44:25,273 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-10200508.v1 11:44:25,273 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 11:44:25,273 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 11:44:25,273 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-15T23:44:25.270533896Z, file=/tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-10200508.v1, size=419, entryCompress=NONE, stateCompress=NONE} 11:44:25,274 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 3.991 ms, resetting timer for the next recovery snapshot 11:44:25,274 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 11:44:25,274 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 11:44:25,274 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 11:44:25,274 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 11:44:25,274 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 11:44:25,274 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 135.3 μs with journalIndex=1 11:44:25,274 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 11:44:25,275 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 11:44:25,376 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 11:44:25,376 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-10200508.v1 11:44:25,376 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 11:44:25,376 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 11:44:25,376 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-15T23:44:25.270533896Z, file=/tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-10200508.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [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]]} 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [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} 11:44:25,377 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 115.5 ms 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 11:44:25,377 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 11:44:25,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 11:44:25,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 11:44:25,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 11:44:25,378 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 11:44:25,378 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 11:44:25,382 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 11:44:25,382 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 11:44:25,382 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 11:44:25,382 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 4.978 ms 11:44:25,382 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c09298f8@233617ff} 11:44:25,382 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 11:44:25,382 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 3.800 μs 11:44:25,382 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c09298f8@233617ff} 11:44:25,382 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 11:44:25,383 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 11:44:25,383 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 11:44:25,383 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 11:44:25,383 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 11:44:25,383 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 1.089 ms 11:44:25,383 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 11:44:25,383 PM [test-pekko.actor.default-dispatcher-7] [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] 11:44:25,384 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 11:44:25,384 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 11:44:25,384 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 11:44:25,384 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 11:44:25,384 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 11:44:25,384 PM [test-pekko.actor.default-dispatcher-7] [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/0x00000007c09298f8@233617ff} 11:44:25,384 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 6.030 ms 11:44:25,384 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d68153] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-16E4D432.tmp [WARN] [11/15/2025 23:44:25.384] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][11/15/2025 23:44:25.384] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:44:25,384 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 11:44:25,386 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d68153] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-16E4D432.v1 11:44:25,386 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d68153] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 11:44:25,386 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d68153] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-10200508.v1 11:44:25,386 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d68153] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-16E4D432.v1 11:44:25,386 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d68153] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 11:44:25,386 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d68153] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 11:44:25,386 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d68153] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-11-15T23:44:25.270533896Z, file=/tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-10200508.v1, size=419, entryCompress=NONE, stateCompress=NONE} 11:44:25,386 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d68153] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-15T23:44:25.384095282Z, file=/tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-16E4D432.v1, size=573, entryCompress=NONE, stateCompress=NONE} 11:44:25,386 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d68153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 11:44:25,387 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 11:44:25,387 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-11-15T23:44:25.384095282Z 11:44:25,387 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 11:44:25,387 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 11:44:25,387 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.199 ms 11:44:25,387 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 11:44:25,387 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 11:44:25,387 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 11:44:25,387 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 128.5 μs 11:44:25,387 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 11:44:25,387 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 11:44:25,629 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 11:44:25,629 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-16E4D432.v1 11:44:25,629 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 11:44:25,629 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 11:44:25,629 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-15T23:44:25.384095282Z, file=/tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-16E4D432.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 11:44:25,631 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 11:44:25,642 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#856,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 11:44:25,643 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 255.9 ms 11:44:25,643 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 21.25 μs 11:44:25,643 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 11:44:25,643 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 11:44:25,643 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 11:44:25,643 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 11:44:25,643 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [11/15/2025 23:44:25.645] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@4e20131a [INFO] [pekkoDeadLetter][11/15/2025 23:44:25.645] [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'. 11:44:25,645 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. [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'. 11:44:25,646 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 11:44:25,646 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 11:44:25,646 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 11:44:25,646 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 11:44:25,647 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 11:44:25,647 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 11:44:25,647 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 11:44:25,647 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 11:44:25,650 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:44:25,650 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 11:44:25,650 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-16E4D432.v1 11:44:25,650 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 11:44:25,650 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 11:44:25,650 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-15T23:44:25.384095282Z, file=/tmp/junit-16897329841279902337/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000069191059-16E4D432.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 11:44:25,650 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 11:44:25,651 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-11-15T23:44:25.384095282Z 11:44:25,651 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:44:25,651 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 185.4 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 11:44:25,651 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 358.1 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 11:44:25,651 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 11:44:25,651 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 11:44:25,651 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 11:44:25,651 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 11:44:25,652 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 11:44:25,652 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 11:44:25,652 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 11:44:25,652 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 133.2 μs with journalIndex=4 11:44:25,652 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 11:44:25,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#1522416351] 11:44:25,663 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#-1866915247] 11:44:25,663 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#20539550] 11:44:25,663 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 11:44:25,664 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#861,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158]/waiting 11:44:25,664 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 16.52 ms 11:44:25,664 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 23.25 μs 11:44:25,664 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 11:44:25,664 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 11:44:25,664 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 11:44:25,664 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 11:44:25,664 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 11:44:25,670 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 11:44:25,670 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:25,970 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 11:44:26,100 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:44:26,100 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 11:44:26,351 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 11:44:26,551 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 11:44:26,551 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-1845059988] 11:44:26,562 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#-503678088] 11:44:26,563 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#-169989041] 11:44:26,567 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 11:44:26,568 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 11:44:26,568 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 11:44:26,568 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 11:44:26,568 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 11:44:26,568 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 11:44:26,569 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#1077663620] 11:44:26,580 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-1378047111] 11:44:26,580 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#-1394975061] [INFO] [11/15/2025 23:44:26.582] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 11:44:26,582 PM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 11:44:26,583 PM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1457100363] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [11/15/2025 23:44:26.583] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.50:17355) [INFO] [pekkoDeadLetter][11/15/2025 23:44:26.583] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1457100363] 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] [11/15/2025 23:44:26.584] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.50:17355] - Exiting completed 11:44:26,584 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.50:17355] - Exiting completed 11:44:26,584 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.50:17355] - Shutting down... 11:44:26,584 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.50:17355] - Successfully shut down [INFO] [11/15/2025 23:44:26.584] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.50:17355] - Shutting down... 11:44:26,585 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 11:44:26,585 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [11/15/2025 23:44:26.584] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.50:17355] - Successfully shut down [INFO] [11/15/2025 23:44:26.585] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.50:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [11/15/2025 23:44:26.585] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.50:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports.