[DEBUG] [08/28/2025 12:58:37.015] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 12:58:37,15 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/28/2025 12:58:37.015] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/28/2025 12:58:37.015] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/28/2025 12:58:37.023] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.139:17355] with UID [536257580035495257] [INFO] [08/28/2025 12:58:37.024] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.139:17355] - Starting up, Pekko version [1.1.5] ... 12:58:37,24 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.139:17355] with UID [536257580035495257] 12:58:37,24 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.139:17355] - Starting up, Pekko version [1.1.5] ... [INFO] [08/28/2025 12:58:37.026] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.139:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [08/28/2025 12:58:37.026] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.139:17355] - Started up successfully 12:58:37,26 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.139:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 12:58:37,26 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.139:17355] - Started up successfully 12:58:37,27 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.139:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 12:58:37,27 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.139:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [08/28/2025 12:58:37.027] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.139:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/28/2025 12:58:37.027] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.139:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 12:58:37,40 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,118 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 12:58:37,118 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 12:58:37,119 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior425#-628887842] 12:58:37,130 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower426#-532500233] 12:58:37,130 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader427#672017085] 12:58:37,133 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,135 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]]} 12:58:37,136 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:58:37,136 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 12:58:37,136 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 12:58:37,136 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 12:58:37,136 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 12:58:37,137 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} 12:58:37,137 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 12:58:37,137 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 12:58:37,138 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:58:37,138 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:58:37,138 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 12:58:37,139 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior428#-945806299] 12:58:37,150 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower429#-38774779] 12:58:37,150 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader430#-2007649353] 12:58:37,154 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,156 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 12:58:37,156 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 12:58:37,157 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior431#1181655226] 12:58:37,168 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower432#-1380466722] 12:58:37,168 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader433#-1004526128] 12:58:37,172 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,173 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 12:58:37,174 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 12:58:37,175 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} 12:58:37,188 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 12:58:37,188 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 12:58:37,189 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:58:37,189 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 12:58:37,189 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. 12:58:37,189 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 12:58:37,190 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 12:58:37,190 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 12:58:37,190 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 12:58:37,191 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior434#-2120815365] 12:58:37,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower435#-984855769] 12:58:37,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader436#1820159353] 12:58:37,194 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,195 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:58:37,195 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:58:37,195 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,195 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 12:58:37,196 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 12:58:37,196 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 12:58:37,196 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 12:58:37,196 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 12:58:37,196 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior437#1886419688] 12:58:37,197 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower438#1605551712] 12:58:37,197 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader439#2138747275] 12:58:37,199 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,200 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 12:58:37,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior440#1926518797] 12:58:37,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower441#924679901] 12:58:37,201 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader442#627466956] 12:58:37,203 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,204 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 12:58:37,205 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 12:58:37,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior443#-783161355] 12:58:37,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower444#-634422328] 12:58:37,205 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader445#-1790009676] 12:58:37,208 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 12:58:37,208 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,210 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:58:37,210 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:58:37,210 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:58:37,210 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:58:37,211 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 12:58:37,211 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 12:58:37,211 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 12:58:37,211 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 12:58:37,213 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 12:58:37,214 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior446#-485372507] 12:58:37,214 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower447#-204702253] 12:58:37,214 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader448#988531792] 12:58:37,217 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 12:58:37,217 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,218 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]]} 12:58:37,218 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 12:58:37,218 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} 12:58:37,218 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 12:58:37,218 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior449#-1835592290] 12:58:37,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower450#-5507368] 12:58:37,219 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader451#-723964940] 12:58:37,221 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 12:58:37,222 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,222 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:58:37,222 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:58:37,222 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:58:37,222 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:58:37,223 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 12:58:37,223 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 12:58:37,223 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 12:58:37,223 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 12:58:37,223 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 12:58:37,224 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]]} 12:58:37,224 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 12:58:37,224 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} 12:58:37,224 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 12:58:37,225 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior452#1060952098] 12:58:37,225 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower453#1157460953] 12:58:37,225 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader454#-1299150699] 12:58:37,228 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,228 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 12:58:37,229 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior455#-1528436558] 12:58:37,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower456#-1180290043] 12:58:37,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader457#490755065] 12:58:37,232 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 12:58:37,232 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,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 12:58:37,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]]} 12:58:37,233 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:58:37,233 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:58:37,233 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:58:37,233 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:58:37,233 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:58:37,233 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} 12:58:37,234 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:58:37,234 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 12:58:37,234 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 12:58:37,234 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior458#1926613954] 12:58:37,235 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower459#-2012780690] 12:58:37,235 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader460#-205098761] 12:58:37,237 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 12:58:37,237 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,238 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]]} 12:58:37,238 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:58:37,238 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 12:58:37,238 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 12:58:37,238 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:58:37,238 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 12:58:37,238 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} 12:58:37,238 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:58:37,238 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 12:58:37,238 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:58:37,238 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:58:37,239 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 12:58:37,239 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 12:58:37,239 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]]} 12:58:37,239 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:58:37,239 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 12:58:37,239 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 12:58:37,239 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 12:58:37,239 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 12:58:37,239 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 12:58:37,239 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} 12:58:37,240 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 12:58:37,240 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:58:37,240 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:58:37,240 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:58:37,240 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior461#900556276] 12:58:37,241 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower462#776332311] 12:58:37,241 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader463#-106027109] 12:58:37,243 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 12:58:37,243 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,244 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 12:58:37,244 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 12:58:37,245 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} 12:58:37,245 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 12:58:37,245 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior464#908417670] 12:58:37,246 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower465#594152549] 12:58:37,246 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader466#693123679] 12:58:37,248 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,251 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior467#-1404474890] 12:58:37,251 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower468#-561329138] 12:58:37,251 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader469#-309176837] 12:58:37,254 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 12:58:37,254 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,254 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 12:58:37,254 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 12:58:37,255 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]]} 12:58:37,255 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:58:37,255 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:58:37,255 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:58:37,255 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:58:37,255 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:58:37,255 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} 12:58:37,255 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:58:37,255 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 12:58:37,255 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 12:58:37,255 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 12:58:37,255 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 12:58:37,255 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior470#228509663] 12:58:37,256 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower471#-1694173284] 12:58:37,256 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader472#227045970] 12:58:37,259 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [08/28/2025 12:58:37.261] [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@59294e00 [INFO] [pekkoDeadLetter][08/28/2025 12:58:37.261] [test-pekko.actor.default-dispatcher-11] [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'. 12:58:37,261 PM [test-pekko.actor.default-dispatcher-12] [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'. 12:58:37,262 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 12:58:37,262 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 12:58:37,262 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 12:58:37,263 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 12:58:37,264 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 12:58:37,264 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 12:58:37,264 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 12:58:37,264 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 12:58:37,265 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 12:58:37,266 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 12:58:37,266 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 12:58:37,266 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 12:58:37,266 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:58:37,266 PM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:58:37,431 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:58:37,431 PM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 12:58:37,431 PM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 12:58:37,431 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 12:58:37,431 PM [test-pekko.actor.default-dispatcher-13] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Taking snapshot on entry with index -1 12:58:37,432 PM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 12:58:37,432 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B0527D-19C12D09.tmp 12:58:37,447 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B0527D-19C12D09.v1 12:58:37,447 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B0527D-19C12D09.v1 12:58:37,447 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 12:58:37,447 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 12:58:37,447 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 12:58:37,447 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-28T12:58:37.432090377Z, file=/tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B0527D-19C12D09.v1, size=419, entryCompress=NONE, stateCompress=NONE} 12:58:37,447 PM [test-pekko.actor.default-dispatcher-13] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot completed in 15.74 ms, resetting timer for the next recovery snapshot 12:58:37,447 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 12:58:37,447 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 12:58:37,447 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 12:58:37,448 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 12:58:37,448 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 12:58:37,448 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: journal recovery completedin 829.3 μs with journalIndex=1 12:58:37,448 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 12:58:37,449 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 12:58:37,550 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B0527D-19C12D09.v1 12:58:37,550 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 12:58:37,550 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 12:58:37,550 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 12:58:37,550 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-28T12:58:37.432090377Z, file=/tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B0527D-19C12D09.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 12:58:37,551 PM [test-pekko.actor.default-dispatcher-13] [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]]} 12:58:37,551 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 12:58:37,551 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:58:37,551 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 12:58:37,551 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 12:58:37,551 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 287.7 ms 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [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} 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 12:58:37,552 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 12:58:37,554 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 12:58:37,554 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 2.962 ms 12:58:37,554 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 8.260 μs 12:58:37,555 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 12:58:37,555 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 12:58:37,555 PM [test-pekko.actor.default-dispatcher-13] [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/0x00000007c09013e8@792242d0} 12:58:37,555 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 1 synchronized callback(s) 12:58:37,556 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 12:58:37,556 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 12:58:37,556 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 12:58:37,556 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 1.274 ms 12:58:37,556 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 12:58:37,556 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 12:58:37,556 PM [test-pekko.actor.default-dispatcher-13] [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] 12:58:37,556 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 12:58:37,556 PM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 12:58:37,556 PM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 12:58:37,556 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 12:58:37,556 PM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 12:58:37,556 PM [test-pekko.actor.default-dispatcher-13] [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/0x00000007c09013e8@792242d0} 12:58:37,556 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d175686] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B0527D-212C24BB.tmp 12:58:37,556 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 3.940 ms [WARN] [08/28/2025 12:58:37.557] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/28/2025 12:58:37.557] [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'. 12:58:37,557 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:58:37,560 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d175686] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B0527D-212C24BB.v1 12:58:37,560 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d175686] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B0527D-19C12D09.v1 12:58:37,560 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d175686] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B0527D-212C24BB.v1 12:58:37,560 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d175686] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 12:58:37,560 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d175686] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 12:58:37,560 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d175686] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 12:58:37,560 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d175686] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-28T12:58:37.432090377Z, file=/tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B0527D-19C12D09.v1, size=419, entryCompress=NONE, stateCompress=NONE} 12:58:37,561 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d175686] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-28T12:58:37.556541115Z, file=/tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B0527D-212C24BB.v1, size=555, entryCompress=NONE, stateCompress=NONE} 12:58:37,561 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d175686] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 12:58:37,561 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 12:58:37,561 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-08-28T12:58:37.556541115Z 12:58:37,561 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 12:58:37,561 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 5.001 ms 12:58:37,561 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 12:58:37,561 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 12:58:37,561 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 12:58:37,561 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 12:58:37,561 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 181.9 μs 12:58:37,561 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 12:58:37,561 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 12:58:37,753 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B0527D-212C24BB.v1 12:58:37,754 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 12:58:37,754 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 12:58:37,754 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 12:58:37,754 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-08-28T12:58:37.556541115Z, file=/tmp/junit-1608761935742990228/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B0527D-212C24BB.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 12:58:37,756 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior473#-1708067024] 12:58:37,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower474#-41708998] 12:58:37,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader475#-1899096650] 12:58:37,767 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 12:58:37,767 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#843,testCaptureSnapshotOnLastEntryInAppendEntries-writer-158]/waiting 12:58:37,767 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 206.1 ms 12:58:37,767 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 18.65 μs 12:58:37,767 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-158] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 12:58:37,768 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 12:58:37,768 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 12:58:37,768 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 12:58:37,768 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 12:58:37,771 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,772 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior476#-1357897215] 12:58:37,783 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower477#-1988517454] 12:58:37,783 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader478#1048678677] 12:58:37,785 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 12:58:37,785 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,786 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 12:58:37,787 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 12:58:37,787 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior479#1863099632] 12:58:37,798 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower480#84009747] 12:58:37,799 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader481#-231176444] 12:58:37,802 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 12:58:37,802 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,803 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 12:58:37,803 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]]} 12:58:37,804 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:58:37,804 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:58:37,804 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:58:37,804 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 12:58:37,804 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:58:37,804 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} 12:58:37,804 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:58:37,804 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 12:58:37,805 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 12:58:37,805 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior482#788824817] 12:58:37,816 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower483#671033829] 12:58:37,816 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader484#-214250553] 12:58:37,820 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 12:58:37,820 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,821 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 12:58:37,821 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]]} 12:58:37,821 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 12:58:37,822 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} 12:58:37,822 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:58:37,822 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 12:58:37,823 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]]} 12:58:37,823 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 12:58:37,823 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} 12:58:37,823 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 12:58:37,823 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior485#1749667151] 12:58:37,834 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower486#-2042232779] 12:58:37,835 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader487#287068676] 12:58:37,838 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,838 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior488#791526575] 12:58:37,838 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower489#57658421] 12:58:37,839 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader490#-131336529] 12:58:37,841 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 12:58:37,841 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,842 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 12:58:37,842 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]]} 12:58:37,843 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 12:58:37,843 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} 12:58:37,843 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:58:37,843 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 12:58:37,844 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]]} 12:58:37,844 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 12:58:37,844 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} 12:58:37,844 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 12:58:37,845 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]]} 12:58:37,845 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 12:58:37,845 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} 12:58:37,845 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 12:58:37,846 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior491#1898736469] 12:58:37,846 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower492#-1716173658] 12:58:37,846 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader493#2087451352] 12:58:37,848 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 12:58:37,848 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,864 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]]} 12:58:37,864 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:58:37,865 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 12:58:37,865 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 12:58:37,865 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 12:58:37,865 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 12:58:37,865 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} 12:58:37,865 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 12:58:37,865 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 12:58:37,865 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 12:58:37,865 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior494#460655208] 12:58:37,866 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower495#-175813676] 12:58:37,866 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader496#1337622184] 12:58:37,869 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 12:58:37,869 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,870 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 12:58:37,871 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader499 12:58:37,871 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader499 12:58:37,872 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 12:58:37,872 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior497#-1828672538] 12:58:37,873 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower498#56555682] 12:58:37,873 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader499#335126236] 12:58:37,875 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 12:58:37,875 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,875 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 12:58:37,876 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]]} 12:58:37,876 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:58:37,876 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 12:58:37,876 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 12:58:37,876 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 12:58:37,876 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 12:58:37,876 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} 12:58:37,876 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:58:37,876 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 12:58:37,876 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 12:58:37,877 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior500#-849214758] 12:58:37,877 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower501#-1165882383] 12:58:37,877 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader502#-1389650629] 12:58:37,879 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 12:58:37,879 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:37,880 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 12:58:37,880 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]]} 12:58:37,880 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 12:58:37,880 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} 12:58:37,880 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:58:37,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior503#289822127] 12:58:37,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower504#-1060098025] 12:58:37,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader505#-241526267] 12:58:37,883 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [08/28/2025 12:58:37.883] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@3c45e745 [INFO] [pekkoDeadLetter][08/28/2025 12:58:37.884] [test-pekko.actor.default-dispatcher-13] [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'. 12:58:37,884 PM [test-pekko.actor.default-dispatcher-13] [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'. 12:58:37,884 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 12:58:37,884 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 12:58:37,884 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 12:58:37,884 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 12:58:37,885 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 12:58:37,885 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 12:58:37,885 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 12:58:37,885 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 12:58:37,886 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 12:58:37,886 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 12:58:37,886 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 12:58:37,886 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 12:58:37,886 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 12:58:37,886 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:58:37,890 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 12:58:37,890 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 12:58:37,890 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 12:58:37,890 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 12:58:37,890 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 12:58:37,890 PM [test-pekko.actor.default-dispatcher-7] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:150) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:226) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:272) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:233) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:245) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) [ERROR] [08/28/2025 12:58:37.890] [test-pekko.actor.internal-dispatcher-4] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:150) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:226) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:272) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:233) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:245) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 12:58:37,891 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#848,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159]/waiting 12:58:37,891 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 6.239 ms 12:58:37,891 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 11.20 μs 12:58:37,891 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-159] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 12:58:37,892 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 12:58:37,892 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 12:58:37,892 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 12:58:37,892 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 12:58:37,892 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 12:58:37,892 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 12:58:37,892 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 12:58:37,893 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 12:58:37,893 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 12:58:37,893 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 [WARN] [08/28/2025 12:58:37.893] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@73be506 [INFO] [pekkoDeadLetter][08/28/2025 12:58:37.893] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [4] 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'. 12:58:37,893 PM [test-pekko.actor.default-dispatcher-7] [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. [4] 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'. 12:58:37,893 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 12:58:37,893 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 12:58:37,894 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 12:58:37,894 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 12:58:37,894 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 12:58:37,894 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 12:58:37,894 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 12:58:37,894 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 12:58:37,894 PM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:58:37,894 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: restoring local TermInfo{term=1} 12:58:37,894 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 12:58:37,894 PM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 12:58:37,894 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 12:58:37,894 PM [test-pekko.actor.default-dispatcher-13] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 12:58:37,895 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#849,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-160]/waiting [ERROR] [08/28/2025 12:58:37.895] [test-pekko.actor.internal-dispatcher-4] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:150) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:226) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:272) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:233) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:245) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 12:58:37,895 PM [test-pekko.actor.default-dispatcher-13] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.MockRaftActor.getState()" because the return value of "java.util.concurrent.atomic.AtomicReference.get()" is null at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest.lambda$newRaftActorSnapshotCohort$1(FollowerTest.java:1290) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:192) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.MockRaftActor.takeSnapshot(MockRaftActor.java:43) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.takeSnapshot(Recovery.java:197) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.Recovery.saveFinalSnapshot(Recovery.java:164) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.PekkoRecovery.handleRecoveryMessage(PekkoRecovery.java:150) at org.opendaylight.controller.cluster.raft@12.0.0-SNAPSHOT/org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:226) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.library@2.13.16/scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.library@2.13.16/scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:655) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:784) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:272) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:233) at org.opendaylight.controller.repackaged.pekko@12.0.0-SNAPSHOT/org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:245) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 12:58:37,895 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 1.624 ms 12:58:37,896 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 6.550 μs 12:58:37,896 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-160] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 12:58:37,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 12:58:37,896 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 12:58:37,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 12:58:37,896 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 12:58:37,897 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 12:58:37,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 12:58:37,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 12:58:37,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 12:58:37,897 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 12:58:37,897 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 12:58:37,897 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 12:58:37,897 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands [WARN] [08/28/2025 12:58:37.897] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@183677b8 [INFO] [pekkoDeadLetter][08/28/2025 12:58:37.898] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 12:58:37,898 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 12:58:37,899 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 12:58:37,899 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 12:58:37,899 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 12:58:37,899 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 12:58:37,899 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 12:58:37,899 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 12:58:37,899 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:58:37,899 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: restoring local TermInfo{term=1} 12:58:37,899 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 12:58:37,899 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: taking snapshot to clear Pekko persistence to 1 12:58:37,899 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 12:58:37,899 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Taking snapshot on entry with index -1 12:58:37,899 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 12:58:37,899 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B0527D-359BDF01.tmp 12:58:37,902 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B0527D-359BDF01.v1 12:58:37,902 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 12:58:37,902 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B0527D-359BDF01.v1 12:58:37,902 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 12:58:37,902 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 12:58:37,902 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-28T12:58:37.899407617Z, file=/tmp/junit-15342216227143844056/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B0527D-359BDF01.v1, size=419, entryCompress=NONE, stateCompress=NONE} 12:58:37,903 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot completed in 3.672 ms, resetting timer for the next recovery snapshot 12:58:37,903 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and cannot restore from snapshot 12:58:37,903 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 12:58:37,903 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 12:58:37,903 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 12:58:37,903 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 12:58:37,903 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal recovery completedin 133.9 μs with journalIndex=1 12:58:37,903 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Journal recovery completed and cannot restore from snapshot 12:58:37,903 PM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: ignoring DeleteMessagesSuccess(1) 12:58:38,149 PM [test-pekko.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 12:58:42,896 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior506#-294291960] 12:58:42,907 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower507#1369804512] 12:58:42,907 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader508#-1253127795] 12:58:42,908 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 12:58:42,908 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#851,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-161]/waiting 12:58:42,908 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 5.010 s 12:58:42,908 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 15.50 μs 12:58:42,908 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-161] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 12:58:42,908 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 12:58:42,908 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 12:58:42,908 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 12:58:42,908 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 12:58:42,915 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 12:58:42,919 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:42,920 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 12:58:42,921 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]]} 12:58:42,921 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 12:58:42,921 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} 12:58:42,921 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 12:58:42,922 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior509#1089161206] 12:58:42,923 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower510#-1664904006] 12:58:42,923 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader511#651343792] 12:58:42,927 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 12:58:42,927 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:42,928 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 12:58:42,929 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 12:58:42,929 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 12:58:42,929 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 12:58:42,929 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 12:58:42,930 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior512#1958135489] 12:58:42,930 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower513#-1781397956] 12:58:42,930 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader514#302920431] 12:58:42,932 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 12:58:42,932 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:42,932 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 12:58:42,933 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]]} 12:58:42,933 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:58:42,933 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 12:58:42,933 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:58:42,933 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 12:58:42,933 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:58:42,933 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 12:58:42,933 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 12:58:42,933 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 12:58:42,933 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 12:58:42,933 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} 12:58:42,933 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 12:58:42,933 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 12:58:42,933 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:58:42,933 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:58:42,933 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 12:58:42,933 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 12:58:42,933 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:58:42,934 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:58:42,934 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 12:58:42,934 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 12:58:42,934 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior515#-1248251588] 12:58:42,934 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower516#-1737272192] 12:58:42,934 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader517#-1099122232] 12:58:42,936 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 12:58:42,936 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:42,937 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 12:58:42,937 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 12:58:42,937 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior518#176780346] 12:58:42,938 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower519#-1950243299] 12:58:42,938 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader520#-626106976] 12:58:42,940 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 12:58:42,940 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:42,940 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:58:42,940 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:58:42,940 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:58:42,941 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:58:42,941 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 12:58:42,941 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]]} 12:58:42,941 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 12:58:42,941 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 12:58:42,941 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:58:42,941 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 12:58:42,941 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 12:58:42,941 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 12:58:42,941 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} 12:58:42,942 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 12:58:42,942 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:58:42,942 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:58:42,942 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:58:42,942 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior521#994510983] 12:58:42,943 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower522#-2064725977] 12:58:42,943 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader523#-236816127] 12:58:42,945 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 12:58:42,945 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:42,945 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 12:58:42,945 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]]} 12:58:42,945 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 12:58:42,946 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} 12:58:42,946 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 12:58:42,946 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 12:58:42,946 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]]} 12:58:42,946 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 12:58:42,946 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} 12:58:42,947 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 12:58:42,947 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 12:58:42,947 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]]} 12:58:42,947 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 12:58:42,947 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} 12:58:42,947 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 12:58:42,948 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior524#1554141186] 12:58:42,948 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower525#-1828323605] 12:58:42,948 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader526#1963524711] 12:58:42,950 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 12:58:42,950 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:43,150 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:58:43,150 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.139:17355, Removed) 12:58:43,151 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 12:58:43,151 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 12:58:43,151 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 12:58:43,151 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:58:43,151 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior527#1564215583] 12:58:43,162 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower528#1669120844] 12:58:43,162 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader529#1374037090] 12:58:43,166 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:43,166 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 12:58:43,368 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:58:43,368 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior530#406314407] 12:58:43,379 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower531#-67222179] 12:58:43,379 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader532#-1456762777] 12:58:43,383 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 12:58:43,383 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:43,384 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 12:58:43,384 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 12:58:43,385 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior533#177195933] 12:58:43,396 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower534#-1346667438] 12:58:43,396 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader535#-136082358] 12:58:43,399 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 12:58:43,399 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:43,400 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]]} 12:58:43,400 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:58:43,400 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 12:58:43,400 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 12:58:43,400 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 12:58:43,400 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 12:58:43,400 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 12:58:43,401 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} 12:58:43,401 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 12:58:43,401 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 12:58:43,401 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 12:58:43,401 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 12:58:43,401 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 12:58:43,401 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 12:58:43,401 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 12:58:43,401 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 12:58:43,401 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 12:58:43,401 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 12:58:43,402 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 12:58:43,402 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 12:58:43,403 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior536#136743179] 12:58:43,413 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower537#1165769932] 12:58:43,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader538#-170069639] 12:58:43,417 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 12:58:43,417 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:43,418 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 12:58:43,418 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 12:58:43,418 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:58:43,418 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 12:58:43,420 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]]} 12:58:43,420 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} 12:58:43,421 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior539#1637504979] 12:58:43,431 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower540#1446813707] 12:58:43,432 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader541#-214373520] 12:58:43,435 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 12:58:43,435 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:43,436 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 12:58:43,436 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]]} 12:58:43,437 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 12:58:43,437 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 12:58:43,437 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 12:58:43,438 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior542#1746620385] 12:58:43,448 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower543#-638618729] 12:58:43,448 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader544#991145310] 12:58:43,451 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [08/28/2025 12:58:43.452] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@7d66cf6e [INFO] [pekkoDeadLetter][08/28/2025 12:58:43.452] [test-pekko.actor.default-dispatcher-13] [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. [6] 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'. 12:58:43,452 PM [test-pekko.actor.default-dispatcher-16] [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. [6] 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'. 12:58:43,453 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 12:58:43,453 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 12:58:43,453 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 12:58:43,453 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 12:58:43,454 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 12:58:43,454 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 12:58:43,454 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 12:58:43,454 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 12:58:43,455 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 12:58:43,456 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 12:58:43,456 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 12:58:43,456 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 12:58:43,456 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:58:43,456 PM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:58:43,460 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:58:43,460 PM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 12:58:43,460 PM [test-pekko.actor.default-dispatcher-16] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: taking snapshot to clear Pekko persistence to 1 12:58:43,460 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: no applied entries in recovery log, re-snapshotting EntryInfo[index=-1, term=-1] 12:58:43,460 PM [test-pekko.actor.default-dispatcher-16] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Taking snapshot on entry with index -1 12:58:43,460 PM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 12:58:43,460 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-1B7437EB.tmp 12:58:43,462 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-1B7437EB.v1 12:58:43,462 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-1B7437EB.v1 12:58:43,462 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:58:43,462 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 12:58:43,462 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 12:58:43,462 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-28T12:58:43.460601323Z, file=/tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-1B7437EB.v1, size=419, entryCompress=NONE, stateCompress=NONE} 12:58:43,462 PM [test-pekko.actor.default-dispatcher-16] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot completed in 2.306 ms, resetting timer for the next recovery snapshot 12:58:43,462 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 12:58:43,462 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 12:58:43,462 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 12:58:43,462 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 12:58:43,463 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 12:58:43,463 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 125.2 μs with journalIndex=1 12:58:43,463 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 12:58:43,463 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: ignoring DeleteMessagesSuccess(1) 12:58:43,564 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-1B7437EB.v1 12:58:43,565 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:58:43,565 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 12:58:43,565 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 12:58:43,565 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-28T12:58:43.460601323Z, file=/tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-1B7437EB.v1, size=419, entryCompress=NONE, stateCompress=NONE} as the latest file 12:58:43,565 PM [test-pekko.actor.default-dispatcher-16] [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]]} 12:58:43,565 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 12:58:43,566 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 111.6 ms 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [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} 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 12:58:43,566 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 12:58:43,619 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 12:58:43,619 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 12:58:43,619 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 53.59 ms 12:58:43,619 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 12:58:43,619 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 6.990 μs 12:58:43,619 PM [test-pekko.actor.default-dispatcher-16] [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/0x00000007c09013e8@301c01c9} 12:58:43,619 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 12:58:43,643 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 12:58:43,643 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 12:58:43,643 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 12:58:43,643 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 23.46 ms 12:58:43,643 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 12:58:43,643 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 12:58:43,643 PM [test-pekko.actor.default-dispatcher-16] [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/0x00000007c09013e8@301c01c9} 12:58:43,643 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 12:58:43,643 PM [test-pekko.actor.default-dispatcher-16] [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] 12:58:43,643 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 12:58:43,643 PM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 12:58:43,643 PM [test-pekko.actor.default-dispatcher-16] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 12:58:43,643 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 12:58:43,643 PM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 12:58:43,643 PM [test-pekko.actor.default-dispatcher-16] [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/0x00000007c09013e8@301c01c9} 12:58:43,643 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d906203] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-265F0497.tmp 12:58:43,643 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 77.24 ms [WARN] [08/28/2025 12:58:43.644] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][08/28/2025 12:58:43.644] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [7] 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'. 12:58:43,644 PM [test-pekko.actor.default-dispatcher-13] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [7] 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'. 12:58:43,669 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d906203] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-265F0497.v1 12:58:43,669 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d906203] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-265F0497.v1 12:58:43,670 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d906203] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-1B7437EB.v1 12:58:43,670 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d906203] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:58:43,670 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d906203] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 12:58:43,670 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d906203] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 12:58:43,670 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d906203] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: deleted snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=-1, term=-1], timestamp=2025-08-28T12:58:43.460601323Z, file=/tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-1B7437EB.v1, size=419, entryCompress=NONE, stateCompress=NONE} 12:58:43,670 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d906203] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-28T12:58:43.643761303Z, file=/tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-265F0497.v1, size=573, entryCompress=NONE, stateCompress=NONE} 12:58:43,670 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d906203] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 12:58:43,670 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 12:58:43,670 PM [test-pekko.actor.default-dispatcher-16] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-08-28T12:58:43.643761303Z 12:58:43,670 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 12:58:43,670 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 12:58:43,670 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 27.29 ms 12:58:43,670 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 12:58:43,671 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 12:58:43,671 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 12:58:43,671 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 263.0 μs 12:58:43,671 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 12:58:43,671 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 12:58:43,819 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-265F0497.v1 12:58:43,819 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:58:43,819 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 12:58:43,819 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 12:58:43,819 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-28T12:58:43.643761303Z, file=/tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-265F0497.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 12:58:43,821 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 12:58:43,829 PM [test-pekko.actor.default-dispatcher-16] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 12:58:43,832 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#852,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162]/waiting 12:58:43,832 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 161.4 ms 12:58:43,832 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 21.71 μs 12:58:43,832 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-162] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 12:58:43,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 12:58:43,833 PM [test-pekko.actor.default-dispatcher-16] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 12:58:43,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 12:58:43,833 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [08/28/2025 12:58:43.834] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@5ac9625 [INFO] [pekkoDeadLetter][08/28/2025 12:58:43.834] [test-pekko.actor.default-dispatcher-13] [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. [8] 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'. 12:58:43,834 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. [8] 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'. 12:58:43,834 PM [test-pekko.actor.default-dispatcher-16] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 12:58:43,834 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 12:58:43,834 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 12:58:43,835 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 12:58:43,836 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 12:58:43,836 PM [test-pekko.actor.default-dispatcher-16] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 12:58:43,836 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 12:58:43,836 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 12:58:43,837 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:58:43,837 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-265F0497.v1 12:58:43,837 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 12:58:43,837 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 12:58:43,837 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 12:58:43,837 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-08-28T12:58:43.643761303Z, file=/tmp/junit-14979885725154219540/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B05283-265F0497.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 12:58:43,838 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 12:58:43,838 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-08-28T12:58:43.643761303Z 12:58:43,838 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:58:43,839 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 395.7 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 12:58:43,839 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 510.4 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 12:58:43,839 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 12:58:43,839 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 12:58:43,839 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and cannot restore from snapshot 12:58:43,839 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 12:58:43,839 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 12:58:43,839 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 12:58:43,839 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 12:58:43,839 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal recovery completedin 135.3 μs with journalIndex=4 12:58:43,839 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Journal recovery completed and cannot restore from snapshot 12:58:43,934 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior545#-1361190128] 12:58:43,945 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower546#2075353523] 12:58:43,945 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader547#-2018881243] 12:58:43,945 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 12:58:43,946 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#857,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-163]/waiting 12:58:43,946 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 110.0 ms 12:58:43,946 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 11.87 μs 12:58:43,946 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-163] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 12:58:43,946 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 12:58:43,946 PM [test-pekko.actor.default-dispatcher-12] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 12:58:43,946 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 12:58:43,946 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 12:58:43,950 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 12:58:43,950 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:44,251 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 12:58:44,382 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:58:44,382 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 131 < election timeout PT0.4S 12:58:44,633 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 12:58:44,833 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 12:58:44,834 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior548#528610481] 12:58:44,845 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower549#1949539859] 12:58:44,846 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader550#244535189] 12:58:44,851 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 12:58:44,852 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:58:44,852 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 12:58:44,852 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 12:58:44,852 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 12:58:44,852 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:58:44,852 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior551#622435191] 12:58:44,863 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower552#903601746] 12:58:44,863 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader553#-1964542179] [INFO] [08/28/2025 12:58:44.865] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 12:58:44,865 PM [test-pekko.actor.default-dispatcher-16] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 12:58:44,866 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.139:17355] - Exiting completed 12:58:44,866 PM [test-pekko.actor.default-dispatcher-12] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.139:17355] - Shutting down... 12:58:44,866 PM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1754083739] was unhandled. [9] 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'. 12:58:44,866 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.139:17355] - Successfully shut down [WARN] [08/28/2025 12:58:44.866] [test-pekko.actor.default-dispatcher-16] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.139:17355) [INFO] [08/28/2025 12:58:44.866] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.139:17355] - Exiting completed [INFO] [08/28/2025 12:58:44.866] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.139:17355] - Shutting down... [INFO] [pekkoDeadLetter][08/28/2025 12:58:44.866] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-1754083739] was unhandled. [9] 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] [08/28/2025 12:58:44.866] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.139:17355] - Successfully shut down [INFO] [08/28/2025 12:58:44.868] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.139:17355/system/remoting-terminator] Shutting down remote daemon. 12:58:44,868 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [08/28/2025 12:58:44.868] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.139:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 12:58:44,868 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/28/2025 12:58:44.871] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.139:17355/system/remoting-terminator] Remoting shut down. 12:58:44,871 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [08/28/2025 12:58:44.871] [test-pekko.actor.internal-dispatcher-5] [EventStream] shutting down: StandardOutLogger