[DEBUG] [11/08/2025 06:30:49.841] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 06:30:49,843 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/08/2025 06:30:49.843] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [11/08/2025 06:30:49.843] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [11/08/2025 06:30:49.864] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.103:17355] with UID [-5361376612677135092] 06:30:49,865 AM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.103:17355] with UID [-5361376612677135092] [INFO] [11/08/2025 06:30:49.865] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - Starting up, Pekko version [1.2.1] ... 06:30:49,865 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [11/08/2025 06:30:49.868] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [11/08/2025 06:30:49.868] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - Started up successfully 06:30:49,869 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 06:30:49,869 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - Started up successfully 06:30:49,870 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 06:30:49,870 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [11/08/2025 06:30:49.870] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [11/08/2025 06:30:49.870] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 06:30:49,881 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:49,972 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 06:30:49,973 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 06:30:49,973 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior332#481246243] 06:30:49,975 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower333#-588354398] 06:30:49,975 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader334#395441175] 06:30:49,978 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:49,981 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 06:30:49,982 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:30:49,982 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 06:30:49,982 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 06:30:49,982 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:30:49,982 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 06:30:49,983 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:49,983 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 06:30:49,983 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 06:30:49,985 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:30:49,985 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:30:49,985 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 06:30:49,985 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior335#-1357558730] 06:30:49,987 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower336#-351296754] 06:30:49,987 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader337#-1622511339] 06:30:49,990 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:49,991 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 06:30:49,992 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 06:30:49,993 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior338#2134687402] 06:30:49,996 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower339#-952036037] 06:30:49,996 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader340#711030875] 06:30:50,0 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,1 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 06:30:50,1 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 06:30:50,2 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,2 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 06:30:50,3 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 06:30:50,4 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 06:30:50,4 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 06:30:50,4 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 06:30:50,4 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 06:30:50,5 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 06:30:50,5 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 06:30:50,6 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 06:30:50,6 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior341#1829863487] 06:30:50,17 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower342#715020605] 06:30:50,17 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader343#1375421276] 06:30:50,20 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,21 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:30:50,21 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:30:50,21 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,22 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 06:30:50,22 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:30:50,22 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:30:50,23 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:30:50,23 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:30:50,23 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior344#1441892142] 06:30:50,34 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower345#992376373] 06:30:50,34 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader346#-875652729] 06:30:50,38 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,39 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 06:30:50,40 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior347#-1309740275] 06:30:50,50 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower348#571855350] 06:30:50,51 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader349#-920362173] 06:30:50,54 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,55 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 06:30:50,56 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:30:50,56 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior350#-1380799803] 06:30:50,67 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower351#-2088225881] 06:30:50,67 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader352#1744633764] 06:30:50,71 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 06:30:50,71 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,74 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:30:50,74 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:30:50,74 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:30:50,74 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:30:50,75 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 06:30:50,75 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 06:30:50,75 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:30:50,76 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:30:50,79 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 06:30:50,79 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior353#2128049553] 06:30:50,90 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower354#677711425] 06:30:50,90 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader355#-2011448869] 06:30:50,94 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 06:30:50,94 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,95 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 06:30:50,96 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 06:30:50,96 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,97 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:30:50,97 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior356#56386113] 06:30:50,108 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower357#-57274658] 06:30:50,108 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader358#-1055586561] 06:30:50,112 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 06:30:50,112 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,113 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:30:50,113 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:30:50,113 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:30:50,113 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:30:50,114 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 06:30:50,114 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:30:50,114 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:30:50,115 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:30:50,115 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:30:50,116 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:30:50,116 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:30:50,117 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,117 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 06:30:50,117 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior359#-187721017] 06:30:50,128 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower360#991037210] 06:30:50,128 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader361#454547479] 06:30:50,132 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,133 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 06:30:50,134 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior362#-1589211226] 06:30:50,145 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower363#-1998665959] 06:30:50,145 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader364#295004895] 06:30:50,149 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:30:50,149 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,149 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:30:50,150 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:30:50,150 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:30:50,150 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:30:50,150 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:30:50,150 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:30:50,150 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:30:50,150 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,151 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:30:50,151 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:30:50,151 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:30:50,151 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior365#1554391422] 06:30:50,162 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower366#1744374113] 06:30:50,162 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader367#120536266] 06:30:50,165 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 06:30:50,165 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,166 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 06:30:50,166 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:30:50,166 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:30:50,166 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:30:50,166 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:30:50,166 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 06:30:50,166 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,167 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:30:50,167 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:30:50,167 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:30:50,167 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:30:50,167 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:30:50,167 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:30:50,168 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 06:30:50,168 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:30:50,168 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:30:50,168 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:30:50,168 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 06:30:50,168 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:30:50,168 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:30:50,168 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,169 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 06:30:50,169 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:30:50,169 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:30:50,169 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:30:50,169 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior368#63714988] 06:30:50,180 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower369#160398070] 06:30:50,180 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader370#2124152188] 06:30:50,184 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 06:30:50,184 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,185 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 06:30:50,186 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:30:50,186 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,186 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 06:30:50,187 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior371#-1922118651] 06:30:50,198 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower372#-1818779262] 06:30:50,198 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader373#-1122582543] 06:30:50,202 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,205 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior374#1446040645] 06:30:50,216 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower375#-405574074] 06:30:50,216 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader376#78058641] 06:30:50,220 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 06:30:50,220 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,220 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:30:50,221 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:30:50,221 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:30:50,221 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:30:50,221 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:30:50,221 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:30:50,221 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:30:50,221 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:30:50,222 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,222 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:30:50,222 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 06:30:50,222 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 06:30:50,222 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 06:30:50,222 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 06:30:50,222 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior377#-206784305] 06:30:50,233 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower378#-1392581655] 06:30:50,233 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader379#369474516] 06:30:50,237 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 06:30:50,241 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:30:50,242 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 06:30:50,243 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:30:50,243 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:30:50,243 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:30:50,244 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:30:50,244 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 [WARN] [11/08/2025 06:30:50.242] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6714dbbb [INFO] [pekkoDeadLetter][11/08/2025 06:30:50.243] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:30:50,245 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:30:50,245 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 06:30:50,245 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 06:30:50,245 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 06:30:50,245 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 06:30:50,245 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:30:50,247 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 06:30:50,248 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 06:30:50,248 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:30:50,248 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:30:50,248 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:30:50,248 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:30:50,248 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 06:30:50,248 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 06:30:50,248 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 06:30:50,248 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 2.797 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 06:30:50,248 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 06:30:50,248 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:30:50,248 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:30:50,248 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:30:50,248 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:30:50,249 AM [test-pekko.actor.default-dispatcher-5] [INFO] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]}" message is greater than follower's term 0 - updating term 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [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]]} 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:30:50,251 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.643 ms 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [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} 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 06:30:50,251 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 06:30:50,252 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 06:30:50,254 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:30:50,254 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 2.994 ms 06:30:50,254 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 2.300 μs 06:30:50,254 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 06:30:50,254 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:30:50,254 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c093fd10@e9dde9} 06:30:50,254 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 06:30:50,255 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 06:30:50,255 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 06:30:50,255 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 06:30:50,255 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 932.4 μs 06:30:50,255 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:30:50,255 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:30:50,255 AM [test-pekko.actor.default-dispatcher-5] [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] 06:30:50,255 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 06:30:50,255 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 06:30:50,255 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 06:30:50,255 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 06:30:50,255 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d542617] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EE39A-0F3FBB2D.tmp 06:30:50,255 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 06:30:50,255 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c093fd10@e9dde9} 06:30:50,256 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.027 ms [WARN] [11/08/2025 06:30:50.256] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] 06:30:50,256 AM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][11/08/2025 06:30:50.256] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:30:50,260 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d542617] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EE39A-0F3FBB2D.v1 06:30:50,261 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d542617] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:30:50,261 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d542617] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:30:50,261 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d542617] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:30:50,261 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d542617] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EE39A-0F3FBB2D.v1 06:30:50,261 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d542617] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-11-08T06:30:50.255834925Z, file=/tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EE39A-0F3FBB2D.v1, size=555, entryCompress=NONE, stateCompress=NONE} 06:30:50,261 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d542617] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:30:50,261 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 06:30:50,261 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-11-08T06:30:50.255834925Z 06:30:50,261 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 06:30:50,261 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 6.071 ms 06:30:50,261 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 06:30:50,261 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 06:30:50,261 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 06:30:50,261 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:30:50,261 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 129.6 μs 06:30:50,261 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 06:30:50,261 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 06:30:50,349 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:30:50,349 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 06:30:50,349 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 06:30:50,349 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EE39A-0F3FBB2D.v1 06:30:50,350 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-11-08T06:30:50.255834925Z, file=/tmp/junit-8487133978842942002/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690EE39A-0F3FBB2D.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 06:30:50,351 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior380#-1063109293] 06:30:50,362 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower381#598126776] 06:30:50,363 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader382#1750570578] 06:30:50,363 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 06:30:50,363 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#650,testCaptureSnapshotOnLastEntryInAppendEntries-writer-151]/waiting 06:30:50,363 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 101.8 ms 06:30:50,371 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 18.53 μs 06:30:50,371 AM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 06:30:50,372 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:30:50,372 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 06:30:50,372 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:30:50,372 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:30:50,376 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,377 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior383#-583839011] 06:30:50,388 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower384#1596617345] 06:30:50,388 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader385#-1553396773] 06:30:50,393 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 06:30:50,394 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,395 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 06:30:50,396 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:30:50,396 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior386#1244777765] 06:30:50,407 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower387#1792765400] 06:30:50,408 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader388#525561500] 06:30:50,412 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 06:30:50,412 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,413 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:30:50,414 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:30:50,414 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:30:50,414 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:30:50,414 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:30:50,414 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:30:50,414 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:30:50,414 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,414 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:30:50,414 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:30:50,415 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:30:50,415 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior389#-1189889607] 06:30:50,426 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower390#-99899116] 06:30:50,426 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader391#-805851384] 06:30:50,430 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 06:30:50,430 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,431 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:30:50,431 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:30:50,431 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:30:50,432 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,432 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:30:50,432 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 06:30:50,432 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:30:50,433 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 06:30:50,433 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,433 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:30:50,433 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior392#-288789712] 06:30:50,434 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower393#80077406] 06:30:50,434 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader394#16802898] 06:30:50,437 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,437 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior395#1619441012] 06:30:50,438 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower396#-1049489486] 06:30:50,438 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader397#1207967131] 06:30:50,440 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 06:30:50,440 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,440 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:30:50,441 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:30:50,441 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:30:50,441 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,441 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:30:50,441 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:30:50,442 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:30:50,442 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:30:50,442 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,442 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:30:50,442 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:30:50,443 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:30:50,443 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,443 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:30:50,443 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior398#-1244088003] 06:30:50,444 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower399#-403941791] 06:30:50,444 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader400#-1862257103] 06:30:50,446 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 06:30:50,446 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,446 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 06:30:50,447 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:30:50,447 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 06:30:50,447 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:30:50,447 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:30:50,447 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:30:50,447 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,447 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:30:50,447 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:30:50,447 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 06:30:50,447 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior401#1245144979] 06:30:50,448 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower402#1710284564] 06:30:50,448 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader403#-1452582669] 06:30:50,450 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 06:30:50,450 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,450 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:30:50,451 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader406 06:30:50,451 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader406 06:30:50,452 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 06:30:50,453 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior404#-2095264332] 06:30:50,453 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower405#-71349638] 06:30:50,453 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader406#-1807391012] 06:30:50,455 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 06:30:50,455 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,455 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:30:50,456 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:30:50,456 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:30:50,456 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:30:50,456 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:30:50,456 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:30:50,456 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:30:50,456 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,456 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:30:50,456 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:30:50,456 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:30:50,457 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior407#-1791897724] 06:30:50,457 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower408#-1115198762] 06:30:50,457 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader409#1974068517] 06:30:50,459 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:30:50,459 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,459 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:30:50,460 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:30:50,460 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:30:50,460 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,460 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:30:50,460 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior410#-2082885415] 06:30:50,461 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower411#-1823453060] 06:30:50,461 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader412#1740865738] 06:30:50,462 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 06:30:50,465 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:30:50,466 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [11/08/2025 06:30:50.466] [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@20b452b8 [INFO] [pekkoDeadLetter][11/08/2025 06:30:50.466] [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'. 06:30:50,466 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:30:50,466 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 06:30:50,466 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:30:50,467 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:30:50,467 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 06:30:50,467 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:30:50,467 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 06:30:50,467 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 06:30:50,467 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 06:30:50,467 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 06:30:50,467 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 06:30:50,470 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 06:30:50,470 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 06:30:50,471 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:30:50,471 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:30:50,471 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:30:50,471 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 06:30:50,471 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 06:30:50,471 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 06:30:50,471 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 06:30:50,471 AM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 3.376 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 06:30:50,471 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 06:30:50,471 AM [test-pekko.actor.default-dispatcher-5] [INFO] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [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]]} 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [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} 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 06:30:50,473 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 6.032 ms 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 06:30:50,473 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 06:30:50,474 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 06:30:50,478 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 06:30:50,478 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 06:30:50,478 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 4.742 ms 06:30:50,478 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.990 μs 06:30:50,478 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:30:50,478 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c093fd10@5a23f81b} 06:30:50,478 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:30:50,478 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c093fd10@5a23f81b} 06:30:50,478 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:30:50,478 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 06:30:50,478 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 06:30:50,478 AM [test-pekko.actor.default-dispatcher-5] [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] 06:30:50,478 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 06:30:50,478 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 136.4 μs 06:30:50,478 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 06:30:50,478 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 06:30:50,478 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 06:30:50,479 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 06:30:50,479 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 06:30:50,479 AM [test-pekko.actor.default-dispatcher-5] [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/0x00000007c093fd10@5a23f81b} 06:30:50,479 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.953 ms 06:30:50,479 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242569] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EE39A-1C8C01BC.tmp 06:30:50,479 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) [WARN] [11/08/2025 06:30:50.479] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 06:30:50,479 AM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][11/08/2025 06:30:50.479] [test-pekko.actor.default-dispatcher-5] [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'. 06:30:50,481 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242569] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EE39A-1C8C01BC.v1 06:30:50,481 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242569] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:30:50,481 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242569] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EE39A-1C8C01BC.v1 06:30:50,481 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242569] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:30:50,481 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242569] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:30:50,482 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242569] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-11-08T06:30:50.478937532Z, file=/tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EE39A-1C8C01BC.v1, size=539, entryCompress=NONE, stateCompress=NONE} 06:30:50,482 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d242569] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 06:30:50,482 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 06:30:50,482 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-11-08T06:30:50.478937532Z 06:30:50,482 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 06:30:50,482 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 06:30:50,482 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 3.547 ms 06:30:50,482 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 06:30:50,482 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 06:30:50,482 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 06:30:50,482 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 06:30:50,482 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 206.2 μs 06:30:50,482 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 06:30:50,623 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:30:50,623 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EE39A-1C8C01BC.v1 06:30:50,623 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 06:30:50,623 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 06:30:50,623 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-11-08T06:30:50.478937532Z, file=/tmp/junit-16532548874216227312/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690EE39A-1C8C01BC.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 06:30:50,625 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior413#-54849523] 06:30:50,626 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower414#-1667263959] 06:30:50,626 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader415#-1392454648] 06:30:50,626 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 06:30:50,626 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#653,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152]/waiting 06:30:50,626 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 144.0 ms 06:30:50,626 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 14.91 μs 06:30:50,626 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 06:30:50,627 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 06:30:50,627 AM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 06:30:50,627 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:30:50,627 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:30:50,631 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 06:30:50,632 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,632 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:30:50,633 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 06:30:50,633 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 06:30:50,634 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,634 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 06:30:50,634 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior416#-1968243951] 06:30:50,635 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower417#859012153] 06:30:50,635 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader418#-1156143234] 06:30:50,637 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 06:30:50,637 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,638 AM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 06:30:50,638 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 06:30:50,638 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 06:30:50,638 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 06:30:50,638 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 06:30:50,639 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior419#-179122050] 06:30:50,639 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower420#877925544] 06:30:50,639 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader421#-111025685] 06:30:50,641 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 06:30:50,641 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,642 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 06:30:50,642 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 06:30:50,642 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:30:50,642 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:30:50,642 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 06:30:50,642 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:30:50,642 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 06:30:50,642 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:30:50,642 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 06:30:50,642 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 06:30:50,642 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,643 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:30:50,643 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 06:30:50,643 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:30:50,643 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:30:50,643 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:30:50,643 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:30:50,643 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:30:50,643 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:30:50,643 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:30:50,643 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:30:50,643 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior422#-544415723] 06:30:50,644 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower423#1042708670] 06:30:50,644 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader424#-2046474810] 06:30:50,646 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 06:30:50,646 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,646 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 06:30:50,646 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 06:30:50,647 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#-116967510] 06:30:50,648 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#165425391] 06:30:50,648 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#-459622353] 06:30:50,650 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 06:30:50,650 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,650 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:30:50,650 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:30:50,650 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:30:50,650 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:30:50,651 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 06:30:50,651 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 06:30:50,651 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 06:30:50,651 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:30:50,651 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:30:50,651 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 06:30:50,651 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:30:50,651 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:30:50,651 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,651 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 06:30:50,651 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:30:50,652 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:30:50,652 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:30:50,652 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#792892409] 06:30:50,652 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#-306526133] 06:30:50,652 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#-332393149] 06:30:50,656 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 06:30:50,656 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,656 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:30:50,657 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:30:50,657 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:30:50,657 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,657 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:30:50,657 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:30:50,657 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:30:50,658 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:30:50,658 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,658 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:30:50,658 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:30:50,658 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:30:50,658 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 06:30:50,659 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:50,659 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:30:50,659 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#-1535600413] 06:30:50,659 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#-661901676] 06:30:50,660 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#1672587031] 06:30:50,662 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 06:30:50,662 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,862 AM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.103:17355, Removed) 06:30:50,862 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 06:30:50,862 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:30:50,862 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:30:50,862 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:30:50,863 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#1591277367] 06:30:50,864 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#-1903046077] 06:30:50,864 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#1747195985] 06:30:50,868 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:50,869 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 06:30:51,70 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#-493944318] 06:30:51,82 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#-576163521] 06:30:51,82 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#-185825915] 06:30:51,86 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 06:30:51,86 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:51,88 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 06:30:51,89 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 06:30:51,90 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#-774147272] 06:30:51,101 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#-1753536686] 06:30:51,101 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#991643265] 06:30:51,104 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 06:30:51,105 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:51,106 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 06:30:51,106 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:30:51,106 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 06:30:51,106 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:30:51,106 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:30:51,106 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 06:30:51,106 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:30:51,107 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:51,107 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 06:30:51,107 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:30:51,107 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:30:51,107 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:30:51,107 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:30:51,107 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:30:51,107 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:30:51,107 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:30:51,107 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:30:51,107 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:30:51,107 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 06:30:51,107 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 06:30:51,108 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#-1874267783] 06:30:51,119 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#-1306415564] 06:30:51,119 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#-597671444] 06:30:51,123 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 06:30:51,123 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:51,123 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:30:51,123 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:30:51,123 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:30:51,123 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:30:51,124 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 06:30:51,124 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:51,125 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#-613223274] 06:30:51,135 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#221117110] 06:30:51,135 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#-1000666173] 06:30:51,138 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 06:30:51,138 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:51,139 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 06:30:51,139 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 06:30:51,140 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:30:51,140 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:30:51,140 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:30:51,141 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#1783319442] 06:30:51,151 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#1260233946] 06:30:51,152 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#-1884851411] 06:30:51,154 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 06:30:51,159 AM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:30:51,159 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:30:51,160 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 06:30:51,160 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:30:51,160 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:30:51,161 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 06:30:51,161 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 06:30:51,161 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 06:30:51,162 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 06:30:51,162 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 06:30:51,162 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:30:51,162 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist [WARN] [11/08/2025 06:30:51.162] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@35f152dc [INFO] [pekkoDeadLetter][11/08/2025 06:30:51.162] [test-pekko.actor.default-dispatcher-5] [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'. 06:30:51,163 AM [test-pekko.actor.default-dispatcher-5] [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'. 06:30:51,166 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 06:30:51,166 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 06:30:51,166 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:30:51,166 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:30:51,166 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:30:51,166 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 06:30:51,166 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 06:30:51,166 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 06:30:51,166 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 06:30:51,166 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 4.392 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 06:30:51,166 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 06:30:51,166 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:30:51,166 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:30:51,166 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:30:51,166 AM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 06:30:51,167 AM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 06:30:51,169 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 7.420 ms 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 06:30:51,169 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 06:30:51,173 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 06:30:51,173 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 06:30:51,173 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 4.364 ms 06:30:51,174 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:30:51,174 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 2.310 μs 06:30:51,174 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093fd10@7f8bee94} 06:30:51,174 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 06:30:51,175 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 06:30:51,176 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 06:30:51,176 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 06:30:51,176 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 2.014 ms 06:30:51,176 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:30:51,176 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:30:51,176 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093fd10@7f8bee94} 06:30:51,176 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:30:51,176 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 06:30:51,176 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 06:30:51,176 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 06:30:51,176 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:30:51,176 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 06:30:51,176 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 06:30:51,176 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093fd10@7f8bee94} 06:30:51,176 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d913478] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EE39B-0A80DEE3.tmp 06:30:51,176 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 6.407 ms [WARN] [11/08/2025 06:30:51.176] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][11/08/2025 06:30:51.176] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:30:51,176 AM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:30:51,178 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d913478] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EE39B-0A80DEE3.v1 06:30:51,178 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d913478] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:30:51,178 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d913478] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EE39B-0A80DEE3.v1 06:30:51,178 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d913478] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:30:51,178 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d913478] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:30:51,179 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d913478] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-08T06:30:51.176217827Z, file=/tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EE39B-0A80DEE3.v1, size=573, entryCompress=NONE, stateCompress=NONE} 06:30:51,179 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d913478] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 06:30:51,179 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 06:30:51,179 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-11-08T06:30:51.176217827Z 06:30:51,179 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 06:30:51,179 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 06:30:51,179 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.143 ms 06:30:51,179 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 06:30:51,179 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 06:30:51,179 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 06:30:51,179 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 108.5 μs 06:30:51,179 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 06:30:51,179 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:30:51,318 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:30:51,318 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EE39B-0A80DEE3.v1 06:30:51,318 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:30:51,318 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:30:51,318 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-08T06:30:51.176217827Z, file=/tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EE39B-0A80DEE3.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:30:51,320 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:30:51,331 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#656,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153]/waiting 06:30:51,331 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 152.1 ms 06:30:51,331 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 16.47 μs 06:30:51,331 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 06:30:51,331 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:30:51,331 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:30:51,331 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:30:51,331 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:30:51,332 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [11/08/2025 06:30:51.332] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2c4fbf7d 06:30:51,333 AM [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'. [INFO] [pekkoDeadLetter][11/08/2025 06:30:51.332] [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. [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'. 06:30:51,333 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 06:30:51,333 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:30:51,333 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:30:51,334 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 06:30:51,334 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 06:30:51,334 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 06:30:51,334 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 06:30:51,334 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 06:30:51,335 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 06:30:51,335 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:30:51,335 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:30:51,335 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EE39B-0A80DEE3.v1 06:30:51,335 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 06:30:51,335 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 06:30:51,335 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-08T06:30:51.176217827Z, file=/tmp/junit-5485278985991712406/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690EE39B-0A80DEE3.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:30:51,335 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-11-08T06:30:51.176217827Z 06:30:51,335 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:30:51,336 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 06:30:51,336 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 06:30:51,336 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 06:30:51,336 AM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.155 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 06:30:51,336 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 06:30:51,336 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#-229604391] 06:30:51,347 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#-368512141] 06:30:51,348 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#-1266924921] 06:30:51,348 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:30:51,348 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#659,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154]/waiting 06:30:51,348 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 13.37 ms 06:30:51,348 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 5.730 μs 06:30:51,348 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 06:30:51,348 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:30:51,348 AM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 06:30:51,348 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:30:51,348 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:30:51,356 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 06:30:51,356 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:51,657 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:30:51,787 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 06:30:52,37 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 06:30:52,237 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 06:30:52,238 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#-67978900] 06:30:52,249 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#-420787416] 06:30:52,249 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#-1377979742] 06:30:52,255 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:30:52,256 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 06:30:52,256 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:30:52,256 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:30:52,256 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:30:52,257 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#-742245096] 06:30:52,267 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#1201495972] 06:30:52,267 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#1365884099] [INFO] [11/08/2025 06:30:52.268] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 06:30:52,268 AM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [11/08/2025 06:30:52.269] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.103:17355) 06:30:52,269 AM [test-pekko.actor.default-dispatcher-11] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-283662726] 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] [pekkoDeadLetter][11/08/2025 06:30:52.269] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-283662726] 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/08/2025 06:30:52.270] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - Exiting completed [INFO] [11/08/2025 06:30:52.270] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - Shutting down... 06:30:52,270 AM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - Exiting completed 06:30:52,270 AM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - Shutting down... [INFO] [11/08/2025 06:30:52.270] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.103:17355] - Successfully shut down 06:30:52,271 AM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.103:17355] - Successfully shut down 06:30:52,272 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [11/08/2025 06:30:52.272] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.103:17355/system/remoting-terminator] Shutting down remote daemon. 06:30:52,272 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [11/08/2025 06:30:52.272] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.103:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [11/08/2025 06:30:52.275] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.103:17355/system/remoting-terminator] Remoting shut down. 06:30:52,275 AM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [11/08/2025 06:30:52.275] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger