[DEBUG] [07/01/2025 09:55:56.240] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 09:55:56,240 AM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/01/2025 09:55:56.240] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/01/2025 09:55:56.241] [main] [EventStream(pekko://test)] Default Loggers started 09:55:56,254 AM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.199:17355] with UID [-7977261645530977610] [INFO] [07/01/2025 09:55:56.254] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.199:17355] with UID [-7977261645530977610] 09:55:56,255 AM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.199:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/01/2025 09:55:56.255] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.199:17355] - Starting up, Pekko version [1.0.3] ... 09:55:56,257 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.199:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 09:55:56,257 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.199:17355] - Started up successfully 09:55:56,258 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.199:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 09:55:56,258 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.199:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [07/01/2025 09:55:56.257] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.199:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/01/2025 09:55:56.257] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.199:17355] - Started up successfully [INFO] [07/01/2025 09:55:56.258] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.199:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/01/2025 09:55:56.258] [test-pekko.actor.internal-dispatcher-5] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.199:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 09:55:56,268 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 09:55:56,268 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,348 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:55:56,349 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:55:56,349 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:55:56,349 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:55:56,350 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:55:56,350 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 09:55:56,350 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:55:56,350 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:55:56,353 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 09:55:56,354 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#-1901323573] 09:55:56,365 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#1018632065] 09:55:56,365 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#1119572074] 09:55:56,368 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 09:55:56,368 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,370 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 09:55:56,371 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 09:55:56,371 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,372 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:55:56,372 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#1099807037] 09:55:56,383 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-1155410689] 09:55:56,383 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#-1466053093] 09:55:56,385 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 09:55:56,386 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,386 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:55:56,386 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:55:56,386 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:55:56,387 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:55:56,387 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 09:55:56,388 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 09:55:56,388 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 09:55:56,388 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:55:56,389 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:55:56,390 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:55:56,390 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:55:56,391 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,391 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 09:55:56,392 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#992113815] 09:55:56,402 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-1228057266] 09:55:56,402 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#673435642] 09:55:56,405 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,406 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:55:56,407 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#620035294] 09:55:56,418 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#394316213] 09:55:56,418 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-218464003] 09:55:56,420 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:55:56,420 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,421 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:55:56,422 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:55:56,422 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:55:56,422 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:55:56,423 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:55:56,423 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:55:56,423 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:55:56,423 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,423 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:55:56,424 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:55:56,425 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:55:56,427 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-1719400333] 09:55:56,437 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#1722303324] 09:55:56,438 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#1772584287] 09:55:56,440 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 09:55:56,440 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,441 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 09:55:56,442 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:55:56,442 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:55:56,442 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:55:56,442 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:55:56,442 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 09:55:56,442 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,442 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:55:56,443 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:55:56,443 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:55:56,443 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:55:56,443 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:55:56,443 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:55:56,444 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 09:55:56,445 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:55:56,445 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 09:55:56,445 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 09:55:56,445 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 09:55:56,445 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:55:56,445 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:55:56,445 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,445 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 09:55:56,445 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:55:56,446 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:55:56,446 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:55:56,446 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#681713139] 09:55:56,457 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-74951880] 09:55:56,457 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-862221804] 09:55:56,459 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 09:55:56,460 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,460 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 09:55:56,461 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:55:56,462 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,462 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 09:55:56,462 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-843100449] 09:55:56,473 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#-12586606] 09:55:56,473 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#1994665788] 09:55:56,476 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,479 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#1402706143] 09:55:56,490 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#386309917] 09:55:56,490 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#1485008176] 09:55:56,494 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 09:55:56,494 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,494 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:55:56,495 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:55:56,496 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:55:56,496 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:55:56,496 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:55:56,496 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:55:56,496 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:55:56,496 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:55:56,496 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,497 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:55:56,497 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 09:55:56,497 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 09:55:56,497 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 09:55:56,497 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 09:55:56,498 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#1651108703] 09:55:56,508 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#313670434] 09:55:56,509 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#-364096146] 09:55:56,511 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [07/01/2025 09:55:56.514] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@76c04e71 [INFO] [pekkoDeadLetter][07/01/2025 09:55:56.515] [test-pekko.actor.default-dispatcher-13] [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'. 09:55:56,515 AM [test-pekko.actor.default-dispatcher-7] [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'. 09:55:56,515 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 09:55:56,515 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:55:56,515 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 09:55:56,526 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15463534108364865093/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 09:55:56,526 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 09:55:56,526 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:55:56,527 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 09:55:56,530 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:55:56,530 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:55:56,530 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6c554cb4 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [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]]} 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [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} 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 09:55:56,531 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 09:55:56,535 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:55:56,535 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:55:56,535 AM [test-pekko.actor.default-dispatcher-7] [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] 09:55:56,535 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 09:55:56,535 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 09:55:56,535 AM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 09:55:56,536 AM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 09:55:56,536 AM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 09:55:56,536 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d978778] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15463534108364865093/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863B0AC-1FF1EAA0.tmp [WARN] [07/01/2025 09:55:56.536] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 09:55:56.536] [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'. 09:55:56,536 AM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 09:55:56,540 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d978778] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15463534108364865093/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863B0AC-1FF1EAA0.v1 09:55:56,541 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d978778] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15463534108364865093/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863B0AC-1FF1EAA0.v1 09:55:56,541 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d978778] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15463534108364865093/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:55:56,541 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d978778] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-01T09:55:56.535947936Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15463534108364865093/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863B0AC-1FF1EAA0.v1, size=555, entryCompress=NONE, stateCompress=NONE} 09:55:56,541 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d978778] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 09:55:56,541 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 09:55:56,541 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-07-01T09:55:56.535947936Z 09:55:56,541 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 09:55:56,541 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 09:55:56,542 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 09:55:56,682 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15463534108364865093/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863B0AC-1FF1EAA0.v1 09:55:56,683 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15463534108364865093/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 09:55:56,683 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-01T09:55:56.535947936Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15463534108364865093/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006863B0AC-1FF1EAA0.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 09:55:56,685 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-1437703193] 09:55:56,696 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#-999634948] 09:55:56,696 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#1890771808] 09:55:56,697 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 09:55:56,697 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:55:56,697 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 09:55:56,700 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,701 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#-1174673050] 09:55:56,712 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#634294915] 09:55:56,712 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#556829277] 09:55:56,714 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 09:55:56,714 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,716 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 09:55:56,716 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:55:56,717 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#628171614] 09:55:56,728 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#776865049] 09:55:56,728 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#-1363121348] 09:55:56,730 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 09:55:56,730 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,731 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:55:56,732 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:55:56,732 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:55:56,732 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:55:56,732 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:55:56,732 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:55:56,732 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:55:56,732 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,733 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:55:56,733 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:55:56,733 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:55:56,734 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#-746569621] 09:55:56,744 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#1240071943] 09:55:56,744 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#1680910495] 09:55:56,747 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 09:55:56,747 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,747 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:55:56,748 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:55:56,748 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:55:56,748 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,749 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:55:56,749 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 09:55:56,749 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:55:56,749 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 09:55:56,750 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,750 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:55:56,750 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#-1041746642] 09:55:56,761 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#-1221792778] 09:55:56,761 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#1225476977] 09:55:56,764 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,764 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-2058678580] 09:55:56,775 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-467758799] 09:55:56,775 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#1795506308] 09:55:56,777 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 09:55:56,778 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,779 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:55:56,779 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:55:56,780 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:55:56,780 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,781 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:55:56,781 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:55:56,782 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:55:56,782 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:55:56,782 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,783 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:55:56,784 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:55:56,784 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:55:56,785 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,785 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:55:56,785 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-1626665338] 09:55:56,796 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#-813109191] 09:55:56,796 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-329054530] 09:55:56,799 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 09:55:56,800 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,801 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 09:55:56,801 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:55:56,801 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 09:55:56,802 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:55:56,802 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:55:56,802 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:55:56,802 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,802 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 09:55:56,802 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:55:56,802 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 09:55:56,803 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-151683156] 09:55:56,814 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#-1273497567] 09:55:56,814 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#924627196] 09:55:56,817 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 09:55:56,817 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,819 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:55:56,820 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader476 09:55:56,820 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader476 09:55:56,822 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 09:55:56,823 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#149307196] 09:55:56,833 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-2037070601] 09:55:56,834 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-1347028616] 09:55:56,836 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 09:55:56,836 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,837 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:55:56,837 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:55:56,837 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:55:56,837 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 09:55:56,837 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 09:55:56,837 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 09:55:56,838 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 09:55:56,838 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,838 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:55:56,838 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 09:55:56,838 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 09:55:56,838 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-1990193206] 09:55:56,849 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#223165011] 09:55:56,849 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#-239224586] 09:55:56,854 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 09:55:56,854 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,855 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:55:56,856 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:55:56,856 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:55:56,857 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:56,857 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:55:56,858 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#-1269907875] 09:55:56,868 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#-938843937] 09:55:56,868 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#-1656389301] 09:55:56,871 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 09:55:56,872 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 09:55:56,872 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 09:55:56,872 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor [WARN] [07/01/2025 09:55:56.872] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@562d9e12 [INFO] [pekkoDeadLetter][07/01/2025 09:55:56.873] [test-pekko.actor.default-dispatcher-11] [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'. 09:55:56,873 AM [test-pekko.actor.default-dispatcher-11] [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'. 09:55:56,874 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5622295842769847054/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 09:55:56,874 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 09:55:56,874 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:55:56,874 AM [test-pekko.actor.default-dispatcher-15] [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 09:55:56,878 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 09:55:56,878 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 09:55:56,878 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@6647aed2 09:55:56,878 AM [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]]} 09:55:56,878 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 09:55:56,878 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:55:56,878 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 09:55:56,878 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:55:56,879 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 09:55:56,879 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:55:56,879 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 09:55:56,879 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:55:56,879 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 09:55:56,879 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 09:55:56,879 AM [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} 09:55:56,879 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 09:55:56,879 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 09:55:56,879 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 09:55:56,879 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 09:55:56,879 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 09:55:56,879 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 09:55:56,879 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 09:55:56,880 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:55:56,880 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:55:56,880 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:55:56,880 AM [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] 09:55:56,880 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 09:55:56,880 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 09:55:56,880 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 09:55:56,880 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 09:55:56,880 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 09:55:56,880 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d855951] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5622295842769847054/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863B0AC-3478D0B4.tmp [WARN] [07/01/2025 09:55:56.880] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 09:55:56.880] [test-pekko.actor.default-dispatcher-13] [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'. 09:55:56,880 AM [test-pekko.actor.default-dispatcher-13] [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'. 09:55:56,883 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d855951] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5622295842769847054/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863B0AC-3478D0B4.v1 09:55:56,883 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d855951] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5622295842769847054/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:55:56,883 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d855951] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5622295842769847054/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863B0AC-3478D0B4.v1 09:55:56,883 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d855951] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-01T09:55:56.880332980Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5622295842769847054/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863B0AC-3478D0B4.v1, size=701, entryCompress=NONE, stateCompress=NONE} 09:55:56,883 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d855951] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 09:55:56,883 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 09:55:56,883 AM [test-pekko.actor.default-dispatcher-13] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-07-01T09:55:56.880332980Z 09:55:56,884 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 09:55:56,884 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 09:55:56,884 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 09:55:56,981 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5622295842769847054/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 09:55:56,981 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5622295842769847054/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863B0AC-3478D0B4.v1 09:55:56,981 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-01T09:55:56.880332980Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5622295842769847054/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006863B0AC-3478D0B4.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 09:55:56,983 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#1152584524] 09:55:56,994 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#-1855974279] 09:55:56,994 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#1109025781] 09:55:56,994 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 09:55:56,994 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:55:56,994 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 09:55:56,997 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 09:55:56,997 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:56,998 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:55:56,999 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 09:55:56,999 AM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 09:55:57,0 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:57,0 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 09:55:57,0 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-1421118585] 09:55:57,11 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#1208045799] 09:55:57,11 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#-53396976] 09:55:57,13 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 09:55:57,13 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:57,13 AM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 09:55:57,14 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 09:55:57,14 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 09:55:57,14 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 09:55:57,14 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 09:55:57,15 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#1630835227] 09:55:57,25 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-294673003] 09:55:57,25 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-822881517] 09:55:57,28 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 09:55:57,28 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:57,29 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 09:55:57,29 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 09:55:57,29 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:55:57,30 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:55:57,30 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:55:57,30 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 09:55:57,30 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:55:57,30 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 09:55:57,30 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:55:57,30 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 09:55:57,30 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 09:55:57,30 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:57,30 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:55:57,30 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 09:55:57,31 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:55:57,31 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:55:57,31 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:55:57,31 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:55:57,31 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:55:57,31 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:55:57,31 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:55:57,31 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:55:57,32 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#546946714] 09:55:57,42 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#-1278629929] 09:55:57,43 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-779521275] 09:55:57,44 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 09:55:57,45 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:57,45 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 09:55:57,45 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 09:55:57,46 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#345509423] 09:55:57,57 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#1506609427] 09:55:57,57 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#-1479284500] 09:55:57,59 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 09:55:57,59 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:57,60 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:55:57,60 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:55:57,60 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:55:57,60 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:55:57,61 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 09:55:57,62 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 09:55:57,62 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 09:55:57,62 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:55:57,62 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 09:55:57,62 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 09:55:57,62 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 09:55:57,62 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 09:55:57,63 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:57,63 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 09:55:57,63 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 09:55:57,63 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:55:57,63 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:55:57,64 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#1545090461] 09:55:57,74 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#498719653] 09:55:57,75 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#1172517933] 09:55:57,76 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 09:55:57,76 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:57,77 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 09:55:57,77 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:55:57,77 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 09:55:57,78 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:57,78 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 09:55:57,78 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 09:55:57,78 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:55:57,78 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 09:55:57,79 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:57,79 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 09:55:57,79 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 09:55:57,79 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 09:55:57,80 AM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 09:55:57,80 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:57,80 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 09:55:57,80 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#-1672568839] 09:55:57,91 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#-1496797880] 09:55:57,91 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#-467186472] 09:55:57,93 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 09:55:57,93 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:57,293 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:55:57,293 AM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.199:17355, Removed) 09:55:57,293 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 09:55:57,293 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:55:57,293 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:55:57,294 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:55:57,294 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#-1323830605] 09:55:57,305 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#464261827] 09:55:57,305 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#938242285] 09:55:57,308 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:57,309 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 09:55:57,460 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:55:57,460 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#1878888588] 09:55:57,471 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#-1149062973] 09:55:57,471 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#-383692291] 09:55:57,474 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 09:55:57,475 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:57,477 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 09:55:57,477 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 09:55:57,478 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#776449974] 09:55:57,489 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-641974068] 09:55:57,489 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#349799338] 09:55:57,491 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 09:55:57,492 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:57,493 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 09:55:57,493 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:55:57,493 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 09:55:57,493 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 09:55:57,493 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 09:55:57,493 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 09:55:57,493 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 09:55:57,493 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:57,494 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 09:55:57,494 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 09:55:57,494 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:55:57,494 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:55:57,494 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 09:55:57,494 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 09:55:57,494 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 09:55:57,494 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 09:55:57,494 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 09:55:57,494 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 09:55:57,494 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 09:55:57,494 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 09:55:57,495 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#1875549237] 09:55:57,506 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#1306484967] 09:55:57,506 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#87359231] 09:55:57,509 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 09:55:57,509 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:57,510 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 09:55:57,510 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 09:55:57,510 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 09:55:57,511 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 09:55:57,512 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 09:55:57,512 AM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:57,513 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#1029425047] 09:55:57,523 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-1034872576] 09:55:57,524 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#-1080411988] 09:55:57,528 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 09:55:57,528 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:57,529 AM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 09:55:57,530 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 09:55:57,530 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 09:55:57,530 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 09:55:57,531 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 09:55:57,531 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#1880481360] 09:55:57,532 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#2036563308] 09:55:57,532 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#2058684102] 09:55:57,534 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [07/01/2025 09:55:57.535] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@df2e955 09:55:57,535 AM [test-pekko.actor.default-dispatcher-13] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][07/01/2025 09:55:57.535] [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. [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'. 09:55:57,536 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:55:57,536 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:55:57,536 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:55:57,538 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5987673650629790369/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 09:55:57,538 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 09:55:57,538 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:55:57,538 AM [test-pekko.actor.default-dispatcher-11] [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 09:55:57,541 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:55:57,541 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 09:55:57,541 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@458451f 09:55:57,541 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 09:55:57,542 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 09:55:57,543 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 09:55:57,543 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 09:55:57,543 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 09:55:57,543 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 09:55:57,543 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 09:55:57,543 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 09:55:57,543 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:55:57,543 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 09:55:57,543 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 09:55:57,543 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d453446] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5987673650629790369/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863B0AD-20614731.tmp [WARN] [07/01/2025 09:55:57.543] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 09:55:57.543] [test-pekko.actor.default-dispatcher-13] [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'. 09:55:57,543 AM [test-pekko.actor.default-dispatcher-15] [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'. 09:55:57,545 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d453446] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5987673650629790369/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863B0AD-20614731.v1 09:55:57,545 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d453446] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5987673650629790369/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863B0AD-20614731.v1 09:55:57,545 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d453446] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5987673650629790369/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:55:57,545 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d453446] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-01T09:55:57.543246129Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5987673650629790369/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863B0AD-20614731.v1, size=573, entryCompress=NONE, stateCompress=NONE} 09:55:57,545 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d453446] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 09:55:57,545 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 09:55:57,545 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-07-01T09:55:57.543246129Z 09:55:57,545 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 09:55:57,545 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 09:55:57,545 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 09:55:57,695 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5987673650629790369/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863B0AD-20614731.v1 09:55:57,696 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5987673650629790369/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:55:57,696 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-01T09:55:57.543246129Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5987673650629790369/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863B0AD-20614731.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:55:57,697 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:55:57,698 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:55:57,699 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/01/2025 09:55:57.700] [test-pekko.actor.default-dispatcher-13] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@659a4a0b [INFO] [pekkoDeadLetter][07/01/2025 09:55:57.700] [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'. 09:55:57,700 AM [test-pekko.actor.default-dispatcher-13] [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'. 09:55:57,700 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 09:55:57,700 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:55:57,700 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 09:55:57,702 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:55:57,703 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5987673650629790369/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863B0AD-20614731.v1 09:55:57,703 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5987673650629790369/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 09:55:57,703 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-01T09:55:57.543246129Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest5987673650629790369/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006863B0AD-20614731.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 09:55:57,703 AM [test-pekko.actor.default-dispatcher-13] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 09:55:57,704 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-07-01T09:55:57.543246129Z 09:55:57,704 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:55:57,704 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 394.8 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 09:55:57,705 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 09:55:57,705 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 09:55:57,705 AM [test-pekko.actor.default-dispatcher-13] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 821.3 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 09:55:57,705 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 09:55:57,705 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 09:55:57,705 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@30594918 09:55:57,705 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#198393422] 09:55:57,706 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#1187279912] 09:55:57,707 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#1599994515] 09:55:57,707 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 09:55:57,707 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:55:57,707 AM [test-pekko.actor.default-dispatcher-13] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 09:55:57,710 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 09:55:57,710 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:58,11 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 09:55:58,141 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:55:58,141 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 09:55:58,391 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 09:55:58,592 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 09:55:58,592 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#-965578616] 09:55:58,603 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#-734170280] 09:55:58,603 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#-999730934] 09:55:58,606 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:58,607 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 09:55:58,607 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 09:55:58,607 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 09:55:58,607 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 09:55:58,607 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 09:55:58,608 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-904344140] 09:55:58,619 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#-1143540094] 09:55:58,619 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#827128217] 09:55:58,622 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:58,624 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 09:55:58,624 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 09:55:58,624 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#-334854277] 09:55:58,635 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#-768067486] 09:55:58,635 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#-1743388928] 09:55:58,639 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:58,640 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 09:55:58,641 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 09:55:58,641 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 09:55:58,641 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 09:55:58,641 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 09:55:58,641 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 09:55:58,641 AM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:58,641 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 09:55:58,641 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 09:55:58,642 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 09:55:58,642 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:55:58,642 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 09:55:58,642 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#-743237701] 09:55:58,653 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#308233980] 09:55:58,653 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#225532710] 09:55:58,657 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:58,658 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 09:55:58,658 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 09:55:58,659 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-628967585] 09:55:58,669 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-66352873] 09:55:58,669 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#925108790] 09:55:58,673 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:58,674 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 09:55:58,674 AM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 09:55:58,675 AM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 09:55:58,675 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 09:55:58,676 AM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 09:55:58,677 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 09:55:58,677 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 09:55:58,677 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 09:55:58,677 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 09:55:58,677 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 09:55:58,678 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 09:55:58,678 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 09:55:58,679 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#-1778659133] 09:55:58,689 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-616022479] 09:55:58,690 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#840939624] 09:55:58,693 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:58,693 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:55:58,694 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 09:55:58,694 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:58,694 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 09:55:58,694 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:55:58,695 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:55:58,695 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 09:55:58,695 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 09:55:58,695 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#-1123536234] 09:55:58,706 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#-1798042681] 09:55:58,706 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#-363871637] 09:55:58,708 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:58,709 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 09:55:58,710 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#-1679390154] 09:55:58,721 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#-1958698267] 09:55:58,721 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#1781814520] 09:55:58,724 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 09:55:58,725 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 09:55:58,725 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 09:55:58,726 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior549#-2043559367] 09:55:58,737 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower550#-2015253196] 09:55:58,737 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader551#1711440021] [INFO] [07/01/2025 09:55:58.738] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 09:55:58,738 AM [test-pekko.actor.default-dispatcher-15] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [07/01/2025 09:55:58.739] [test-pekko.actor.default-dispatcher-15] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.199:17355) [INFO] [pekkoDeadLetter][07/01/2025 09:55:58.739] [test-pekko.actor.default-dispatcher-13] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#653480056] 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/01/2025 09:55:58.740] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.199:17355] - Exiting completed [INFO] [07/01/2025 09:55:58.740] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.199:17355] - Shutting down... [INFO] [07/01/2025 09:55:58.740] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.199:17355] - Successfully shut down 09:55:58,741 AM [test-pekko.actor.default-dispatcher-13] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#653480056] 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'. 09:55:58,741 AM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.199:17355] - Exiting completed 09:55:58,741 AM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.199:17355] - Shutting down... 09:55:58,741 AM [test-pekko.actor.default-dispatcher-13] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.199:17355] - Successfully shut down [INFO] [07/01/2025 09:55:58.741] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.199:17355/system/remoting-terminator] Shutting down remote daemon. 09:55:58,742 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 09:55:58,742 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/01/2025 09:55:58.742] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.199:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [07/01/2025 09:55:58.744] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.170.199:17355/system/remoting-terminator] Remoting shut down. 09:55:58,744 AM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [07/01/2025 09:55:58.744] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger