[DEBUG] [11/06/2025 16:27:45.839] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 04:27:45,841 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/06/2025 16:27:45.841] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [11/06/2025 16:27:45.841] [main] [EventStream(pekko://test)] Default Loggers started 04:27:45,861 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.22:17355] with UID [7387416399848038338] [INFO] [11/06/2025 16:27:45.861] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.22:17355] with UID [7387416399848038338] 04:27:45,862 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.22:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [11/06/2025 16:27:45.862] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.22:17355] - Starting up, Pekko version [1.2.1] ... [INFO] [11/06/2025 16:27:45.865] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.22:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 04:27:45,865 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.22:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [11/06/2025 16:27:45.865] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.22:17355] - Started up successfully 04:27:45,865 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.22:17355] - Started up successfully 04:27:45,867 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.22:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 04:27:45,867 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.22:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [11/06/2025 16:27:45.866] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.22:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [11/06/2025 16:27:45.866] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.22:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 04:27:45,881 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:45,968 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 04:27:45,969 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 04:27:45,970 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior332#-108345375] 04:27:45,981 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower333#-799033664] 04:27:45,981 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader334#-1682011775] 04:27:45,985 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:45,986 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 04:27:45,987 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:27:45,987 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 04:27:45,987 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 04:27:45,987 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:27:45,988 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 04:27:45,988 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:45,988 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 04:27:45,988 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 04:27:45,989 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:27:45,989 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:27:45,989 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 04:27:45,990 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior335#-1265783712] 04:27:46,0 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower336#-324935988] 04:27:46,0 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader337#-137234813] 04:27:46,4 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,6 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 04:27:46,7 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 04:27:46,8 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior338#-414671827] 04:27:46,18 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower339#1481136847] 04:27:46,19 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader340#-95627530] 04:27:46,22 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,23 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:27:46,24 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 04:27:46,25 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,25 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 04:27:46,26 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 04:27:46,27 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 04:27:46,27 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 04:27:46,27 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 04:27:46,27 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 04:27:46,28 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 04:27:46,28 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 04:27:46,28 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:27:46,29 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior341#-882747101] 04:27:46,39 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower342#1904257421] 04:27:46,40 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader343#416991721] 04:27:46,43 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,43 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:27:46,43 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:27:46,43 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,44 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 04:27:46,44 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:27:46,44 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:27:46,44 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 04:27:46,44 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 04:27:46,45 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior344#-394033809] 04:27:46,55 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower345#-1356625483] 04:27:46,56 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader346#-1826749457] 04:27:46,61 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,62 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 04:27:46,63 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior347#-1557476605] 04:27:46,73 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower348#1174898650] 04:27:46,74 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader349#-1700818583] 04:27:46,78 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,79 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:27:46,79 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:27:46,80 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior350#-821006381] 04:27:46,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower351#653021558] 04:27:46,91 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader352#34415193] 04:27:46,95 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 04:27:46,95 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,98 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:27:46,98 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:27:46,98 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:27:46,98 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:27:46,99 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:27:46,99 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 04:27:46,99 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:27:46,99 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:27:46,101 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 04:27:46,102 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior353#1811400305] 04:27:46,113 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower354#-1446892545] 04:27:46,113 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader355#-1756980710] 04:27:46,117 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 04:27:46,117 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,118 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:27:46,118 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 04:27:46,119 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,119 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:27:46,120 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior356#-1412974958] 04:27:46,130 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower357#-1409613286] 04:27:46,131 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader358#948792376] 04:27:46,134 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 04:27:46,134 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,135 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:27:46,135 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:27:46,135 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:27:46,135 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:27:46,136 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 04:27:46,136 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 04:27:46,136 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 04:27:46,137 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:27:46,137 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:27:46,138 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:27:46,138 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:27:46,138 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,139 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 04:27:46,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior359#-1270099921] 04:27:46,149 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower360#-1580311347] 04:27:46,150 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader361#-1179719621] 04:27:46,154 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,155 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 04:27:46,157 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior362#-2138593235] 04:27:46,168 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower363#-120573286] 04:27:46,168 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader364#-1700767737] 04:27:46,173 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:27:46,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,174 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:27:46,174 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:27:46,175 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:27:46,175 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:27:46,175 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:27:46,175 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:27:46,175 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:27:46,175 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,175 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:27:46,176 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:27:46,176 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:27:46,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior365#-455264037] 04:27:46,188 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower366#1651188060] 04:27:46,188 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader367#251258793] 04:27:46,191 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 04:27:46,191 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,193 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 04:27:46,193 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:27:46,193 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:27:46,193 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:27:46,193 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:27:46,193 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 04:27:46,193 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,194 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:27:46,194 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:27:46,194 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:27:46,194 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:27:46,194 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:27:46,194 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:27:46,195 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 04:27:46,196 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:27:46,196 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 04:27:46,196 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 04:27:46,196 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 04:27:46,196 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:27:46,196 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:27:46,196 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,196 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 04:27:46,196 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:27:46,196 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:27:46,196 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:27:46,197 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior368#1158231874] 04:27:46,207 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower369#373106619] 04:27:46,207 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader370#-244724859] 04:27:46,210 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 04:27:46,211 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,211 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:27:46,212 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:27:46,212 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,212 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 04:27:46,213 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior371#760676920] 04:27:46,223 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower372#628688565] 04:27:46,223 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader373#-1603023433] 04:27:46,226 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior374#-868373275] 04:27:46,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower375#1489333559] 04:27:46,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader376#2085896267] 04:27:46,232 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 04:27:46,232 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,232 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:27:46,233 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:27:46,233 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:27:46,234 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:27:46,234 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:27:46,234 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:27:46,234 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:27:46,234 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:27:46,234 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,234 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:27:46,234 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 04:27:46,234 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 04:27:46,234 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 04:27:46,234 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 04:27:46,235 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior377#2067854036] 04:27:46,235 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower378#-658159044] 04:27:46,235 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader379#1100231086] 04:27:46,237 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 04:27:46,241 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:27:46,241 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [11/06/2025 16:27:46.241] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@7149004a [INFO] [pekkoDeadLetter][11/06/2025 16:27:46.241] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:27:46,242 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 04:27:46,242 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:27:46,242 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:27:46,242 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 04:27:46,242 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:27:46,243 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:27:46,243 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 04:27:46,243 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 04:27:46,243 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 04:27:46,243 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:27:46,243 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 04:27:46,245 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 04:27:46,245 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 04:27:46,245 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:27:46,245 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:27:46,245 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:27:46,245 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 04:27:46,245 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 04:27:46,245 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 04:27:46,245 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:27:46,245 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 2.461 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 04:27:46,245 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 04:27:46,246 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:27:46,246 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:27:46,246 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:27:46,246 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 04:27:46,246 PM [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 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:27:46,249 PM [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]]} 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 04:27:46,249 PM [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} 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 04:27:46,249 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 6.319 ms 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 04:27:46,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 04:27:46,253 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 04:27:46,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 04:27:46,253 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 3.747 ms 04:27:46,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:27:46,253 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 3.280 μs 04:27:46,253 PM [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/0x00000007c093efc0@17f11d4c} 04:27:46,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:27:46,253 PM [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] 04:27:46,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 04:27:46,253 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 04:27:46,253 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 04:27:46,253 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 04:27:46,253 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:27:46,253 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 189.0 μs 04:27:46,253 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:27:46,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 04:27:46,253 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 04:27:46,253 PM [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/0x00000007c093efc0@17f11d4c} 04:27:46,253 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d372056] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690CCC82-0F1CBAB9.tmp 04:27:46,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 3.936 ms 04:27:46,253 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [11/06/2025 16:27:46.253] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][11/06/2025 16:27:46.253] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:27:46,253 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:27:46,259 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d372056] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690CCC82-0F1CBAB9.v1 04:27:46,260 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d372056] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:27:46,260 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d372056] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:27:46,260 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d372056] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:27:46,260 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d372056] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690CCC82-0F1CBAB9.v1 04:27:46,260 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d372056] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-11-06T16:27:46.253541049Z, file=/tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690CCC82-0F1CBAB9.v1, size=555, entryCompress=NONE, stateCompress=NONE} 04:27:46,260 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d372056] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:27:46,260 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:27:46,260 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-11-06T16:27:46.253541049Z 04:27:46,260 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 04:27:46,260 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 04:27:46,260 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 7.130 ms 04:27:46,260 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 04:27:46,260 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 04:27:46,260 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 04:27:46,260 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 122.8 μs 04:27:46,260 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 04:27:46,260 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 04:27:46,347 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 04:27:46,347 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 04:27:46,347 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 04:27:46,347 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690CCC82-0F1CBAB9.v1 04:27:46,348 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-11-06T16:27:46.253541049Z, file=/tmp/junit-7940670335886014413/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000690CCC82-0F1CBAB9.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 04:27:46,350 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior380#1359734079] 04:27:46,351 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower381#-1210408825] 04:27:46,351 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader382#1766833442] 04:27:46,351 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 04:27:46,351 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#645,testCaptureSnapshotOnLastEntryInAppendEntries-writer-151]/waiting 04:27:46,352 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 91.13 ms 04:27:46,352 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 12.52 μs 04:27:46,352 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-151] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 04:27:46,352 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:27:46,352 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 04:27:46,352 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:27:46,352 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 04:27:46,356 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,357 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior383#1540535307] 04:27:46,359 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower384#1702324450] 04:27:46,360 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader385#-1768485024] 04:27:46,366 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 04:27:46,366 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,368 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 04:27:46,368 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 04:27:46,369 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior386#-741257678] 04:27:46,380 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower387#-503863209] 04:27:46,380 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader388#-919346347] 04:27:46,384 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 04:27:46,384 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,385 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:27:46,386 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:27:46,386 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:27:46,386 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:27:46,387 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:27:46,387 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:27:46,387 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:27:46,387 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,387 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:27:46,387 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:27:46,387 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:27:46,388 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior389#-1080926797] 04:27:46,398 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower390#-1615311039] 04:27:46,399 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader391#-651641398] 04:27:46,403 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 04:27:46,403 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,404 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:27:46,404 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:27:46,404 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:27:46,405 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,405 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:27:46,405 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 04:27:46,405 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:27:46,405 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:27:46,406 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,406 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:27:46,406 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior392#-471128129] 04:27:46,417 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower393#933336410] 04:27:46,417 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader394#5257823] 04:27:46,420 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,420 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior395#1150785320] 04:27:46,431 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower396#895921839] 04:27:46,431 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader397#-636746854] 04:27:46,437 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 04:27:46,437 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,438 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:27:46,439 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:27:46,439 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:27:46,439 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,440 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:27:46,440 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:27:46,440 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:27:46,440 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:27:46,441 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,441 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:27:46,441 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:27:46,441 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:27:46,442 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,442 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:27:46,442 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior398#-594159577] 04:27:46,453 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower399#1261717344] 04:27:46,453 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader400#-1306722854] 04:27:46,457 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 04:27:46,457 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,458 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 04:27:46,458 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:27:46,458 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 04:27:46,458 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:27:46,458 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 04:27:46,459 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:27:46,459 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,459 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 04:27:46,459 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:27:46,459 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 04:27:46,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior401#1588962410] 04:27:46,471 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower402#-231376421] 04:27:46,471 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader403#520662087] 04:27:46,473 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 04:27:46,473 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,475 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:27:46,476 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader406 04:27:46,476 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader406 04:27:46,477 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 04:27:46,478 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior404#971769344] 04:27:46,488 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower405#754711116] 04:27:46,488 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader406#-277377841] 04:27:46,491 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 04:27:46,491 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,492 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:27:46,492 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:27:46,492 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:27:46,492 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 04:27:46,492 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 04:27:46,492 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 04:27:46,493 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 04:27:46,493 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,493 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:27:46,493 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 04:27:46,493 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 04:27:46,493 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior407#-1387371770] 04:27:46,504 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower408#-1684099852] 04:27:46,504 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader409#1494138890] 04:27:46,506 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 04:27:46,506 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,507 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:27:46,507 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:27:46,508 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:27:46,508 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,508 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:27:46,508 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior410#749528804] 04:27:46,519 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower411#353550195] 04:27:46,519 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader412#-238084182] 04:27:46,523 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 04:27:46,525 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:27:46,526 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [11/06/2025 16:27:46.526] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@16cd158a [INFO] [pekkoDeadLetter][11/06/2025 16:27:46.526] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:27:46,527 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 04:27:46,533 PM [test-pekko.actor.default-dispatcher-5] [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'. 04:27:46,533 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:27:46,533 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 04:27:46,534 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 04:27:46,534 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:27:46,534 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 04:27:46,534 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 04:27:46,534 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 04:27:46,534 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 04:27:46,534 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:27:46,537 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 04:27:46,537 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 04:27:46,537 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:27:46,537 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:27:46,537 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:27:46,537 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 04:27:46,537 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 04:27:46,537 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 04:27:46,538 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:27:46,538 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 3.520 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 04:27:46,538 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 04:27:46,538 PM [test-pekko.actor.default-dispatcher-7] [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 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 04:27:46,540 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 5.779 ms 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 04:27:46,540 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 04:27:46,544 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 04:27:46,544 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 04:27:46,544 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 3.744 ms 04:27:46,544 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:27:46,544 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 2 commands after 2.230 μs 04:27:46,544 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093efc0@46644df8} 04:27:46,544 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:27:46,544 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093efc0@46644df8} 04:27:46,544 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 1 synchronized callback(s) 04:27:46,545 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 04:27:46,545 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 2 completion(s) pending 04:27:46,545 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 2 completion(s) 04:27:46,545 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 2 commands in 1.017 ms 04:27:46,545 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:27:46,545 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:27:46,545 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 04:27:46,545 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 04:27:46,545 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 04:27:46,545 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 04:27:46,545 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 04:27:46,545 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 04:27:46,545 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093efc0@46644df8} 04:27:46,545 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d569109] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690CCC82-20837261.tmp 04:27:46,545 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.956 ms [WARN] [11/06/2025 16:27:46.545] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][11/06/2025 16:27:46.545] [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'. 04:27:46,545 PM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:27:46,547 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d569109] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690CCC82-20837261.v1 04:27:46,547 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d569109] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:27:46,547 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d569109] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:27:46,547 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d569109] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:27:46,547 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d569109] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690CCC82-20837261.v1 04:27:46,547 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d569109] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-11-06T16:27:46.545485409Z, file=/tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690CCC82-20837261.v1, size=539, entryCompress=NONE, stateCompress=NONE} 04:27:46,547 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d569109] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:27:46,547 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:27:46,547 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-11-06T16:27:46.545485409Z 04:27:46,547 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 04:27:46,547 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 04:27:46,547 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.405 ms 04:27:46,547 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 04:27:46,547 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 04:27:46,547 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 04:27:46,547 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 121.7 μs 04:27:46,547 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 04:27:46,547 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 04:27:46,690 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 04:27:46,690 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 04:27:46,690 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 04:27:46,690 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690CCC82-20837261.v1 04:27:46,690 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-11-06T16:27:46.545485409Z, file=/tmp/junit-13454704652219498181/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000690CCC82-20837261.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 04:27:46,692 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior413#-925494128] 04:27:46,703 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower414#708959253] 04:27:46,703 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader415#-1107832469] 04:27:46,703 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 04:27:46,703 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#649,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152]/waiting 04:27:46,704 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 156.1 ms 04:27:46,704 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 17.64 μs 04:27:46,704 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-152] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 04:27:46,704 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:27:46,704 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 04:27:46,704 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:27:46,704 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 04:27:46,708 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 04:27:46,709 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,709 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:27:46,710 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 04:27:46,710 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 04:27:46,710 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,711 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 04:27:46,711 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior416#1082962501] 04:27:46,721 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower417#-1818356961] 04:27:46,722 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader418#-1252359557] 04:27:46,724 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 04:27:46,724 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,725 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 04:27:46,726 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 04:27:46,726 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 04:27:46,726 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 04:27:46,726 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 04:27:46,727 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior419#1464229089] 04:27:46,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower420#-1307838305] 04:27:46,738 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader421#-1240174450] 04:27:46,740 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 04:27:46,740 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,741 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:27:46,741 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:27:46,742 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:27:46,742 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:27:46,742 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 04:27:46,742 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:27:46,742 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 04:27:46,742 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:27:46,742 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 04:27:46,742 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 04:27:46,742 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,742 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:27:46,742 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 04:27:46,743 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:27:46,743 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:27:46,743 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:27:46,743 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:27:46,743 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:27:46,743 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:27:46,743 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:27:46,743 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:27:46,744 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior422#1125070328] 04:27:46,754 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower423#-555794657] 04:27:46,755 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader424#-1050636800] 04:27:46,758 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 04:27:46,758 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,758 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 04:27:46,758 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 04:27:46,760 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#1336898783] 04:27:46,770 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#844740146] 04:27:46,771 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#-1846726027] 04:27:46,773 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 04:27:46,773 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,774 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:27:46,774 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:27:46,774 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:27:46,775 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:27:46,775 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 04:27:46,776 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 04:27:46,776 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 04:27:46,776 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 04:27:46,776 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 04:27:46,776 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 04:27:46,776 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 04:27:46,777 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 04:27:46,777 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,777 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 04:27:46,777 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 04:27:46,777 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:27:46,777 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:27:46,778 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#634892582] 04:27:46,789 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#88667480] 04:27:46,789 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#-769279526] 04:27:46,793 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 04:27:46,794 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:46,794 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 04:27:46,795 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:27:46,795 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 04:27:46,795 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,795 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 04:27:46,795 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 04:27:46,796 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:27:46,796 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 04:27:46,796 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,797 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 04:27:46,797 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 04:27:46,797 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 04:27:46,797 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 04:27:46,798 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:46,798 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 04:27:46,798 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#676718961] 04:27:46,799 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#132973750] 04:27:46,799 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#-2102548157] 04:27:46,801 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 04:27:46,802 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:47,2 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.22:17355, Removed) 04:27:47,2 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 04:27:47,2 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:27:47,2 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:27:47,2 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:27:47,2 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#-1433748905] 04:27:47,4 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#-2049347380] 04:27:47,4 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#914619123] 04:27:47,9 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:47,9 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 04:27:47,261 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#1686064242] 04:27:47,262 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#-1549935941] 04:27:47,263 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#1655330936] 04:27:47,268 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 04:27:47,268 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:47,270 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 04:27:47,270 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 04:27:47,270 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#2052022924] 04:27:47,271 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#-1555840889] 04:27:47,271 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#399177515] 04:27:47,273 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 04:27:47,273 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:47,274 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 04:27:47,274 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:27:47,274 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 04:27:47,274 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 04:27:47,274 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 04:27:47,274 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 04:27:47,274 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 04:27:47,274 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:47,274 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 04:27:47,274 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 04:27:47,274 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 04:27:47,274 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 04:27:47,274 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 04:27:47,274 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 04:27:47,274 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 04:27:47,274 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 04:27:47,274 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 04:27:47,274 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 04:27:47,275 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 04:27:47,275 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 04:27:47,275 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#1272481901] 04:27:47,276 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#642556117] 04:27:47,276 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#-1838746465] 04:27:47,278 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 04:27:47,278 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:47,279 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 04:27:47,279 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 04:27:47,279 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 04:27:47,279 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 04:27:47,279 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 04:27:47,280 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:47,280 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#96031586] 04:27:47,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#94295925] 04:27:47,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#-563727837] 04:27:47,283 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 04:27:47,283 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:47,284 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 04:27:47,284 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 04:27:47,284 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 04:27:47,285 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 04:27:47,285 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 04:27:47,285 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#702868379] 04:27:47,286 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#1400349205] 04:27:47,286 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#454409661] 04:27:47,288 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 04:27:47,293 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:27:47,293 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [11/06/2025 16:27:47.294] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@ff70a97 [INFO] [pekkoDeadLetter][11/06/2025 16:27:47.294] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:27:47,294 PM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:27:47,294 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:27:47,294 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:27:47,294 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:27:47,295 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 04:27:47,295 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 04:27:47,295 PM [test-pekko.actor.default-dispatcher-5] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 04:27:47,295 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:27:47,295 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:27:47,295 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:27:47,295 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 04:27:47,300 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 04:27:47,300 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 04:27:47,301 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:27:47,301 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:27:47,301 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:27:47,301 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 04:27:47,301 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 04:27:47,301 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 04:27:47,301 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 04:27:47,301 PM [test-pekko.actor.default-dispatcher-5] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 5.662 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 04:27:47,301 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 04:27:47,301 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:27:47,301 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:27:47,301 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:27:47,301 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 04:27:47,301 PM [test-pekko.actor.default-dispatcher-5] [INFO] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Term 1 in "AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]}" message is greater than follower's term 0 - updating term 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 04:27:47,304 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 8.942 ms 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 04:27:47,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 04:27:47,308 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 04:27:47,308 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 3.844 ms 04:27:47,308 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 2 commands after 1.580 μs 04:27:47,308 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 04:27:47,308 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 04:27:47,308 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093efc0@115de280} 04:27:47,308 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 04:27:47,308 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093efc0@115de280} 04:27:47,308 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 04:27:47,309 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 04:27:47,309 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 2 completion(s) pending 04:27:47,309 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 2 commands in 879.4 μs 04:27:47,309 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 2 completion(s) 04:27:47,309 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:27:47,309 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 04:27:47,309 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 04:27:47,309 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 04:27:47,309 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 04:27:47,309 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:27:47,309 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 04:27:47,309 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 04:27:47,309 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d908123] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690CCC83-1272E5FE.tmp 04:27:47,309 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c093efc0@115de280} 04:27:47,309 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 4.861 ms [WARN] [11/06/2025 16:27:47.309] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][11/06/2025 16:27:47.310] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:27:47,310 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:27:47,311 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d908123] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690CCC83-1272E5FE.v1 04:27:47,311 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d908123] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:27:47,311 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d908123] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:27:47,311 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d908123] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:27:47,311 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d908123] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690CCC83-1272E5FE.v1 04:27:47,311 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d908123] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-06T16:27:47.309519870Z, file=/tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690CCC83-1272E5FE.v1, size=573, entryCompress=NONE, stateCompress=NONE} 04:27:47,311 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d908123] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:27:47,311 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:27:47,311 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-11-06T16:27:47.309519870Z 04:27:47,311 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 04:27:47,311 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 04:27:47,311 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 2.389 ms 04:27:47,311 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 04:27:47,311 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 04:27:47,311 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 04:27:47,311 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 04:27:47,311 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 136.7 μs 04:27:47,311 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:27:47,453 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:27:47,453 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:27:47,453 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:27:47,453 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690CCC83-1272E5FE.v1 04:27:47,453 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-06T16:27:47.309519870Z, file=/tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690CCC83-1272E5FE.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:27:47,455 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:27:47,456 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#652,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153]/waiting 04:27:47,456 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 144.7 ms 04:27:47,456 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 13.92 μs 04:27:47,456 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-153] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:27:47,456 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:27:47,456 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:27:47,457 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:27:47,457 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:27:47,458 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [11/06/2025 16:27:47.458] [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@68186a7a [INFO] [pekkoDeadLetter][11/06/2025 16:27:47.458] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:27:47,458 PM [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. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:27:47,459 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 04:27:47,459 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:27:47,459 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 04:27:47,459 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 04:27:47,460 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 04:27:47,460 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 04:27:47,460 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 04:27:47,460 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 04:27:47,460 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 04:27:47,460 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 04:27:47,460 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 04:27:47,460 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 04:27:47,460 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 04:27:47,460 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690CCC83-1272E5FE.v1 04:27:47,460 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-11-06T16:27:47.309519870Z, file=/tmp/junit-3917517025911705902/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000690CCC83-1272E5FE.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 04:27:47,460 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-11-06T16:27:47.309519870Z 04:27:47,460 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 04:27:47,461 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 04:27:47,461 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 04:27:47,461 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 04:27:47,461 PM [test-pekko.actor.default-dispatcher-12] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.134 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 04:27:47,461 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 04:27:47,462 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#1587820800] 04:27:47,472 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#-619102151] 04:27:47,473 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#945131811] 04:27:47,473 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 04:27:47,473 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#655,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154]/waiting 04:27:47,473 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 13.34 ms 04:27:47,473 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 12.97 μs 04:27:47,473 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 04:27:47,474 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:27:47,474 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 04:27:47,474 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:27:47,474 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 04:27:47,479 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 04:27:47,480 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:47,780 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 04:27:47,910 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 04:27:48,161 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 04:27:48,361 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 04:27:48,361 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#851053548] 04:27:48,373 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#162363170] 04:27:48,373 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#-986474636] 04:27:48,377 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 04:27:48,378 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 04:27:48,378 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 04:27:48,378 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 04:27:48,378 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 04:27:48,379 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#1926219727] 04:27:48,390 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#-693080856] 04:27:48,390 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#1017679935] [INFO] [11/06/2025 16:27:48.391] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 04:27:48,392 PM [test-pekko.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [11/06/2025 16:27:48.393] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.22:17355) [INFO] [pekkoDeadLetter][11/06/2025 16:27:48.393] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1623200355] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 04:27:48,393 PM [test-pekko.actor.default-dispatcher-12] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1623200355] 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/06/2025 16:27:48.393] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.22:17355] - Exiting completed 04:27:48,395 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.22:17355] - Exiting completed [INFO] [11/06/2025 16:27:48.394] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.22:17355] - Shutting down... 04:27:48,395 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.22:17355] - Shutting down... [INFO] [11/06/2025 16:27:48.394] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.22:17355] - Successfully shut down 04:27:48,395 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.22:17355] - Successfully shut down [INFO] [11/06/2025 16:27:48.396] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.22:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [11/06/2025 16:27:48.396] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.22:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 04:27:48,396 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 04:27:48,396 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [11/06/2025 16:27:48.398] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.22:17355/system/remoting-terminator] Remoting shut down. 04:27:48,398 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [11/06/2025 16:27:48.399] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger