[DEBUG] [06/27/2025 10:36:52.517] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 10:36:52,522 AM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/27/2025 10:36:52.522] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/27/2025 10:36:52.522] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [06/27/2025 10:36:52.531] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.134:17355] with UID [6989703640989556510] 10:36:52,531 AM [test-pekko.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.134:17355] with UID [6989703640989556510] [INFO] [06/27/2025 10:36:52.532] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.134:17355] - Starting up, Pekko version [1.0.3] ... 10:36:52,532 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.134:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/27/2025 10:36:52.536] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.134:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 10:36:52,536 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.134:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/27/2025 10:36:52.536] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.134:17355] - Started up successfully 10:36:52,536 AM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.134:17355] - Started up successfully [INFO] [06/27/2025 10:36:52.537] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.134:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/27/2025 10:36:52.537] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.134:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:36:52,538 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.134:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 10:36:52,538 AM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.134:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 10:36:52,549 AM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 10:36:52,550 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,643 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:36:52,644 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:36:52,644 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:36:52,644 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:36:52,645 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 10:36:52,645 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 10:36:52,645 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 10:36:52,645 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 10:36:52,648 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 10:36:52,649 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-2042096122] 10:36:52,652 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-406546260] 10:36:52,652 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#-1791527899] 10:36:52,654 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 10:36:52,654 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,656 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]]} 10:36:52,656 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 10:36:52,657 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} 10:36:52,657 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 10:36:52,657 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#878637335] 10:36:52,658 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#2016974046] 10:36:52,658 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#-1344666748] 10:36:52,661 AM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 10:36:52,662 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,662 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:36:52,662 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:36:52,662 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:36:52,663 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:36:52,663 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 10:36:52,663 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 10:36:52,663 AM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 10:36:52,664 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:36:52,664 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 10:36:52,665 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]]} 10:36:52,665 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 10:36:52,665 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} 10:36:52,665 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 10:36:52,665 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#766821207] 10:36:52,687 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#1697229641] 10:36:52,687 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#1395884080] 10:36:52,690 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,690 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 10:36:52,694 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#32270118] 10:36:52,695 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-1755899760] 10:36:52,695 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#2141380677] 10:36:52,696 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 10:36:52,697 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,697 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 10:36:52,697 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]]} 10:36:52,698 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:36:52,698 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:36:52,698 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:36:52,698 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:36:52,698 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:36:52,698 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} 10:36:52,698 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:36:52,698 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:36:52,699 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:36:52,701 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-148242749] 10:36:52,702 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#711055261] 10:36:52,702 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-977196320] 10:36:52,704 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 10:36:52,704 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,705 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]]} 10:36:52,705 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:36:52,705 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 10:36:52,705 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:36:52,705 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:36:52,705 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 10:36:52,705 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} 10:36:52,705 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:36:52,705 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:36:52,706 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:36:52,706 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:36:52,706 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:36:52,706 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:36:52,707 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]]} 10:36:52,707 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:36:52,707 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 10:36:52,707 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 10:36:52,707 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 10:36:52,707 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 10:36:52,707 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 10:36:52,707 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} 10:36:52,708 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 10:36:52,708 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:36:52,708 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:36:52,708 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:36:52,708 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#1929374019] 10:36:52,709 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#1034646232] 10:36:52,709 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#128459932] 10:36:52,710 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 10:36:52,710 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,710 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 10:36:52,711 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 10:36:52,711 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} 10:36:52,711 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 10:36:52,712 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#-571237281] 10:36:52,712 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#1603946731] 10:36:52,712 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#-1070134211] 10:36:52,714 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,716 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-393854413] 10:36:52,717 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#2104406221] 10:36:52,717 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#-1378188598] 10:36:52,718 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 10:36:52,718 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,718 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 10:36:52,718 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 10:36:52,719 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]]} 10:36:52,719 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:36:52,719 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:36:52,719 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:36:52,719 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:36:52,719 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:36:52,719 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} 10:36:52,719 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:36:52,719 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 10:36:52,719 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 10:36:52,719 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 10:36:52,720 AM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 10:36:52,720 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#-1908606187] 10:36:52,720 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-2056911541] 10:36:52,721 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#-761881622] 10:36:52,724 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/27/2025 10:36:52.726] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2e055263 [INFO] [pekkoDeadLetter][06/27/2025 10:36:52.727] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:36:52,727 AM [test-pekko.actor.default-dispatcher-5] [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'. 10:36:52,729 AM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 10:36:52,730 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:36:52,730 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 10:36:52,732 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15575110612820603534/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 10:36:52,732 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 10:36:52,732 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:36:52,732 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 10:36:52,734 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:36:52,734 AM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 10:36:52,734 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@35019a2c 10:36:52,735 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]]} 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 10:36:52,735 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} 10:36:52,735 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 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 10:36:52,735 AM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 10:36:52,735 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:36:52,736 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:36:52,736 AM [test-pekko.actor.default-dispatcher-6] [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] 10:36:52,736 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 10:36:52,736 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 10:36:52,736 AM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 10:36:52,736 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d428912] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15575110612820603534/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685E7444-2BE26E7B.tmp 10:36:52,740 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 10:36:52,740 AM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 [WARN] [06/27/2025 10:36:52.740] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/27/2025 10:36:52.740] [test-pekko.actor.default-dispatcher-11] [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'. 10:36:52,743 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'. 10:36:52,743 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d428912] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15575110612820603534/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685E7444-2BE26E7B.v1 10:36:52,743 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d428912] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15575110612820603534/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685E7444-2BE26E7B.v1 10:36:52,743 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d428912] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15575110612820603534/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:36:52,743 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d428912] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-27T10:36:52.736259707Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15575110612820603534/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685E7444-2BE26E7B.v1, size=555, entryCompress=NONE, stateCompress=NONE} 10:36:52,743 AM [testCaptureSnapshotOnLastEntryInAppendEntries-%d428912] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 10:36:52,744 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 10:36:52,744 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-27T10:36:52.736259707Z 10:36:52,744 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 10:36:52,744 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 10:36:52,744 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 10:36:52,886 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15575110612820603534/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685E7444-2BE26E7B.v1 10:36:52,886 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15575110612820603534/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 10:36:52,886 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-27T10:36:52.736259707Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest15575110612820603534/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685E7444-2BE26E7B.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 10:36:52,888 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-1536950150] 10:36:52,899 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-309918202] 10:36:52,899 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-695021116] 10:36:52,899 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 10:36:52,899 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:36:52,899 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 10:36:52,901 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,902 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#201589369] 10:36:52,912 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#-281613111] 10:36:52,912 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#1050145114] 10:36:52,914 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 10:36:52,914 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,915 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 10:36:52,915 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 10:36:52,915 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#778790968] 10:36:52,926 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#797679755] 10:36:52,926 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#550281819] 10:36:52,927 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 10:36:52,928 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,928 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 10:36:52,929 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]]} 10:36:52,929 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:36:52,929 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:36:52,929 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:36:52,929 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:36:52,929 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:36:52,929 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} 10:36:52,929 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:36:52,929 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:36:52,929 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:36:52,929 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-314631376] 10:36:52,940 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#1637759106] 10:36:52,940 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#1401866319] 10:36:52,941 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 10:36:52,941 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,942 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 10:36:52,943 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]]} 10:36:52,943 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 10:36:52,943 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} 10:36:52,944 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:36:52,944 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 10:36:52,944 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]]} 10:36:52,944 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 10:36:52,944 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} 10:36:52,944 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 10:36:52,945 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-233145894] 10:36:52,955 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-2135170467] 10:36:52,955 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#219458791] 10:36:52,957 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,957 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#952223001] 10:36:52,967 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#582643124] 10:36:52,968 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#-1226486266] 10:36:52,969 AM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 10:36:52,969 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,970 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 10:36:52,970 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]]} 10:36:52,970 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 10:36:52,971 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} 10:36:52,971 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:36:52,971 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:36:52,971 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]]} 10:36:52,971 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 10:36:52,971 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} 10:36:52,972 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:36:52,972 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]]} 10:36:52,972 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 10:36:52,972 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} 10:36:52,972 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:36:52,973 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-1992385893] 10:36:52,983 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-636160392] 10:36:52,983 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#222795325] 10:36:52,985 AM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 10:36:52,985 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,985 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]]} 10:36:52,986 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:36:52,986 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 10:36:52,986 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 10:36:52,986 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:36:52,986 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 10:36:52,986 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} 10:36:52,986 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 10:36:52,986 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 10:36:52,986 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 10:36:52,986 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#-1280000036] 10:36:52,997 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#944003108] 10:36:52,997 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#1232290366] 10:36:52,998 AM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 10:36:52,998 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:52,999 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:36:53,0 AM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 10:36:53,0 AM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 10:36:53,1 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:36:53,1 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-742524357] 10:36:53,12 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#1049252281] 10:36:53,12 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-905037577] 10:36:53,14 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 10:36:53,15 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:53,15 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 10:36:53,15 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]]} 10:36:53,16 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:36:53,16 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 10:36:53,16 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 10:36:53,16 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 10:36:53,16 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 10:36:53,16 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} 10:36:53,16 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:36:53,16 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 10:36:53,16 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 10:36:53,16 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#2021297398] 10:36:53,27 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#1181416759] 10:36:53,27 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#-1460915694] 10:36:53,28 AM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 10:36:53,28 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:53,29 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 10:36:53,29 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]]} 10:36:53,29 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 10:36:53,29 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} 10:36:53,29 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:36:53,30 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#-1845304403] 10:36:53,40 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-937495906] 10:36:53,40 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-435895799] 10:36:53,41 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/27/2025 10:36:53.042] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@6db10e79 [INFO] [pekkoDeadLetter][06/27/2025 10:36:53.042] [test-pekko.actor.default-dispatcher-15] [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'. 10:36:53,42 AM [test-pekko.actor.default-dispatcher-15] [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'. 10:36:53,42 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 10:36:53,42 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 10:36:53,42 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 10:36:53,44 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14665654993000756942/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 10:36:53,44 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 10:36:53,44 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 10:36:53,44 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:36:53,48 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 10:36:53,48 AM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 10:36:53,48 AM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5fc09390 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 10:36:53,49 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 10:36:53,50 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:36:53,50 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:36:53,50 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 10:36:53,50 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] 10:36:53,50 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 10:36:53,50 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 10:36:53,50 AM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 10:36:53,50 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 10:36:53,50 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 [WARN] [06/27/2025 10:36:53.050] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 10:36:53,50 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d818869] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14665654993000756942/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685E7445-03023A69.tmp 10:36:53,50 AM [test-pekko.actor.default-dispatcher-15] [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'. [INFO] [pekkoDeadLetter][06/27/2025 10:36:53.050] [test-pekko.actor.default-dispatcher-14] [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'. 10:36:53,53 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d818869] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14665654993000756942/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685E7445-03023A69.v1 10:36:53,53 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d818869] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14665654993000756942/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685E7445-03023A69.v1 10:36:53,53 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d818869] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14665654993000756942/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:36:53,53 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d818869] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-27T10:36:53.050477673Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14665654993000756942/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685E7445-03023A69.v1, size=701, entryCompress=NONE, stateCompress=NONE} 10:36:53,53 AM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d818869] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 10:36:53,53 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 10:36:53,53 AM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-27T10:36:53.050477673Z 10:36:53,53 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 10:36:53,53 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 10:36:53,53 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 10:36:53,201 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14665654993000756942/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685E7445-03023A69.v1 10:36:53,201 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14665654993000756942/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 10:36:53,201 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-27T10:36:53.050477673Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14665654993000756942/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685E7445-03023A69.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 10:36:53,202 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#480199113] 10:36:53,213 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-1508988472] 10:36:53,213 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#1710371468] 10:36:53,214 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 10:36:53,214 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 10:36:53,214 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 10:36:53,217 AM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 10:36:53,217 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:53,218 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 10:36:53,219 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]]} 10:36:53,219 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 10:36:53,219 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} 10:36:53,220 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 10:36:53,220 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#-134568136] 10:36:53,230 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#-1208847135] 10:36:53,231 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#-773741191] 10:36:53,232 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 10:36:53,232 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:53,233 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 10:36:53,233 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 10:36:53,234 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 10:36:53,234 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 10:36:53,234 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 10:36:53,234 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#1646634805] 10:36:53,245 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#-363862266] 10:36:53,245 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#2107875883] 10:36:53,246 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 10:36:53,247 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:53,247 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 10:36:53,248 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]]} 10:36:53,248 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:36:53,248 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 10:36:53,248 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:36:53,248 AM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 10:36:53,248 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:36:53,248 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 10:36:53,248 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 10:36:53,248 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 10:36:53,248 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 10:36:53,249 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} 10:36:53,249 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 10:36:53,249 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 10:36:53,249 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:36:53,249 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:36:53,249 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:36:53,249 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:36:53,249 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:36:53,249 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:36:53,250 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 10:36:53,250 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 10:36:53,250 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#-970608690] 10:36:53,261 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#1004038171] 10:36:53,261 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#1114111690] 10:36:53,264 AM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 10:36:53,264 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:53,265 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 10:36:53,265 AM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 10:36:53,266 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#1092582590] 10:36:53,267 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-642147522] 10:36:53,267 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#-650512366] 10:36:53,269 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 10:36:53,269 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:53,270 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:36:53,270 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:36:53,270 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:36:53,270 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:36:53,270 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 10:36:53,271 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]]} 10:36:53,271 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 10:36:53,271 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:36:53,271 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:36:53,271 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 10:36:53,271 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 10:36:53,271 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 10:36:53,271 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} 10:36:53,271 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 10:36:53,271 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:36:53,272 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:36:53,272 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:36:53,272 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#-454159877] 10:36:53,272 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#-1251032096] 10:36:53,273 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#-1348411273] 10:36:53,274 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 10:36:53,274 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:53,274 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 10:36:53,275 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]]} 10:36:53,275 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 10:36:53,275 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} 10:36:53,275 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 10:36:53,276 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 10:36:53,276 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]]} 10:36:53,276 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 10:36:53,276 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} 10:36:53,277 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 10:36:53,277 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 10:36:53,277 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]]} 10:36:53,277 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 10:36:53,278 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} 10:36:53,278 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 10:36:53,278 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#104565362] 10:36:53,278 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#-1224776508] 10:36:53,278 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#-1708098162] 10:36:53,280 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 10:36:53,280 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:53,480 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:36:53,480 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.134:17355, Removed) 10:36:53,480 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 10:36:53,480 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 10:36:53,480 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 10:36:53,480 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:36:53,481 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#623825965] 10:36:53,481 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#-660895739] 10:36:53,482 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#-1316097085] 10:36:53,484 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:53,484 AM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 10:36:53,685 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:36:53,685 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#-873095487] 10:36:53,696 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#-3576505] 10:36:53,697 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#-1190184282] 10:36:53,700 AM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 10:36:53,700 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:53,702 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 10:36:53,703 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 10:36:53,704 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#-446437114] 10:36:53,714 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#123953227] 10:36:53,714 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#-2009669549] 10:36:53,717 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 10:36:53,717 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:53,719 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]]} 10:36:53,719 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:36:53,719 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 10:36:53,719 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 10:36:53,719 AM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 10:36:53,719 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 10:36:53,719 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 10:36:53,720 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} 10:36:53,720 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 10:36:53,720 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 10:36:53,720 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:36:53,720 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:36:53,720 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 10:36:53,720 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 10:36:53,720 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 10:36:53,720 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 10:36:53,721 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 10:36:53,721 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 10:36:53,721 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 10:36:53,721 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 10:36:53,722 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#226494920] 10:36:53,732 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-1493786451] 10:36:53,733 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-428045946] 10:36:53,735 AM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 10:36:53,735 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:53,736 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 10:36:53,737 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 10:36:53,737 AM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:36:53,737 AM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 10:36:53,738 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]]} 10:36:53,738 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} 10:36:53,739 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#-699692353] 10:36:53,750 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#943483699] 10:36:53,750 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#1807841060] 10:36:53,752 AM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 10:36:53,752 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:53,753 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 10:36:53,753 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]]} 10:36:53,754 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 10:36:53,754 AM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 10:36:53,754 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 10:36:53,754 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#-1811028248] 10:36:53,765 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#737200576] 10:36:53,765 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#-1849339971] 10:36:53,767 AM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/27/2025 10:36:53.768] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@531b87ee [INFO] [pekkoDeadLetter][06/27/2025 10:36:53.768] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:36:53,768 AM [test-pekko.actor.default-dispatcher-14] [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'. 10:36:53,769 AM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 10:36:53,769 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:36:53,769 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:36:53,770 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8756757400488610177/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 10:36:53,770 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 10:36:53,770 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:36:53,770 AM [test-pekko.actor.default-dispatcher-14] [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 10:36:53,775 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:36:53,775 AM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 10:36:53,775 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4a2eebf8 10:36:53,775 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]]} 10:36:53,775 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 10:36:53,775 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:36:53,775 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 10:36:53,775 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 10:36:53,775 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 10:36:53,775 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 10:36:53,776 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} 10:36:53,776 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 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 10:36:53,776 AM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 10:36:53,777 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 10:36:53,777 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 10:36:53,777 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 10:36:53,777 AM [test-pekko.actor.default-dispatcher-15] [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] 10:36:53,777 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 10:36:53,777 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 10:36:53,777 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:36:53,777 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 10:36:53,777 AM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 10:36:53,777 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d351064] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8756757400488610177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685E7445-2E559430.tmp [WARN] [06/27/2025 10:36:53.777] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/27/2025 10:36:53.777] [test-pekko.actor.default-dispatcher-15] [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'. 10:36:53,778 AM [test-pekko.actor.default-dispatcher-15] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 10:36:53,779 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d351064] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8756757400488610177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685E7445-2E559430.v1 10:36:53,779 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d351064] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8756757400488610177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685E7445-2E559430.v1 10:36:53,780 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d351064] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8756757400488610177/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:36:53,780 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d351064] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T10:36:53.777360432Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8756757400488610177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685E7445-2E559430.v1, size=573, entryCompress=NONE, stateCompress=NONE} 10:36:53,780 AM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d351064] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 10:36:53,780 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 10:36:53,780 AM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-27T10:36:53.777360432Z 10:36:53,780 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 10:36:53,780 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 10:36:53,780 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 10:36:53,928 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8756757400488610177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685E7445-2E559430.v1 10:36:53,928 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8756757400488610177/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:36:53,928 AM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T10:36:53.777360432Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8756757400488610177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685E7445-2E559430.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 10:36:53,931 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:36:53,942 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:36:53,942 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/27/2025 10:36:53.943] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@8b0ba12 [INFO] [pekkoDeadLetter][06/27/2025 10:36:53.944] [test-pekko.actor.default-dispatcher-14] [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'. 10:36:53,944 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. [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'. 10:36:53,944 AM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 10:36:53,944 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:36:53,944 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 10:36:53,946 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:36:53,946 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8756757400488610177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685E7445-2E559430.v1 10:36:53,946 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8756757400488610177/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 10:36:53,946 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T10:36:53.777360432Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8756757400488610177/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685E7445-2E559430.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 10:36:53,946 AM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 10:36:53,947 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-27T10:36:53.777360432Z 10:36:53,947 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:36:53,947 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 125.4 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 10:36:53,947 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 10:36:53,947 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 10:36:53,947 AM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 368.2 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 10:36:53,947 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 10:36:53,947 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 10:36:53,947 AM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3a59e20e 10:36:53,948 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#1161433892] 10:36:53,958 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#1441468145] 10:36:53,958 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-265008292] 10:36:53,959 AM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 10:36:53,959 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:36:53,959 AM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 10:36:53,962 AM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 10:36:53,962 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:54,263 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:36:54,394 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:36:54,394 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 10:36:54,644 AM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 10:36:54,844 AM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 10:36:54,844 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#-90777197] 10:36:54,856 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#1615187969] 10:36:54,856 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#-1428069781] 10:36:54,859 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:54,860 AM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:36:54,860 AM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 10:36:54,860 AM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 10:36:54,861 AM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 10:36:54,861 AM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:36:54,861 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#1942553790] 10:36:54,872 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-579741877] 10:36:54,872 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#-530410166] 10:36:54,875 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:54,877 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 10:36:54,878 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 10:36:54,879 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#229637770] 10:36:54,889 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#-217059343] 10:36:54,889 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-1420426333] 10:36:54,892 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:54,893 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]]} 10:36:54,893 AM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 10:36:54,893 AM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 10:36:54,893 AM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 10:36:54,893 AM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 10:36:54,894 AM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 10:36:54,894 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} 10:36:54,894 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 10:36:54,894 AM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 10:36:54,894 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 10:36:54,894 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:36:54,894 AM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 10:36:54,894 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#521921852] 10:36:54,905 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#-1608707322] 10:36:54,905 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-286664950] 10:36:54,907 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:54,908 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 10:36:54,908 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 10:36:54,908 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#-146498350] 10:36:54,919 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-1461776150] 10:36:54,919 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#800285670] 10:36:54,921 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:54,922 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 10:36:54,922 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 10:36:54,922 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} 10:36:54,922 AM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 10:36:54,923 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 10:36:54,923 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:36:54,923 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 10:36:54,923 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. 10:36:54,923 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 10:36:54,924 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 10:36:54,924 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 10:36:54,925 AM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 10:36:54,925 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#-258194643] 10:36:54,935 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#2773133] 10:36:54,935 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#-400967879] 10:36:54,938 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:54,938 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:36:54,938 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 10:36:54,938 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:54,939 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 10:36:54,939 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 10:36:54,939 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 10:36:54,939 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 10:36:54,939 AM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 10:36:54,939 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#-1995379392] 10:36:54,949 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#546404676] 10:36:54,949 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#384334001] 10:36:54,952 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:54,953 AM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 10:36:54,954 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#1143268074] 10:36:54,965 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-1552396716] 10:36:54,965 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#1724284544] 10:36:54,969 AM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 10:36:54,971 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 10:36:54,971 AM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 10:36:54,972 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#583330632] 10:36:54,973 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#-772726524] 10:36:54,973 AM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#282522285] [INFO] [06/27/2025 10:36:54.974] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 10:36:54,974 AM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/27/2025 10:36:54.975] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.134:17355) [INFO] [pekkoDeadLetter][06/27/2025 10:36:54.975] [test-pekko.actor.default-dispatcher-11] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-337907695] 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'. 10:36:54,975 AM [test-pekko.actor.default-dispatcher-11] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-337907695] 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] [06/27/2025 10:36:54.975] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.134:17355] - Exiting completed [INFO] [06/27/2025 10:36:54.975] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.134:17355] - Shutting down... [INFO] [06/27/2025 10:36:54.975] [test-pekko.actor.internal-dispatcher-10] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.134:17355] - Successfully shut down 10:36:54,976 AM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.134:17355] - Exiting completed 10:36:54,976 AM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.134:17355] - Shutting down... 10:36:54,976 AM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.134:17355] - Successfully shut down [INFO] [06/27/2025 10:36:54.978] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.134:17355/system/remoting-terminator] Shutting down remote daemon. 10:36:54,978 AM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [06/27/2025 10:36:54.978] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.134:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 10:36:54,978 AM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/27/2025 10:36:54.979] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.134:17355/system/remoting-terminator] Remoting shut down. 10:36:54,980 AM [test-pekko.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [06/27/2025 10:36:54.980] [test-pekko.actor.internal-dispatcher-10] [EventStream] shutting down: StandardOutLogger