[DEBUG] [07/02/2025 07:39:30.413] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 07:39:30,413 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/02/2025 07:39:30.413] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/02/2025 07:39:30.413] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [07/02/2025 07:39:30.420] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.36:17355] with UID [551985501346479898] 07:39:30,420 AM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.36:17355] with UID [551985501346479898] [INFO] [07/02/2025 07:39:30.421] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.36:17355] - Starting up, Pekko version [1.0.3] ... 07:39:30,421 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.36:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/02/2025 07:39:30.422] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.36:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/02/2025 07:39:30.422] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.36:17355] - Started up successfully 07:39:30,422 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.36:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 07:39:30,422 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.36:17355] - Started up successfully [INFO] [07/02/2025 07:39:30.423] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.36:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/02/2025 07:39:30.423] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.36:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:39:30,423 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.36:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 07:39:30,423 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.36:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:39:30,434 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 07:39:30,434 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,525 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:39:30,525 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:39:30,525 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:39:30,526 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:39:30,526 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:39:30,526 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 07:39:30,526 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:39:30,526 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:39:30,528 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 07:39:30,529 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#-30072909] 07:39:30,530 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#680503262] 07:39:30,530 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#675269281] 07:39:30,532 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 07:39:30,532 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,533 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]]} 07:39:30,534 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 07:39:30,534 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} 07:39:30,534 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:39:30,534 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#313835967] 07:39:30,535 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#-1525349585] 07:39:30,535 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#-1714067167] 07:39:30,536 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 07:39:30,536 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,537 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:39:30,537 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:39:30,537 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:39:30,537 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:39:30,537 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:39:30,537 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:39:30,537 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:39:30,538 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:39:30,538 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 07:39:30,539 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]]} 07:39:30,539 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 07:39:30,539 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} 07:39:30,539 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 07:39:30,539 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#8220911] 07:39:30,540 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#-845554181] 07:39:30,540 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#1276051528] 07:39:30,541 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,542 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:39:30,542 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#43577225] 07:39:30,543 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#635675915] 07:39:30,543 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#772489674] 07:39:30,544 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:39:30,544 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,544 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 07:39:30,545 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]]} 07:39:30,545 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:39:30,545 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:39:30,545 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:39:30,545 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:39:30,545 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:39:30,546 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} 07:39:30,546 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:39:30,546 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:39:30,546 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:39:30,547 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#183541664] 07:39:30,548 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#1264773651] 07:39:30,548 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#-1196181999] 07:39:30,550 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 07:39:30,550 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,550 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]]} 07:39:30,550 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:39:30,550 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:39:30,550 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:39:30,550 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:39:30,550 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 07:39:30,550 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} 07:39:30,551 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:39:30,551 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:39:30,551 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:39:30,551 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:39:30,551 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:39:30,551 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:39:30,551 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]]} 07:39:30,552 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:39:30,552 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:39:30,552 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:39:30,552 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 07:39:30,552 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:39:30,552 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:39:30,552 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} 07:39:30,552 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 07:39:30,552 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:39:30,552 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:39:30,552 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:39:30,552 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#1427607630] 07:39:30,553 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-1579176753] 07:39:30,553 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#109157966] 07:39:30,554 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 07:39:30,554 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,555 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 07:39:30,555 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 07:39:30,555 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} 07:39:30,555 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 07:39:30,556 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#629549800] 07:39:30,556 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#1285411897] 07:39:30,556 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#-1482299363] 07:39:30,557 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,559 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#1850259129] 07:39:30,560 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#191878236] 07:39:30,560 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-1890968415] 07:39:30,561 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 07:39:30,561 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,561 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:39:30,561 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 07:39:30,562 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]]} 07:39:30,562 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:39:30,562 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:39:30,562 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:39:30,562 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:39:30,562 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:39:30,562 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} 07:39:30,562 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:39:30,562 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 07:39:30,562 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 07:39:30,562 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 07:39:30,562 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 07:39:30,562 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#439130539] 07:39:30,563 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#1890411933] 07:39:30,563 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#1376227677] 07:39:30,564 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [07/02/2025 07:39:30.566] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6f8b529d [INFO] [pekkoDeadLetter][07/02/2025 07:39:30.567] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:39:30,567 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:39:30,569 AM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 07:39:30,569 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:39:30,569 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:39:30,571 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6138716876728436122/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 07:39:30,571 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:39:30,571 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:39:30,571 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 07:39:30,574 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:39:30,574 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:39:30,574 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@487ce770 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 07:39:30,575 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 07:39:30,576 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:39:30,576 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:39:30,576 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 07:39:30,576 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 07:39:30,576 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 07:39:30,576 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 07:39:30,576 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 07:39:30,576 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 07:39:30,576 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d691505] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6138716876728436122/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006864E232-225CAB5D.tmp [WARN] [07/02/2025 07:39:30.576] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/02/2025 07:39:30.576] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:39:30,576 AM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:39:30,581 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d691505] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6138716876728436122/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006864E232-225CAB5D.v1 07:39:30,581 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d691505] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6138716876728436122/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006864E232-225CAB5D.v1 07:39:30,581 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d691505] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6138716876728436122/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:39:30,581 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d691505] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-02T07:39:30.576498525Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6138716876728436122/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006864E232-225CAB5D.v1, size=555, entryCompress=NONE, stateCompress=NONE} 07:39:30,581 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d691505] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:39:30,581 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:39:30,581 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-07-02T07:39:30.576498525Z 07:39:30,581 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 07:39:30,581 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 07:39:30,581 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 07:39:30,727 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6138716876728436122/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006864E232-225CAB5D.v1 07:39:30,728 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6138716876728436122/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:39:30,728 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-02T07:39:30.576498525Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6138716876728436122/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-000000006864E232-225CAB5D.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 07:39:30,729 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-1013603453] 07:39:30,740 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#2033493701] 07:39:30,740 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#620143013] 07:39:30,740 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 07:39:30,740 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:39:30,740 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:39:30,742 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,743 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#695949313] 07:39:30,744 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#1838382756] 07:39:30,744 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#-756641927] 07:39:30,745 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 07:39:30,745 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,746 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 07:39:30,746 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:39:30,747 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#-2085301827] 07:39:30,747 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#-1136152476] 07:39:30,747 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#1307558477] 07:39:30,748 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 07:39:30,748 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,749 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 07:39:30,749 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]]} 07:39:30,749 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:39:30,749 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:39:30,749 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:39:30,749 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:39:30,749 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:39:30,749 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} 07:39:30,749 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:39:30,749 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:39:30,750 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:39:30,750 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#1877496386] 07:39:30,750 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#510346408] 07:39:30,750 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#760574510] 07:39:30,752 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 07:39:30,752 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,752 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 07:39:30,752 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]]} 07:39:30,752 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 07:39:30,753 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} 07:39:30,753 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:39:30,753 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 07:39:30,753 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]]} 07:39:30,753 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 07:39:30,753 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} 07:39:30,754 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:39:30,754 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#2067209125] 07:39:30,754 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#386147063] 07:39:30,754 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#-350445139] 07:39:30,755 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,756 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-381418744] 07:39:30,756 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-592774205] 07:39:30,756 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#2135917734] 07:39:30,757 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 07:39:30,757 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,757 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 07:39:30,758 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]]} 07:39:30,758 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 07:39:30,758 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} 07:39:30,758 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:39:30,758 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:39:30,759 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]]} 07:39:30,759 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 07:39:30,759 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} 07:39:30,759 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:39:30,759 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]]} 07:39:30,760 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 07:39:30,760 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} 07:39:30,760 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:39:30,760 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#-281130674] 07:39:30,760 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#1388521500] 07:39:30,760 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#2114703959] 07:39:30,762 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 07:39:30,762 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,762 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]]} 07:39:30,763 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:39:30,763 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 07:39:30,763 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:39:30,763 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:39:30,763 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:39:30,763 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} 07:39:30,763 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:39:30,763 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:39:30,763 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 07:39:30,763 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#1053583121] 07:39:30,764 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#1596857815] 07:39:30,764 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#1801827212] 07:39:30,765 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 07:39:30,765 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,766 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:39:30,766 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader476 07:39:30,766 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader476 07:39:30,767 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 07:39:30,768 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#-798599301] 07:39:30,768 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#-1695033491] 07:39:30,768 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#252872443] 07:39:30,769 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 07:39:30,769 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,770 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 07:39:30,770 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]]} 07:39:30,770 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:39:30,770 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:39:30,770 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:39:30,770 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:39:30,770 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:39:30,770 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} 07:39:30,770 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:39:30,770 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:39:30,771 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:39:30,771 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#-493760690] 07:39:30,771 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#-392836432] 07:39:30,771 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#1672012846] 07:39:30,774 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:39:30,774 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,774 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 07:39:30,774 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]]} 07:39:30,775 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 07:39:30,775 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} 07:39:30,775 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:39:30,775 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#684000331] 07:39:30,775 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#763206368] 07:39:30,775 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#-1433995394] 07:39:30,777 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [07/02/2025 07:39:30.777] [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@177e9876 [INFO] [pekkoDeadLetter][07/02/2025 07:39:30.777] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:39:30,778 AM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:39:30,778 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 07:39:30,778 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:39:30,778 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:39:30,779 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1447701622977123646/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 07:39:30,779 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 07:39:30,779 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:39:30,779 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 07:39:30,782 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:39:30,782 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 07:39:30,782 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@436eef33 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 07:39:30,783 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 07:39:30,784 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:39:30,784 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:39:30,784 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:39:30,784 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] 07:39:30,784 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 07:39:30,784 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 07:39:30,784 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 07:39:30,784 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 07:39:30,784 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 07:39:30,784 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d223005] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1447701622977123646/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006864E232-2EBDF892.tmp 07:39:30,784 AM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [07/02/2025 07:39:30.784] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/02/2025 07:39:30.784] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:39:30,786 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d223005] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1447701622977123646/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006864E232-2EBDF892.v1 07:39:30,787 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d223005] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1447701622977123646/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006864E232-2EBDF892.v1 07:39:30,787 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d223005] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1447701622977123646/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:39:30,787 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d223005] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-02T07:39:30.784201874Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1447701622977123646/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006864E232-2EBDF892.v1, size=701, entryCompress=NONE, stateCompress=NONE} 07:39:30,787 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d223005] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:39:30,787 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:39:30,787 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-07-02T07:39:30.784201874Z 07:39:30,787 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 07:39:30,787 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 07:39:30,787 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 07:39:30,934 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1447701622977123646/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006864E232-2EBDF892.v1 07:39:30,934 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1447701622977123646/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:39:30,934 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-02T07:39:30.784201874Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1447701622977123646/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-000000006864E232-2EBDF892.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 07:39:30,936 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#492785631] 07:39:30,937 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#-1027005262] 07:39:30,937 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#-426213516] 07:39:30,937 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 07:39:30,937 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:39:30,937 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:39:30,939 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 07:39:30,939 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,940 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 07:39:30,940 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]]} 07:39:30,940 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 07:39:30,941 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} 07:39:30,941 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 07:39:30,941 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-1645844115] 07:39:30,941 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#690268511] 07:39:30,942 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#-447869087] 07:39:30,943 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 07:39:30,943 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,943 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 07:39:30,943 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 07:39:30,944 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 07:39:30,944 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 07:39:30,944 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 07:39:30,944 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#-1202093718] 07:39:30,944 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-1467444603] 07:39:30,945 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-1265243704] 07:39:30,946 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 07:39:30,946 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,946 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 07:39:30,946 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]]} 07:39:30,947 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:39:30,947 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:39:30,947 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:39:30,947 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 07:39:30,947 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:39:30,947 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 07:39:30,947 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:39:30,947 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 07:39:30,947 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 07:39:30,947 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} 07:39:30,947 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:39:30,947 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 07:39:30,947 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:39:30,947 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:39:30,947 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:39:30,947 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:39:30,947 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:39:30,947 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:39:30,947 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:39:30,947 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:39:30,948 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#-1812409943] 07:39:30,948 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#1629046186] 07:39:30,948 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-315262134] 07:39:30,949 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 07:39:30,950 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,950 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 07:39:30,950 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 07:39:30,950 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#1683476736] 07:39:30,951 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#-83799618] 07:39:30,951 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#763715289] 07:39:30,952 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 07:39:30,952 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,953 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:39:30,953 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:39:30,953 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:39:30,953 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:39:30,953 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 07:39:30,953 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]]} 07:39:30,953 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 07:39:30,954 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:39:30,954 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:39:30,954 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 07:39:30,954 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:39:30,954 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:39:30,954 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} 07:39:30,954 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 07:39:30,954 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:39:30,954 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:39:30,954 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:39:30,954 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#2088485128] 07:39:30,955 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#552538390] 07:39:30,955 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#-903269606] 07:39:30,956 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 07:39:30,956 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:30,957 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 07:39:30,957 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]]} 07:39:30,957 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 07:39:30,957 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} 07:39:30,957 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:39:30,957 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:39:30,958 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]]} 07:39:30,958 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 07:39:30,958 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} 07:39:30,958 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:39:30,958 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:39:30,958 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]]} 07:39:30,959 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 07:39:30,959 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} 07:39:30,959 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:39:30,959 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#-794332121] 07:39:30,959 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#1820703083] 07:39:30,959 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#-1938155129] 07:39:30,961 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 07:39:30,961 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:31,161 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:39:31,161 AM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.36:17355, Removed) 07:39:31,161 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 07:39:31,161 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:39:31,161 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:39:31,161 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:39:31,161 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#1800585348] 07:39:31,162 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#1397902588] 07:39:31,163 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#369944709] 07:39:31,166 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:31,166 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 07:39:31,367 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:39:31,367 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#-692766597] 07:39:31,368 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#958172969] 07:39:31,369 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#1135767418] 07:39:31,371 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 07:39:31,372 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:31,373 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 07:39:31,374 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 07:39:31,375 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#1022186334] 07:39:31,375 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-482736843] 07:39:31,376 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#-2112839936] 07:39:31,378 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 07:39:31,378 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:31,379 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]]} 07:39:31,379 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:39:31,379 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 07:39:31,379 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:39:31,379 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:39:31,379 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 07:39:31,379 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:39:31,380 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} 07:39:31,380 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 07:39:31,380 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:39:31,380 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:39:31,380 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:39:31,380 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:39:31,380 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:39:31,380 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:39:31,380 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:39:31,380 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:39:31,380 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:39:31,380 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 07:39:31,380 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 07:39:31,381 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#143389598] 07:39:31,381 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#1621026253] 07:39:31,381 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#549789895] 07:39:31,382 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 07:39:31,382 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:31,383 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:39:31,383 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:39:31,383 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:39:31,383 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:39:31,383 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]]} 07:39:31,384 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} 07:39:31,384 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#-1296468736] 07:39:31,384 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-77426786] 07:39:31,385 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#355807752] 07:39:31,386 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 07:39:31,386 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:31,386 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 07:39:31,386 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]]} 07:39:31,386 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:39:31,386 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:39:31,387 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:39:31,387 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-1024204341] 07:39:31,387 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#894927550] 07:39:31,387 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#-1782096452] 07:39:31,389 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [07/02/2025 07:39:31.389] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@501098dd [INFO] [pekkoDeadLetter][07/02/2025 07:39:31.390] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:39:31,390 AM [test-pekko.actor.default-dispatcher-15] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:39:31,391 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:39:31,391 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:39:31,391 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:39:31,392 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15506936663159350889/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 07:39:31,392 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:39:31,392 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:39:31,392 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 07:39:31,397 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:39:31,397 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:39:31,397 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7be7a355 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 07:39:31,398 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 07:39:31,399 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:39:31,399 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:39:31,399 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:39:31,399 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 07:39:31,399 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 07:39:31,399 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 07:39:31,399 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:39:31,399 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 07:39:31,399 AM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 07:39:31,399 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d971458] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15506936663159350889/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006864E233-17D2F76E.tmp [WARN] [07/02/2025 07:39:31.399] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 07:39:31,400 AM [test-pekko.actor.default-dispatcher-5] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][07/02/2025 07:39:31.400] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:39:31,403 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d971458] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15506936663159350889/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006864E233-17D2F76E.v1 07:39:31,403 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d971458] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15506936663159350889/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006864E233-17D2F76E.v1 07:39:31,403 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d971458] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15506936663159350889/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:39:31,403 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d971458] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-02T07:39:31.399701870Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15506936663159350889/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006864E233-17D2F76E.v1, size=573, entryCompress=NONE, stateCompress=NONE} 07:39:31,403 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d971458] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:39:31,403 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:39:31,403 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-07-02T07:39:31.399701870Z 07:39:31,403 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 07:39:31,404 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 07:39:31,404 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 07:39:31,550 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15506936663159350889/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006864E233-17D2F76E.v1 07:39:31,550 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15506936663159350889/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:39:31,550 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-02T07:39:31.399701870Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15506936663159350889/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006864E233-17D2F76E.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:39:31,552 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:39:31,563 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:39:31,563 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [07/02/2025 07:39:31.564] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@3591012a [INFO] [pekkoDeadLetter][07/02/2025 07:39:31.564] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:39:31,564 AM [test-pekko.actor.default-dispatcher-11] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:39:31,565 AM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:39:31,565 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:39:31,565 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:39:31,566 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:39:31,567 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15506936663159350889/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006864E233-17D2F76E.v1 07:39:31,567 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15506936663159350889/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:39:31,567 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-02T07:39:31.399701870Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15506936663159350889/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-000000006864E233-17D2F76E.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:39:31,567 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:39:31,568 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-07-02T07:39:31.399701870Z 07:39:31,568 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:39:31,568 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 141.8 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 07:39:31,568 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 07:39:31,568 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 07:39:31,568 AM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 474.0 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 07:39:31,568 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 07:39:31,568 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:39:31,568 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@50f095cb 07:39:31,569 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#-27966954] 07:39:31,579 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#573474651] 07:39:31,579 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#-728444311] 07:39:31,580 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:39:31,580 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:39:31,580 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:39:31,582 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 07:39:31,582 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:31,883 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:39:32,13 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:39:32,13 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 07:39:32,264 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 07:39:32,464 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 07:39:32,464 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#-1274167224] 07:39:32,475 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#-1730346012] 07:39:32,475 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#541963816] 07:39:32,479 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:32,480 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:39:32,480 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 07:39:32,480 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:39:32,480 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:39:32,480 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:39:32,480 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#1835406602] 07:39:32,491 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#281878545] 07:39:32,491 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#1904978012] 07:39:32,494 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:32,496 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 07:39:32,497 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 07:39:32,497 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#-682145531] 07:39:32,508 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#886234039] 07:39:32,508 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#872312365] 07:39:32,510 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:32,512 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]]} 07:39:32,512 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:39:32,512 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:39:32,512 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:39:32,512 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:39:32,512 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 07:39:32,512 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} 07:39:32,513 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 07:39:32,513 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 07:39:32,513 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:39:32,513 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:39:32,513 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 07:39:32,514 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#1829205704] 07:39:32,525 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#2049768980] 07:39:32,525 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#1140858412] 07:39:32,527 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:32,528 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 07:39:32,528 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 07:39:32,528 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#384690309] 07:39:32,539 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-1093587574] 07:39:32,539 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#-1174292536] 07:39:32,541 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:32,542 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 07:39:32,543 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 07:39:32,543 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} 07:39:32,543 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 07:39:32,544 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 07:39:32,545 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 07:39:32,545 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 07:39:32,545 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. 07:39:32,545 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 07:39:32,547 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 07:39:32,547 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 07:39:32,547 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:39:32,548 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#-117942917] 07:39:32,559 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-281684633] 07:39:32,559 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#1600882817] 07:39:32,562 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:32,562 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:39:32,563 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:39:32,563 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:32,563 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 07:39:32,563 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:39:32,564 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:39:32,564 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:39:32,564 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:39:32,564 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#1820205463] 07:39:32,575 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#1256241652] 07:39:32,575 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#1094980618] 07:39:32,577 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:32,578 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 07:39:32,579 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#1022203279] 07:39:32,590 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#-1978575118] 07:39:32,590 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#485251195] 07:39:32,592 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:39:32,593 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 07:39:32,593 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:39:32,594 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior549#-1004925096] 07:39:32,604 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower550#-1880833771] 07:39:32,605 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader551#97619990] 07:39:32,606 AM [test-pekko.actor.default-dispatcher-6] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 07:39:32,607 AM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1260168124] 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/02/2025 07:39:32.606] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 07:39:32,608 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.36:17355] - Exiting completed 07:39:32,608 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.36:17355] - Shutting down... 07:39:32,608 AM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.36:17355] - Successfully shut down 07:39:32,609 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 07:39:32,609 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [WARN] [07/02/2025 07:39:32.610] [test-pekko.actor.default-dispatcher-14] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.36:17355) 07:39:32,611 AM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [pekkoDeadLetter][07/02/2025 07:39:32.606] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1260168124] 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/02/2025 07:39:32.607] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.36:17355] - Exiting completed [INFO] [07/02/2025 07:39:32.607] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.36:17355] - Shutting down... [INFO] [07/02/2025 07:39:32.607] [test-pekko.actor.internal-dispatcher-8] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.36:17355] - Successfully shut down [INFO] [07/02/2025 07:39:32.609] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.36:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [07/02/2025 07:39:32.609] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.36:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports.