[DEBUG] [06/27/2025 18:14:01.279] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 06:14:01,280 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/27/2025 18:14:01.280] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/27/2025 18:14:01.280] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [06/27/2025 18:14:01.291] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.59:17355] with UID [1138022123107437633] 06:14:01,294 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.59:17355] with UID [1138022123107437633] [INFO] [06/27/2025 18:14:01.292] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59:17355] - Starting up, Pekko version [1.0.3] ... 06:14:01,294 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/27/2025 18:14:01.295] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/27/2025 18:14:01.295] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59:17355] - Started up successfully 06:14:01,295 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 06:14:01,295 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - Started up successfully 06:14:01,296 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 06:14:01,296 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [INFO] [06/27/2025 18:14:01.296] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59: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 18:14:01.296] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 06:14:01,308 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 06:14:01,308 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,390 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:14:01,391 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:14:01,391 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:14:01,392 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:14:01,393 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 06:14:01,393 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 06:14:01,393 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:14:01,394 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:14:01,396 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 06:14:01,396 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#1217945623] 06:14:01,407 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#1748924880] 06:14:01,407 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#-1557340483] 06:14:01,411 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 06:14:01,411 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,413 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 06:14:01,414 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 06:14:01,414 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,414 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:14:01,415 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#1309274933] 06:14:01,425 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#-43921304] 06:14:01,425 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#209847606] 06:14:01,427 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 06:14:01,428 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,428 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:14:01,428 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:14:01,428 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:14:01,429 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:14:01,429 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 06:14:01,429 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:14:01,429 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:14:01,430 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:14:01,431 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:14:01,432 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:14:01,432 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:14:01,432 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,432 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 06:14:01,432 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-314759312] 06:14:01,443 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#2084687026] 06:14:01,443 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#498110892] 06:14:01,447 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,448 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 06:14:01,449 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#-2091722140] 06:14:01,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#1852199979] 06:14:01,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#933311714] 06:14:01,463 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:14:01,463 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,464 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:14:01,465 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:14:01,465 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:14:01,465 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:14:01,466 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:14:01,466 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:14:01,466 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:14:01,466 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,467 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:14:01,467 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:14:01,468 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:14:01,469 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-1949912211] 06:14:01,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#-393354424] 06:14:01,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#270284286] 06:14:01,483 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 06:14:01,484 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,485 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 06:14:01,485 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:14:01,486 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:14:01,486 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:14:01,486 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:14:01,486 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 06:14:01,486 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,486 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:14:01,486 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:14:01,487 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:14:01,487 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:14:01,487 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:14:01,487 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:14:01,488 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 06:14:01,488 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:14:01,489 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:14:01,489 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:14:01,489 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 06:14:01,489 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:14:01,489 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:14:01,489 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,489 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 06:14:01,489 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:14:01,489 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:14:01,489 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:14:01,490 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#-1307435391] 06:14:01,501 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#1863551577] 06:14:01,501 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-894968466] 06:14:01,503 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 06:14:01,503 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,504 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 06:14:01,504 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:14:01,505 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,505 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 06:14:01,505 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#1277786950] 06:14:01,516 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-1659286027] 06:14:01,516 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#1408345972] 06:14:01,519 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,523 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-657892578] 06:14:01,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#612646580] 06:14:01,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#2145002878] 06:14:01,536 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 06:14:01,536 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,536 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:14:01,537 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:14:01,537 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:14:01,537 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:14:01,538 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:14:01,538 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:14:01,538 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:14:01,538 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:14:01,538 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,538 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:14:01,538 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 06:14:01,539 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 06:14:01,539 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 06:14:01,539 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 06:14:01,539 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#244287745] 06:14:01,550 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#125138801] 06:14:01,550 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#1675695772] 06:14:01,551 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/27/2025 18:14:01.553] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@376765dc [INFO] [pekkoDeadLetter][06/27/2025 18:14:01.553] [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'. 06:14:01,554 PM [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'. 06:14:01,555 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:14:01,556 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:14:01,556 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:14:01,558 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6547207411832491959/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 06:14:01,558 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:14:01,558 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:14:01,558 PM [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 06:14:01,563 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:14:01,563 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 06:14:01,563 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@48885b94 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 06:14:01,564 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 06:14:01,565 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:14:01,565 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:14:01,565 PM [test-pekko.actor.default-dispatcher-11] [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] 06:14:01,565 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 06:14:01,565 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 06:14:01,565 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 06:14:01,565 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 06:14:01,565 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 06:14:01,565 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d738144] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6547207411832491959/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EDF69-21B4F282.tmp 06:14:01,565 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [06/27/2025 18:14:01.566] [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 18:14:01.565] [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'. 06:14:01,571 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d738144] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6547207411832491959/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EDF69-21B4F282.v1 06:14:01,571 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d738144] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6547207411832491959/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EDF69-21B4F282.v1 06:14:01,572 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d738144] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6547207411832491959/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:14:01,572 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d738144] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-27T18:14:01.565506690Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6547207411832491959/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EDF69-21B4F282.v1, size=555, entryCompress=NONE, stateCompress=NONE} 06:14:01,572 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d738144] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:14:01,572 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 06:14:01,572 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-27T18:14:01.565506690Z 06:14:01,572 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 06:14:01,572 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 06:14:01,572 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 06:14:01,716 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6547207411832491959/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EDF69-21B4F282.v1 06:14:01,716 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6547207411832491959/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:14:01,716 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-27T18:14:01.565506690Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6547207411832491959/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EDF69-21B4F282.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 06:14:01,718 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#1544642433] 06:14:01,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-1652207195] 06:14:01,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#2039341712] 06:14:01,729 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 06:14:01,729 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:14:01,730 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:14:01,732 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,733 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#-1153048171] 06:14:01,744 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#-999019347] 06:14:01,744 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#360973527] 06:14:01,746 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 06:14:01,746 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,749 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 06:14:01,750 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:14:01,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#-860578553] 06:14:01,761 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#91662205] 06:14:01,762 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-843486644] 06:14:01,764 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 06:14:01,764 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,765 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:14:01,765 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:14:01,766 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:14:01,766 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:14:01,766 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:14:01,766 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:14:01,766 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:14:01,766 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,766 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:14:01,766 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:14:01,766 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:14:01,767 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-974699888] 06:14:01,778 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#-1936136348] 06:14:01,778 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#809410566] 06:14:01,781 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 06:14:01,781 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,782 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:14:01,783 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:14:01,783 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:14:01,784 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,785 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:14:01,785 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 06:14:01,786 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:14:01,786 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 06:14:01,787 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,787 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:14:01,787 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-109768552] 06:14:01,788 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-1449927410] 06:14:01,788 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#146518341] 06:14:01,791 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,791 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#679753491] 06:14:01,791 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#1273413553] 06:14:01,792 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#886210274] 06:14:01,793 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 06:14:01,793 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,794 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:14:01,794 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:14:01,795 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:14:01,795 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,795 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:14:01,795 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:14:01,796 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:14:01,796 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:14:01,796 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,796 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:14:01,797 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:14:01,797 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:14:01,797 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,797 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:14:01,798 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-183433097] 06:14:01,798 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#890260148] 06:14:01,798 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#-1826715048] 06:14:01,800 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 06:14:01,800 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,801 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 06:14:01,801 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:14:01,802 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 06:14:01,802 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:14:01,802 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:14:01,802 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:14:01,802 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,802 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:14:01,802 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:14:01,802 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 06:14:01,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#417490106] 06:14:01,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#-211916728] 06:14:01,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-102533619] 06:14:01,805 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 06:14:01,805 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,807 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:14:01,808 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 06:14:01,808 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 06:14:01,809 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 06:14:01,809 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#1124234356] 06:14:01,810 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#-71844760] 06:14:01,810 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#-1158118127] 06:14:01,813 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 06:14:01,813 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,814 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:14:01,814 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:14:01,815 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:14:01,815 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:14:01,815 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:14:01,815 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:14:01,815 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:14:01,815 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,815 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:14:01,815 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:14:01,816 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:14:01,816 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#-252067616] 06:14:01,817 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#-346453766] 06:14:01,817 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#-915239256] 06:14:01,819 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:14:01,819 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,819 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:14:01,820 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:14:01,820 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:14:01,820 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,820 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:14:01,820 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#2126740823] 06:14:01,821 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#1353367807] 06:14:01,821 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-628045806] 06:14:01,822 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/27/2025 18:14:01.823] [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@72495a9c [INFO] [pekkoDeadLetter][06/27/2025 18:14:01.823] [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'. 06:14:01,823 PM [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'. 06:14:01,823 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 06:14:01,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:14:01,824 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:14:01,825 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1862209534044865745/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 06:14:01,825 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 06:14:01,825 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:14:01,825 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:14:01,829 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:14:01,829 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 06:14:01,829 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@4118357e 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [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]]} 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [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} 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 06:14:01,830 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 06:14:01,831 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:14:01,831 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:14:01,831 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:14:01,831 PM [test-pekko.actor.default-dispatcher-12] [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] 06:14:01,831 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 06:14:01,831 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 06:14:01,831 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 06:14:01,831 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 06:14:01,831 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 06:14:01,831 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d112265] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1862209534044865745/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EDF69-318C19BB.tmp [WARN] [06/27/2025 18:14:01.831] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/27/2025 18:14:01.831] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:14:01,831 PM [test-pekko.actor.default-dispatcher-6] [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'. 06:14:01,833 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d112265] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1862209534044865745/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EDF69-318C19BB.v1 06:14:01,833 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d112265] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1862209534044865745/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EDF69-318C19BB.v1 06:14:01,834 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d112265] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1862209534044865745/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:14:01,834 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d112265] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-27T18:14:01.831265211Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1862209534044865745/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EDF69-318C19BB.v1, size=701, entryCompress=NONE, stateCompress=NONE} 06:14:01,834 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d112265] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 06:14:01,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 06:14:01,834 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-27T18:14:01.831265211Z 06:14:01,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 06:14:01,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 06:14:01,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 06:14:01,982 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1862209534044865745/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EDF69-318C19BB.v1 06:14:01,982 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1862209534044865745/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:14:01,982 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-27T18:14:01.831265211Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest1862209534044865745/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EDF69-318C19BB.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 06:14:01,983 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#338106356] 06:14:01,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#344527455] 06:14:01,994 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#1615210558] 06:14:01,994 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 06:14:01,994 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:14:01,994 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:14:01,997 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 06:14:01,997 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:01,997 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:14:01,998 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 06:14:01,998 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 06:14:01,998 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:01,998 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 06:14:01,998 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#198186653] 06:14:02,9 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#1343826302] 06:14:02,9 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#940267678] 06:14:02,11 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 06:14:02,11 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:02,11 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 06:14:02,12 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 06:14:02,12 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 06:14:02,12 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 06:14:02,12 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 06:14:02,12 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#-1202690536] 06:14:02,23 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#1034123671] 06:14:02,23 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#-2084482002] 06:14:02,24 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 06:14:02,24 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:02,25 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 06:14:02,25 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 06:14:02,25 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:14:02,25 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:14:02,25 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:14:02,25 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 06:14:02,25 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:14:02,25 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 06:14:02,25 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:14:02,25 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 06:14:02,25 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 06:14:02,25 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:02,25 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:14:02,25 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 06:14:02,25 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:14:02,25 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:14:02,26 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:14:02,26 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:14:02,26 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:14:02,26 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:14:02,26 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:14:02,26 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:14:02,26 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#1729875898] 06:14:02,37 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#-666152583] 06:14:02,37 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#-2096096301] 06:14:02,39 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 06:14:02,39 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:02,40 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 06:14:02,40 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 06:14:02,41 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#1885248951] 06:14:02,52 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-1149022450] 06:14:02,52 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#739762051] 06:14:02,54 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 06:14:02,54 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:02,55 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:14:02,55 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:14:02,55 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:14:02,55 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:14:02,56 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 06:14:02,56 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 06:14:02,57 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 06:14:02,57 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:14:02,57 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:14:02,57 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 06:14:02,57 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:14:02,57 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:14:02,57 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:02,57 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 06:14:02,57 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:14:02,58 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:14:02,58 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:14:02,58 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#-394672967] 06:14:02,69 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#686819019] 06:14:02,69 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#1075773390] 06:14:02,71 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 06:14:02,71 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:02,71 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 06:14:02,72 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:14:02,72 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 06:14:02,72 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:02,72 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:14:02,72 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:14:02,73 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:14:02,73 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 06:14:02,74 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:02,74 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:14:02,74 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:14:02,75 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 06:14:02,75 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 06:14:02,75 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:02,76 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:14:02,76 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#-948466425] 06:14:02,77 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#-61268112] 06:14:02,77 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#1001220444] 06:14:02,79 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 06:14:02,79 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:02,280 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:14:02,280 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.59:17355, Removed) 06:14:02,280 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 06:14:02,280 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:14:02,280 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:14:02,280 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:14:02,280 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-223618224] 06:14:02,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#-404699199] 06:14:02,281 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#-170214881] 06:14:02,284 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:02,284 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 06:14:02,486 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:14:02,486 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#-1953486427] 06:14:02,497 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#700318490] 06:14:02,497 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#-323066276] 06:14:02,500 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 06:14:02,500 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:02,502 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 06:14:02,502 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 06:14:02,503 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#1894881802] 06:14:02,514 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#1489012950] 06:14:02,514 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#2117222725] 06:14:02,516 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 06:14:02,516 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:02,517 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 06:14:02,517 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:14:02,517 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 06:14:02,517 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:14:02,517 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:14:02,517 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 06:14:02,517 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:14:02,518 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:02,518 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 06:14:02,518 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:14:02,518 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:14:02,518 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:14:02,518 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:14:02,518 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:14:02,518 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:14:02,518 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:14:02,519 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:14:02,519 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:14:02,519 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 06:14:02,519 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 06:14:02,520 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#-616965069] 06:14:02,530 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-763364035] 06:14:02,530 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-1015295695] 06:14:02,532 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 06:14:02,532 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:02,533 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 06:14:02,533 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:14:02,533 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:14:02,533 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:14:02,534 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 06:14:02,535 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:02,535 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#1361116284] 06:14:02,546 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#1032868230] 06:14:02,546 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#1373598281] 06:14:02,548 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 06:14:02,548 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:02,549 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 06:14:02,550 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 06:14:02,550 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:14:02,550 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:14:02,551 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:14:02,551 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#-574111998] 06:14:02,562 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#1517889958] 06:14:02,562 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#1629792062] 06:14:02,563 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 06:14:02,564 PM [test-pekko.actor.default-dispatcher-15] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [06/27/2025 18:14:02.565] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@56a17ee2 06:14:02,565 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 [INFO] [pekkoDeadLetter][06/27/2025 18:14:02.564] [test-pekko.actor.default-dispatcher-15] [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'. 06:14:02,565 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:14:02,565 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:14:02,566 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14775623623405634392/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 06:14:02,567 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 06:14:02,567 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:14:02,567 PM [test-pekko.actor.default-dispatcher-6] [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 06:14:02,571 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:14:02,571 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 06:14:02,571 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2a7d3a7 06:14:02,571 PM [test-pekko.actor.default-dispatcher-6] [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]]} 06:14:02,571 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 06:14:02,571 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:14:02,571 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 06:14:02,571 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [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} 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 06:14:02,572 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 06:14:02,573 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:14:02,573 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:14:02,573 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:14:02,573 PM [test-pekko.actor.default-dispatcher-12] [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] 06:14:02,573 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 06:14:02,573 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 06:14:02,573 PM [test-pekko.actor.default-dispatcher-12] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:14:02,573 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 06:14:02,573 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 06:14:02,573 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d638673] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14775623623405634392/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EDF6A-222BF7E3.tmp [WARN] [06/27/2025 18:14:02.573] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 06:14:02,573 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][06/27/2025 18:14:02.573] [test-pekko.actor.default-dispatcher-12] [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'. 06:14:02,575 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d638673] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14775623623405634392/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EDF6A-222BF7E3.v1 06:14:02,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d638673] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14775623623405634392/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EDF6A-222BF7E3.v1 06:14:02,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d638673] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14775623623405634392/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:14:02,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d638673] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T18:14:02.573306851Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14775623623405634392/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EDF6A-222BF7E3.v1, size=573, entryCompress=NONE, stateCompress=NONE} 06:14:02,576 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d638673] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 06:14:02,576 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 06:14:02,576 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-27T18:14:02.573306851Z 06:14:02,576 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 06:14:02,576 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 06:14:02,576 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 06:14:02,723 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14775623623405634392/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EDF6A-222BF7E3.v1 06:14:02,724 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14775623623405634392/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:14:02,724 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T18:14:02.573306851Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14775623623405634392/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EDF6A-222BF7E3.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:14:02,725 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:14:02,736 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:14:02,736 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/27/2025 18:14:02.838] [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@7c8eaaa5 [INFO] [pekkoDeadLetter][06/27/2025 18:14:02.838] [test-pekko.actor.default-dispatcher-15] [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'. 06:14:02,839 PM [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'. 06:14:02,839 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 06:14:02,839 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:14:02,839 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:14:02,841 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:14:02,841 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14775623623405634392/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EDF6A-222BF7E3.v1 06:14:02,841 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14775623623405634392/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:14:02,841 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T18:14:02.573306851Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14775623623405634392/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EDF6A-222BF7E3.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:14:02,841 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:14:02,842 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-27T18:14:02.573306851Z 06:14:02,842 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:14:02,842 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 548.2 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 06:14:02,843 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 06:14:02,843 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 06:14:02,843 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 980.8 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 06:14:02,843 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 06:14:02,843 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:14:02,843 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@c44d98b 06:14:02,843 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#626873082] 06:14:02,854 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#-739912220] 06:14:02,854 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-1458174516] 06:14:02,855 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:14:02,855 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:14:02,855 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:14:02,858 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 06:14:02,858 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:03,158 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:14:03,289 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:14:03,289 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 06:14:03,539 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 06:14:03,739 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 06:14:03,740 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#1557603454] 06:14:03,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#2107884193] 06:14:03,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#2074714693] 06:14:03,754 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:03,754 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:14:03,754 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 06:14:03,754 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:14:03,755 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:14:03,755 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:14:03,755 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-609909082] 06:14:03,766 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-504878903] 06:14:03,766 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#-166535566] 06:14:03,768 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:03,770 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 06:14:03,771 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 06:14:03,771 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#-2028821414] 06:14:03,782 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#-591968571] 06:14:03,782 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-1123138305] 06:14:03,784 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:03,786 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 06:14:03,786 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:14:03,786 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 06:14:03,786 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 06:14:03,786 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:14:03,786 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 06:14:03,787 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:03,787 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 06:14:03,787 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 06:14:03,787 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:14:03,787 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:14:03,787 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 06:14:03,788 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-904355943] 06:14:03,798 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#-1598874133] 06:14:03,799 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#121543636] 06:14:03,801 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:03,803 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 06:14:03,803 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 06:14:03,804 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#-30398428] 06:14:03,814 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-446521349] 06:14:03,815 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#936433954] 06:14:03,816 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:03,816 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 06:14:03,817 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 06:14:03,817 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:14:03,817 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 06:14:03,818 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 06:14:03,819 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 06:14:03,819 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 06:14:03,819 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 06:14:03,819 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 06:14:03,819 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 06:14:03,820 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 06:14:03,820 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 06:14:03,821 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#-838923156] 06:14:03,831 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#1791565820] 06:14:03,832 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#-1144787480] 06:14:03,833 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:03,833 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:14:03,834 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:14:03,834 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:03,834 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 06:14:03,834 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:14:03,834 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:14:03,834 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:14:03,834 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:14:03,834 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#-1746862021] 06:14:03,845 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#13079121] 06:14:03,845 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#1057016007] 06:14:03,848 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:03,849 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 06:14:03,849 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#-2113761518] 06:14:03,860 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-2003770684] 06:14:03,860 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#-510931625] 06:14:03,863 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:14:03,864 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 06:14:03,864 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:14:03,864 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#-1440683739] 06:14:03,875 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#1750780659] 06:14:03,876 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#613103844] 06:14:03,877 PM [test-pekko.actor.default-dispatcher-11] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [06/27/2025 18:14:03.876] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/27/2025 18:14:03.877] [test-pekko.actor.default-dispatcher-6] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.59:17355) 06:14:03,878 PM [test-pekko.actor.default-dispatcher-11] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#773013480] 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] [pekkoDeadLetter][06/27/2025 18:14:03.877] [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#773013480] 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'. 06:14:03,878 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - Exiting completed 06:14:03,878 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - Shutting down... 06:14:03,879 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.59:17355] - Successfully shut down [INFO] [06/27/2025 18:14:03.878] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59:17355] - Exiting completed [INFO] [06/27/2025 18:14:03.878] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59:17355] - Shutting down... [INFO] [06/27/2025 18:14:03.878] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.59:17355] - Successfully shut down 06:14:03,880 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [06/27/2025 18:14:03.880] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.59:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [06/27/2025 18:14:03.880] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.59:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 06:14:03,881 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 06:14:03,882 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [06/27/2025 18:14:03.882] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.59:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [06/27/2025 18:14:03.882] [test-pekko.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger