[DEBUG] [07/03/2025 19:36:23.151] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 07:36:23,153 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/03/2025 19:36:23.153] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/03/2025 19:36:23.153] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [07/03/2025 19:36:23.165] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.56:17355] with UID [-1342899922841186953] [INFO] [07/03/2025 19:36:23.165] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.56:17355] - Starting up, Pekko version [1.0.3] ... 07:36:23,166 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.56:17355] with UID [-1342899922841186953] 07:36:23,166 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.56:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/03/2025 19:36:23.168] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.56:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/03/2025 19:36:23.168] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.56:17355] - Started up successfully 07:36:23,168 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.56:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 07:36:23,168 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.56:17355] - Started up successfully [INFO] [07/03/2025 19:36:23.169] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.56:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/03/2025 19:36:23.169] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.56:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:36:23,170 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.56:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 07:36:23,170 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.56:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:36:23,178 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 07:36:23,179 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,280 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:36:23,280 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:36:23,281 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:36:23,282 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:36:23,283 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:36:23,283 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 07:36:23,283 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:36:23,283 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:36:23,287 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 07:36:23,288 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-1637618872] 07:36:23,290 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#69696373] 07:36:23,290 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#-1438840408] 07:36:23,293 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 07:36:23,293 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,295 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]]} 07:36:23,296 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 07:36:23,296 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} 07:36:23,297 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:36:23,297 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-1840363793] 07:36:23,298 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#-1215152] 07:36:23,299 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#1832576724] 07:36:23,308 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 07:36:23,308 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,310 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:36:23,310 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:36:23,310 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:36:23,310 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:36:23,312 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:36:23,312 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:36:23,312 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:36:23,314 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:36:23,315 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 07:36:23,316 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]]} 07:36:23,317 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 07:36:23,318 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} 07:36:23,318 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 07:36:23,318 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#1646521055] 07:36:23,320 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#-1794103345] 07:36:23,321 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-1930109964] 07:36:23,324 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,324 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:36:23,325 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#1065240139] 07:36:23,326 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#840840053] 07:36:23,326 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#-1558403951] 07:36:23,328 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:36:23,329 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,330 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 07:36:23,330 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:36:23,331 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:36:23,331 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:36:23,331 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:36:23,331 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:36:23,331 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:36:23,332 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} 07:36:23,332 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:36:23,332 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:36:23,334 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:36:23,335 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-333624070] 07:36:23,336 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#1941995908] 07:36:23,336 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-1245863376] 07:36:23,337 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 07:36:23,337 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,338 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]]} 07:36:23,338 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:36:23,338 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:36:23,338 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:36:23,338 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:36:23,338 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 07:36:23,338 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} 07:36:23,339 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:36:23,339 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:36:23,339 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:36:23,339 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:36:23,339 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:36:23,339 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:36:23,339 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]]} 07:36:23,340 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:36:23,340 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:36:23,340 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:36:23,340 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 07:36:23,340 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:36:23,340 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:36:23,340 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} 07:36:23,340 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 07:36:23,340 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:36:23,340 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:36:23,340 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:36:23,340 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#-806604240] 07:36:23,341 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#492894366] 07:36:23,341 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-1485957603] 07:36:23,342 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 07:36:23,342 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,343 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 07:36:23,343 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 07:36:23,343 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} 07:36:23,344 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 07:36:23,344 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#1080115743] 07:36:23,344 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-1733760981] 07:36:23,344 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#1612731851] 07:36:23,346 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,348 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-305506206] 07:36:23,349 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#1131589919] 07:36:23,349 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#1493854500] 07:36:23,350 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 07:36:23,350 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,350 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:36:23,351 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 07:36:23,351 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]]} 07:36:23,351 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:36:23,351 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:36:23,351 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:36:23,351 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:36:23,351 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:36:23,351 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} 07:36:23,352 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:36:23,352 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 07:36:23,352 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 07:36:23,352 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 07:36:23,352 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 07:36:23,352 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#-24314841] 07:36:23,363 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-636546417] 07:36:23,364 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#1231640222] 07:36:23,367 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [07/03/2025 19:36:23.369] [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@568c6bbb [INFO] [pekkoDeadLetter][07/03/2025 19:36:23.369] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:36:23,370 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:36:23,371 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 07:36:23,371 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:36:23,371 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:36:23,379 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6833255463478920421/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 07:36:23,379 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:36:23,379 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:36:23,380 PM [test-pekko.actor.default-dispatcher-12] [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 07:36:23,384 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:36:23,384 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:36:23,384 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 07:36:23,386 PM [test-pekko.actor.default-dispatcher-12] [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]]} 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [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} 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 07:36:23,387 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 07:36:23,388 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:36:23,388 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:36:23,388 PM [test-pekko.actor.default-dispatcher-12] [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] 07:36:23,388 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 07:36:23,388 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 07:36:23,388 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 07:36:23,388 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 07:36:23,388 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 07:36:23,389 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d369556] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6833255463478920421/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006866DBB7-172B2463.tmp [WARN] [07/03/2025 19:36:23.389] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/03/2025 19:36:23.389] [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'. 07:36:23,389 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'. 07:36:23,394 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d369556] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6833255463478920421/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006866DBB7-172B2463.v1 07:36:23,394 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d369556] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6833255463478920421/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006866DBB7-172B2463.v1 07:36:23,394 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d369556] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6833255463478920421/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:36:23,394 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d369556] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-03T19:36:23.388703331Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6833255463478920421/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006866DBB7-172B2463.v1, size=555, entryCompress=NONE, stateCompress=NONE} 07:36:23,394 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d369556] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:36:23,394 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:36:23,394 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-07-03T19:36:23.388703331Z 07:36:23,394 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 07:36:23,394 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 07:36:23,395 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 07:36:23,537 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6833255463478920421/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006866DBB7-172B2463.v1 07:36:23,538 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6833255463478920421/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:36:23,538 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-03T19:36:23.388703331Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6833255463478920421/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006866DBB7-172B2463.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 07:36:23,539 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-889389507] 07:36:23,550 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#2031636729] 07:36:23,550 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-193135995] 07:36:23,550 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 07:36:23,551 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:36:23,551 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:36:23,554 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,555 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#-555927907] 07:36:23,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#1726751840] 07:36:23,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-1061476506] 07:36:23,568 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 07:36:23,568 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,570 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 07:36:23,571 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:36:23,571 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#-1376080189] 07:36:23,582 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#-1085392013] 07:36:23,582 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#1204139358] 07:36:23,584 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 07:36:23,584 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,584 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 07:36:23,585 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]]} 07:36:23,585 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:36:23,585 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:36:23,585 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:36:23,585 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:36:23,585 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:36:23,585 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} 07:36:23,585 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:36:23,585 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:36:23,586 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:36:23,586 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-35496487] 07:36:23,597 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#709803528] 07:36:23,597 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#-1619150122] 07:36:23,599 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 07:36:23,599 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,600 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 07:36:23,600 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]]} 07:36:23,601 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 07:36:23,601 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} 07:36:23,601 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:36:23,601 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 07:36:23,602 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]]} 07:36:23,602 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 07:36:23,603 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} 07:36:23,603 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:36:23,603 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-477937267] 07:36:23,614 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-1841470606] 07:36:23,614 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#-1799889987] 07:36:23,617 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,617 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#805553859] 07:36:23,628 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#440117750] 07:36:23,628 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#1799543980] 07:36:23,631 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 07:36:23,631 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,632 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 07:36:23,633 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]]} 07:36:23,633 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 07:36:23,634 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} 07:36:23,634 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:36:23,634 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:36:23,635 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]]} 07:36:23,636 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 07:36:23,636 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} 07:36:23,636 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:36:23,637 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]]} 07:36:23,637 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 07:36:23,637 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} 07:36:23,637 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:36:23,638 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#408985256] 07:36:23,638 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#1620687377] 07:36:23,638 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#419283538] 07:36:23,640 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 07:36:23,640 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,640 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]]} 07:36:23,641 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:36:23,641 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 07:36:23,641 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:36:23,641 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:36:23,641 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:36:23,641 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} 07:36:23,641 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:36:23,641 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:36:23,641 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 07:36:23,641 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#627111811] 07:36:23,642 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#-966067369] 07:36:23,642 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#2134034298] 07:36:23,643 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 07:36:23,643 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,644 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:36:23,644 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 07:36:23,644 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 07:36:23,645 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 07:36:23,646 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-741719822] 07:36:23,646 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#-813310936] 07:36:23,646 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-2059492469] 07:36:23,649 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 07:36:23,649 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,649 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 07:36:23,649 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]]} 07:36:23,649 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:36:23,650 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:36:23,650 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:36:23,650 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:36:23,650 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:36:23,650 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} 07:36:23,650 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:36:23,650 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:36:23,650 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:36:23,650 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#-1651478688] 07:36:23,651 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#1609649751] 07:36:23,651 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#-713392513] 07:36:23,652 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:36:23,652 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,653 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 07:36:23,653 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]]} 07:36:23,653 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 07:36:23,653 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} 07:36:23,654 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:36:23,654 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#-444862910] 07:36:23,654 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#1870308086] 07:36:23,654 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-1617753234] 07:36:23,656 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [07/03/2025 19:36:23.656] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@141ef87e [INFO] [pekkoDeadLetter][07/03/2025 19:36:23.656] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:36:23,657 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. [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'. 07:36:23,657 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 07:36:23,657 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:36:23,657 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:36:23,658 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1407021701224128612/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 07:36:23,658 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 07:36:23,658 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:36:23,658 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 07:36:23,729 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:36:23,729 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 07:36:23,729 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed and can restore from snapshot 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 07:36:23,731 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 07:36:23,732 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 07:36:23,733 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:36:23,733 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:36:23,733 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:36:23,733 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 07:36:23,733 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 07:36:23,733 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 07:36:23,733 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 07:36:23,733 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d959779] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1407021701224128612/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006866DBB7-2BB5903F.tmp 07:36:23,734 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 07:36:23,734 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 [WARN] [07/03/2025 19:36:23.734] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/03/2025 19:36:23.734] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:36:23,734 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:36:23,737 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d959779] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1407021701224128612/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006866DBB7-2BB5903F.v1 07:36:23,738 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d959779] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1407021701224128612/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006866DBB7-2BB5903F.v1 07:36:23,738 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d959779] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1407021701224128612/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:36:23,738 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d959779] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-03T19:36:23.733319231Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1407021701224128612/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006866DBB7-2BB5903F.v1, size=701, entryCompress=NONE, stateCompress=NONE} 07:36:23,738 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d959779] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:36:23,738 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:36:23,738 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-07-03T19:36:23.733319231Z 07:36:23,738 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 07:36:23,738 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 07:36:23,738 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 07:36:23,883 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1407021701224128612/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006866DBB7-2BB5903F.v1 07:36:23,883 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1407021701224128612/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:36:23,883 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-03T19:36:23.733319231Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1407021701224128612/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006866DBB7-2BB5903F.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 07:36:23,886 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#-849245952] 07:36:23,897 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-325845931] 07:36:23,897 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#-227023942] 07:36:23,897 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 07:36:23,897 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:36:23,897 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:36:23,900 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 07:36:23,900 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,901 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 07:36:23,901 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]]} 07:36:23,902 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 07:36:23,902 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} 07:36:23,903 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 07:36:23,903 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#1648176034] 07:36:23,914 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#-1262339190] 07:36:23,914 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#-670765877] 07:36:23,916 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 07:36:23,916 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,917 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 07:36:23,918 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 07:36:23,918 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 07:36:23,918 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 07:36:23,918 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 07:36:23,919 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#-1045930452] 07:36:23,929 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#14142396] 07:36:23,929 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#2068284434] 07:36:23,931 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 07:36:23,931 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,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 07:36:23,932 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]]} 07:36:23,933 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:36:23,933 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:36:23,933 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:36:23,933 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 07:36:23,933 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:36:23,933 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 07:36:23,933 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:36:23,933 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 07:36:23,933 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 07:36:23,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} 07:36:23,933 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:36:23,933 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 07:36:23,934 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:36:23,934 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:36:23,934 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:36:23,934 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:36:23,934 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:36:23,934 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:36:23,934 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:36:23,934 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:36:23,935 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#269202269] 07:36:23,945 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#-169720447] 07:36:23,946 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#-1874342337] 07:36:23,947 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 07:36:23,947 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,948 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 07:36:23,948 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 07:36:23,949 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#-827459102] 07:36:23,960 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-725928914] 07:36:23,960 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#-1909311406] 07:36:23,961 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 07:36:23,961 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,962 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:36:23,962 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:36:23,962 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:36:23,962 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:36:23,962 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 07:36:23,963 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]]} 07:36:23,963 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 07:36:23,963 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:36:23,963 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:36:23,963 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 07:36:23,963 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:36:23,963 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:36:23,963 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} 07:36:23,963 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 07:36:23,963 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:36:23,963 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:36:23,963 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:36:23,964 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#802093941] 07:36:23,975 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#-1405795012] 07:36:23,975 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#-1939411793] 07:36:23,977 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 07:36:23,977 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:23,977 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 07:36:23,978 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]]} 07:36:23,978 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 07:36:23,979 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} 07:36:23,979 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:36:23,979 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:36:23,980 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]]} 07:36:23,980 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 07:36:23,981 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} 07:36:23,981 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:36:23,981 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:36:23,982 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]]} 07:36:23,982 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 07:36:23,982 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} 07:36:23,983 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:36:23,983 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#-406331120] 07:36:23,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#1712759248] 07:36:23,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#1468377234] 07:36:23,997 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 07:36:23,997 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:24,197 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:36:24,198 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.56:17355, Removed) 07:36:24,198 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 07:36:24,198 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:36:24,198 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:36:24,198 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:36:24,198 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#1788861201] 07:36:24,209 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#-371968151] 07:36:24,209 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#2022404995] 07:36:24,212 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:24,213 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 07:36:24,414 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:36:24,414 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#-1516738749] 07:36:24,425 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#802401067] 07:36:24,425 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#933658535] 07:36:24,427 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 07:36:24,428 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:24,429 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 07:36:24,429 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 07:36:24,430 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#810654201] 07:36:24,440 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#211301246] 07:36:24,440 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#2130467593] 07:36:24,443 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 07:36:24,443 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:24,444 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]]} 07:36:24,444 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:36:24,444 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 07:36:24,444 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:36:24,444 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:36:24,444 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 07:36:24,444 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:36:24,445 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} 07:36:24,445 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 07:36:24,445 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:36:24,445 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:36:24,445 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:36:24,445 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:36:24,445 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:36:24,445 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:36:24,445 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:36:24,445 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:36:24,445 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:36:24,445 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 07:36:24,445 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 07:36:24,446 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#-603188901] 07:36:24,457 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-462728970] 07:36:24,458 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#1591558033] 07:36:24,459 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 07:36:24,459 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:24,460 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:36:24,460 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:36:24,460 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:36:24,460 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:36:24,461 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]]} 07:36:24,461 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} 07:36:24,462 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#-1385582121] 07:36:24,472 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#1636338535] 07:36:24,472 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#-2038971627] 07:36:24,474 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 07:36:24,474 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:24,475 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 07:36:24,475 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]]} 07:36:24,475 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:36:24,475 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:36:24,476 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:36:24,476 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#-1353171600] 07:36:24,486 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#1720815250] 07:36:24,487 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#-825808700] 07:36:24,489 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [07/03/2025 19:36:24.490] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@288fb9d9 [INFO] [pekkoDeadLetter][07/03/2025 19:36:24.490] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:36:24,490 PM [test-pekko.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:36:24,491 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:36:24,491 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:36:24,491 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:36:24,492 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15480753065465124812/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 07:36:24,492 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:36:24,493 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:36:24,493 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 07:36:24,496 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:36:24,496 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:36:24,496 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 07:36:24,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 07:36:24,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 07:36:24,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:36:24,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 07:36:24,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:36:24,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 07:36:24,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:36:24,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 07:36:24,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:36:24,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 07:36:24,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 07:36:24,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 07:36:24,498 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:36:24,498 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:36:24,498 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:36:24,498 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 07:36:24,498 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 07:36:24,498 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 07:36:24,498 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:36:24,498 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d622845] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15480753065465124812/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006866DBB8-1DB54024.tmp 07:36:24,499 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 07:36:24,499 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 [WARN] [07/03/2025 19:36:24.499] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 07:36:24,499 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][07/03/2025 19:36:24.499] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:36:24,501 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d622845] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15480753065465124812/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006866DBB8-1DB54024.v1 07:36:24,501 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d622845] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15480753065465124812/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006866DBB8-1DB54024.v1 07:36:24,501 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d622845] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15480753065465124812/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:36:24,501 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d622845] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-03T19:36:24.498417700Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15480753065465124812/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006866DBB8-1DB54024.v1, size=573, entryCompress=NONE, stateCompress=NONE} 07:36:24,501 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d622845] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:36:24,501 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:36:24,501 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-07-03T19:36:24.498417700Z 07:36:24,501 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 07:36:24,502 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 07:36:24,502 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 07:36:24,648 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15480753065465124812/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006866DBB8-1DB54024.v1 07:36:24,649 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15480753065465124812/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:36:24,649 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-03T19:36:24.498417700Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15480753065465124812/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006866DBB8-1DB54024.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:36:24,651 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:36:24,661 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:36:24,662 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/03/2025 19:36:24.663] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@d861f40 [INFO] [pekkoDeadLetter][07/03/2025 19:36:24.663] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:36:24,663 PM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:36:24,663 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:36:24,663 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:36:24,663 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:36:24,665 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:36:24,665 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15480753065465124812/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006866DBB8-1DB54024.v1 07:36:24,665 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15480753065465124812/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:36:24,665 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-03T19:36:24.498417700Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15480753065465124812/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006866DBB8-1DB54024.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:36:24,665 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:36:24,666 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-07-03T19:36:24.498417700Z 07:36:24,666 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:36:24,666 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 150.4 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 07:36:24,666 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 07:36:24,666 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 07:36:24,666 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 404.6 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 07:36:24,666 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 07:36:24,666 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:36:24,666 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed and can restore from snapshot 07:36:24,763 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#1169273235] 07:36:24,764 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#1371632800] 07:36:24,764 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-1350308180] 07:36:24,764 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:36:24,764 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:36:24,764 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:36:24,775 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 07:36:24,775 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:25,76 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:36:25,207 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:36:25,207 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 07:36:25,457 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 07:36:25,657 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 07:36:25,658 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#-758576811] 07:36:25,659 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#1115994311] 07:36:25,659 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#1436601164] 07:36:25,662 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:25,663 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:36:25,663 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 07:36:25,663 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:36:25,663 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:36:25,664 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:36:25,664 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-91551704] 07:36:25,665 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-889783578] 07:36:25,665 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#1323258621] 07:36:25,667 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:25,668 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 07:36:25,668 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 07:36:25,668 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#-1726816473] 07:36:25,668 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#1777655698] 07:36:25,668 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-2058074792] 07:36:25,670 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:25,670 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]]} 07:36:25,670 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:36:25,670 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:36:25,670 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:36:25,670 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:36:25,671 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 07:36:25,671 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} 07:36:25,671 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 07:36:25,671 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 07:36:25,671 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:36:25,671 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:36:25,671 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 07:36:25,671 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-1093038780] 07:36:25,672 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#-1111296172] 07:36:25,672 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-1116463525] 07:36:25,673 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:25,674 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 07:36:25,674 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 07:36:25,674 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#413555114] 07:36:25,675 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#1764352741] 07:36:25,675 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#200934773] 07:36:25,676 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:25,676 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 07:36:25,677 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 07:36:25,677 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} 07:36:25,677 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 07:36:25,677 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 07:36:25,678 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 07:36:25,678 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 07:36:25,678 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. 07:36:25,678 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 07:36:25,679 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 07:36:25,679 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 07:36:25,679 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:36:25,680 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#-957958154] 07:36:25,680 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#515490780] 07:36:25,680 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#-798421589] 07:36:25,682 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:25,682 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:36:25,682 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:36:25,682 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:25,682 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 07:36:25,682 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:36:25,682 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:36:25,682 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:36:25,682 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:36:25,683 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#774496065] 07:36:25,683 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#1465046863] 07:36:25,683 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-903311210] 07:36:25,684 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:25,685 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 07:36:25,685 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#-265067387] 07:36:25,686 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-1407143196] 07:36:25,686 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#-632176901] 07:36:25,687 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:36:25,688 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 07:36:25,688 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:36:25,688 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#804966359] 07:36:25,688 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#1708285804] 07:36:25,688 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#302966097] [INFO] [07/03/2025 19:36:25.689] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 07:36:25,689 PM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/03/2025 19:36:25.689] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.56:17355) [INFO] [pekkoDeadLetter][07/03/2025 19:36:25.689] [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#-571421656] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:36:25,689 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#-571421656] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [07/03/2025 19:36:25.690] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.56:17355] - Exiting completed [INFO] [07/03/2025 19:36:25.690] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.56:17355] - Shutting down... [INFO] [07/03/2025 19:36:25.690] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.56:17355] - Successfully shut down 07:36:25,690 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.56:17355] - Exiting completed 07:36:25,690 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.56:17355] - Shutting down... 07:36:25,690 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.56:17355] - Successfully shut down [INFO] [07/03/2025 19:36:25.691] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.56:17355/system/remoting-terminator] Shutting down remote daemon. 07:36:25,691 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [07/03/2025 19:36:25.691] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.56:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 07:36:25,691 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 07:36:25,692 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [07/03/2025 19:36:25.692] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.56:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [07/03/2025 19:36:25.692] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger