[DEBUG] [06/27/2025 18:36:58.254] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 06:36:58,254 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/27/2025 18:36:58.254] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/27/2025 18:36:58.254] [main] [EventStream(pekko://test)] Default Loggers started 06:36:58,271 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.251:17355] with UID [7703326820764658373] [INFO] [06/27/2025 18:36:58.270] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.251:17355] with UID [7703326820764658373] [INFO] [06/27/2025 18:36:58.271] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.251:17355] - Starting up, Pekko version [1.0.3] ... 06:36:58,271 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.251:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/27/2025 18:36:58.273] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.251:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 06:36:58,273 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.251:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/27/2025 18:36:58.273] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.251:17355] - Started up successfully 06:36:58,273 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.251:17355] - Started up successfully [INFO] [06/27/2025 18:36:58.273] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.251: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:36:58.273] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.251:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 06:36:58,274 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.251:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 06:36:58,274 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.251:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 06:36:58,286 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 06:36:58,286 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,372 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:36:58,372 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:36:58,372 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:36:58,373 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:36:58,374 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:36:58,374 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 06:36:58,374 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:36:58,374 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:36:58,377 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 06:36:58,378 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-421070740] 06:36:58,389 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-558424703] 06:36:58,389 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#-1895898962] 06:36:58,392 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 06:36:58,392 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,394 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:36:58,394 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:36:58,395 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:36:58,395 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:36:58,396 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#200920763] 06:36:58,406 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#1188460171] 06:36:58,407 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#602780562] 06:36:58,409 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 06:36:58,410 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,410 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:36:58,410 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:36:58,411 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:36:58,411 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:36:58,412 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:36:58,412 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 06:36:58,412 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 06:36:58,413 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:36:58,414 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:36:58,414 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:36:58,415 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:36:58,415 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:36:58,415 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 06:36:58,415 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#1882577825] 06:36:58,426 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#1403120235] 06:36:58,426 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-225178344] 06:36:58,428 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,429 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:36:58,431 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#-456180144] 06:36:58,441 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#696404405] 06:36:58,441 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#1196187185] 06:36:58,444 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:36:58,444 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,444 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:36:58,445 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:36:58,446 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:36:58,446 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:36:58,446 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:36:58,446 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:36:58,446 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:36:58,447 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:36:58,447 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:36:58,447 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:36:58,448 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:36:58,450 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#-1773619858] 06:36:58,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#703294461] 06:36:58,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-2061609137] 06:36:58,463 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 06:36:58,463 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,464 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:36:58,465 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:36:58,465 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:36:58,465 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:36:58,465 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:36:58,465 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 06:36:58,465 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:36:58,465 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:36:58,465 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:36:58,466 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:36:58,466 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:36:58,466 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:36:58,466 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:36:58,467 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:36:58,467 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:36:58,467 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 06:36:58,467 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 06:36:58,467 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 06:36:58,467 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:36:58,468 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:36:58,468 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:36:58,468 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 06:36:58,468 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:36:58,468 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:36:58,468 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:36:58,469 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#1264908989] 06:36:58,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-475767221] 06:36:58,480 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-767398615] 06:36:58,483 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 06:36:58,483 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,484 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:36:58,485 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:36:58,485 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:36:58,485 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 06:36:58,486 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#758374546] 06:36:58,497 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#686391346] 06:36:58,497 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#1373181399] 06:36:58,498 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,502 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#357787526] 06:36:58,513 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#1130100290] 06:36:58,513 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#1534661809] 06:36:58,514 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 06:36:58,515 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,515 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:36:58,515 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:36:58,516 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:36:58,516 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:36:58,516 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:36:58,516 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:36:58,516 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:36:58,516 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:36:58,516 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:36:58,516 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:36:58,516 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 06:36:58,516 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 06:36:58,516 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 06:36:58,517 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 06:36:58,517 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#-494903941] 06:36:58,527 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-1646491922] 06:36:58,528 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#-1021838538] 06:36:58,530 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/27/2025 18:36:58.532] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@31938875 [INFO] [pekkoDeadLetter][06/27/2025 18:36:58.533] [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:36:58,533 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:36:58,534 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 06:36:58,534 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:36:58,534 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 06:36:58,538 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3253082661333538083/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 06:36:58,538 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 06:36:58,538 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:36:58,538 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:36:58,542 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:36:58,542 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 06:36:58,542 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7eac3b9 06:36:58,542 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 06:36:58,543 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 06:36:58,543 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:36:58,543 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:36:58,543 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:36:58,544 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 06:36:58,544 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 06:36:58,544 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 06:36:58,544 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:36:58,544 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 06:36:58,544 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d420584] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3253082661333538083/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EE4CA-206F121E.tmp [WARN] [06/27/2025 18:36:58.544] [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:36:58.544] [test-pekko.actor.default-dispatcher-6] [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:36:58,544 PM [test-pekko.actor.default-dispatcher-5] [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'. 06:36:58,547 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d420584] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3253082661333538083/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EE4CA-206F121E.v1 06:36:58,548 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d420584] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3253082661333538083/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EE4CA-206F121E.v1 06:36:58,548 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d420584] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3253082661333538083/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:36:58,548 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d420584] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-27T18:36:58.544150046Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3253082661333538083/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EE4CA-206F121E.v1, size=555, entryCompress=NONE, stateCompress=NONE} 06:36:58,548 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d420584] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 06:36:58,548 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 06:36:58,548 PM [test-pekko.actor.default-dispatcher-15] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-27T18:36:58.544150046Z 06:36:58,548 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 06:36:58,548 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 06:36:58,548 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 06:36:58,695 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3253082661333538083/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EE4CA-206F121E.v1 06:36:58,695 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3253082661333538083/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 06:36:58,695 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-27T18:36:58.544150046Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3253082661333538083/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EE4CA-206F121E.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 06:36:58,697 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-523959499] 06:36:58,708 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-560401149] 06:36:58,708 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#159461991] 06:36:58,709 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 06:36:58,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:36:58,709 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 06:36:58,712 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,714 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#1313907619] 06:36:58,725 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#1048742794] 06:36:58,725 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#-1897186545] 06:36:58,726 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 06:36:58,726 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,728 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:36:58,728 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:36:58,729 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#1756179686] 06:36:58,740 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#-1706574249] 06:36:58,740 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-1924877967] 06:36:58,741 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 06:36:58,742 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,742 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:36:58,743 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:36:58,743 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:36:58,743 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:36:58,743 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:36:58,743 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:36:58,743 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:36:58,743 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:36:58,743 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:36:58,743 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:36:58,743 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:36:58,744 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-470645027] 06:36:58,754 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#954459702] 06:36:58,754 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#105506901] 06:36:58,756 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 06:36:58,756 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,757 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:36:58,758 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:36:58,758 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:36:58,759 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:36:58,759 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:36:58,759 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 06:36:58,760 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:36:58,760 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:36:58,760 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:36:58,760 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:36:58,761 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#791219371] 06:36:58,771 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-986502599] 06:36:58,771 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#960535242] 06:36:58,773 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,774 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#525651969] 06:36:58,784 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#-1324404877] 06:36:58,784 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#-1798914994] 06:36:58,787 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 06:36:58,787 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,787 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:36:58,788 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:36:58,788 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:36:58,789 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:36:58,789 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:36:58,789 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:36:58,790 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:36:58,790 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:36:58,790 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:36:58,791 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:36:58,791 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:36:58,792 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:36:58,792 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:36:58,792 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:36:58,793 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-651647947] 06:36:58,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#2094969160] 06:36:58,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#-574907059] 06:36:58,805 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 06:36:58,805 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,806 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:36:58,806 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:36:58,806 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 06:36:58,806 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:36:58,806 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:36:58,806 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:36:58,806 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:36:58,806 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 06:36:58,806 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:36:58,806 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 06:36:58,807 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#-1103817421] 06:36:58,817 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#-1325047170] 06:36:58,818 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#800903724] 06:36:58,820 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 06:36:58,820 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,822 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:36:58,823 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 06:36:58,823 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 06:36:58,825 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 06:36:58,826 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#1334318470] 06:36:58,836 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#1811877361] 06:36:58,836 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#1751554557] 06:36:58,839 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 06:36:58,840 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,840 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:36:58,841 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:36:58,841 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:36:58,841 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 06:36:58,841 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 06:36:58,841 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 06:36:58,841 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 06:36:58,842 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:36:58,842 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:36:58,842 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 06:36:58,842 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 06:36:58,843 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#-288882728] 06:36:58,853 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#1498331927] 06:36:58,853 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#1293744502] 06:36:58,855 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 06:36:58,855 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:58,856 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:36:58,857 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:36:58,857 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:36:58,857 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:36:58,858 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:36:58,858 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#-1061882029] 06:36:58,869 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-1818509470] 06:36:58,869 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#209746059] 06:36:58,871 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/27/2025 18:36:58.872] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@63b67be3 [INFO] [pekkoDeadLetter][06/27/2025 18:36:58.872] [test-pekko.actor.default-dispatcher-5] [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:36:58,872 PM [test-pekko.actor.default-dispatcher-14] [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:36:58,873 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 06:36:58,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:36:58,873 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 06:36:58,875 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2021431742792678073/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 06:36:58,875 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 06:36:58,875 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:36:58,875 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:36:58,879 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 06:36:58,879 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 06:36:58,879 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3eb4f7e9 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [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:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [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:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 06:36:58,880 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 06:36:58,881 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:36:58,881 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:36:58,881 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:36:58,881 PM [test-pekko.actor.default-dispatcher-14] [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:36:58,881 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 06:36:58,881 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 06:36:58,881 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 06:36:58,881 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 06:36:58,881 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 06:36:58,881 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d636856] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2021431742792678073/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EE4CA-348C1187.tmp [WARN] [06/27/2025 18:36:58.881] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/27/2025 18:36:58.881] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:36:58,881 PM [test-pekko.actor.default-dispatcher-14] [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:36:58,883 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d636856] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2021431742792678073/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EE4CA-348C1187.v1 06:36:58,883 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d636856] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2021431742792678073/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EE4CA-348C1187.v1 06:36:58,883 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d636856] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2021431742792678073/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:36:58,883 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d636856] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-27T18:36:58.881594759Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2021431742792678073/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EE4CA-348C1187.v1, size=701, entryCompress=NONE, stateCompress=NONE} 06:36:58,883 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d636856] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 06:36:58,884 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 06:36:58,884 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-27T18:36:58.881594759Z 06:36:58,884 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 06:36:58,884 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 06:36:58,884 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 06:36:59,31 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2021431742792678073/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EE4CA-348C1187.v1 06:36:59,32 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2021431742792678073/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 06:36:59,32 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-27T18:36:58.881594759Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest2021431742792678073/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EE4CA-348C1187.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 06:36:59,33 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#-715277780] 06:36:59,44 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#86486195] 06:36:59,44 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#399691556] 06:36:59,44 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 06:36:59,44 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:36:59,44 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 06:36:59,47 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 06:36:59,47 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:59,48 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:36:59,48 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:36:59,48 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:36:59,49 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:36:59,49 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 06:36:59,49 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#-327919409] 06:36:59,60 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#-354912194] 06:36:59,60 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#1384648500] 06:36:59,63 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 06:36:59,63 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:59,64 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:36:59,65 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 06:36:59,65 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 06:36:59,65 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 06:36:59,65 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 06:36:59,66 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#-520047705] 06:36:59,76 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#723116867] 06:36:59,76 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#-331903817] 06:36:59,79 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 06:36:59,79 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:59,80 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:36:59,80 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:36:59,81 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:36:59,81 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:36:59,81 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:36:59,81 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 06:36:59,81 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:36:59,81 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 06:36:59,81 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:36:59,81 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 06:36:59,81 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 06:36:59,81 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:36:59,81 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:36:59,81 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 06:36:59,82 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:36:59,82 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:36:59,82 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:36:59,82 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:36:59,82 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:36:59,82 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:36:59,82 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:36:59,82 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:36:59,83 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#-1449295788] 06:36:59,93 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#1993877668] 06:36:59,94 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#-1575814992] 06:36:59,97 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 06:36:59,97 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:59,98 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:36:59,98 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 06:36:59,99 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#-1710482887] 06:36:59,110 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-989938076] 06:36:59,110 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#-441725239] 06:36:59,112 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 06:36:59,112 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:59,113 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:36:59,113 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:36:59,113 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:36:59,114 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:36:59,114 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:36:59,115 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:36:59,115 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:36:59,115 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:36:59,115 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:36:59,115 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 06:36:59,115 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 06:36:59,115 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 06:36:59,115 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:36:59,116 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 06:36:59,116 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:36:59,116 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:36:59,116 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:36:59,117 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#-113813809] 06:36:59,127 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#424032266] 06:36:59,127 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#67622264] 06:36:59,130 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 06:36:59,130 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:59,130 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:36:59,131 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:36:59,131 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:36:59,132 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:36:59,132 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 06:36:59,132 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 06:36:59,133 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:36:59,133 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:36:59,134 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:36:59,134 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 06:36:59,134 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 06:36:59,135 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:36:59,135 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:36:59,135 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:36:59,135 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 06:36:59,135 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#-53183002] 06:36:59,146 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#-1484921162] 06:36:59,146 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#-210587442] 06:36:59,149 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 06:36:59,149 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:59,349 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:36:59,350 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.251:17355, Removed) 06:36:59,350 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 06:36:59,350 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:36:59,350 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:36:59,350 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:36:59,350 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#1531395861] 06:36:59,361 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#-142259158] 06:36:59,361 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#-1620265330] 06:36:59,365 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:59,365 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 06:36:59,617 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:36:59,617 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#1493187343] 06:36:59,628 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#-1341540641] 06:36:59,628 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#1851282106] 06:36:59,632 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 06:36:59,632 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:59,634 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:36:59,634 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 06:36:59,635 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#1338267920] 06:36:59,646 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#-332339580] 06:36:59,646 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#1750605065] 06:36:59,649 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 06:36:59,649 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:59,651 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:36:59,651 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:36:59,651 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 06:36:59,651 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 06:36:59,651 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 06:36:59,651 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 06:36:59,651 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 06:36:59,651 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:36:59,652 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 06:36:59,652 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 06:36:59,652 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:36:59,652 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:36:59,652 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 06:36:59,652 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 06:36:59,652 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 06:36:59,652 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 06:36:59,653 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 06:36:59,653 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 06:36:59,653 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 06:36:59,653 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 06:36:59,654 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#1505279600] 06:36:59,664 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-827522946] 06:36:59,665 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-1997574883] 06:36:59,667 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 06:36:59,667 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:59,668 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:36:59,669 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 06:36:59,669 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:36:59,669 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 06:36:59,670 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:36:59,671 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:36:59,671 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#910862780] 06:36:59,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#-147514328] 06:36:59,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#919769375] 06:36:59,685 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 06:36:59,685 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:36:59,686 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:36:59,687 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:36:59,687 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 06:36:59,687 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 06:36:59,688 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 06:36:59,688 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#1734393100] 06:36:59,699 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#1827764036] 06:36:59,699 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#-137749655] 06:36:59,702 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/27/2025 18:36:59.703] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@e1ad4a0 [INFO] [pekkoDeadLetter][06/27/2025 18:36:59.703] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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:36:59,703 PM [test-pekko.actor.default-dispatcher-14] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:36:59,703 PM [test-pekko.actor.default-dispatcher-15] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 06:36:59,703 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:36:59,704 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:36:59,705 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8415316887581625602/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 06:36:59,705 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 06:36:59,706 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:36:59,706 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:36:59,708 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:36:59,708 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 06:36:59,708 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@174703cf 06:36:59,709 PM [test-pekko.actor.default-dispatcher-15] [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:36:59,709 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 06:36:59,709 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:36:59,709 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 06:36:59,709 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 06:36:59,709 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 06:36:59,709 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 06:36:59,709 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 06:36:59,709 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 06:36:59,709 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 06:36:59,709 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 06:36:59,709 PM [test-pekko.actor.default-dispatcher-15] [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:36:59,710 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 06:36:59,710 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 06:36:59,710 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 06:36:59,710 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 06:36:59,710 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 06:36:59,710 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 06:36:59,710 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 06:36:59,710 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 06:36:59,710 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 06:36:59,710 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 06:36:59,710 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 06:36:59,710 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 06:36:59,710 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 06:36:59,710 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 06:36:59,710 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 06:36:59,711 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 06:36:59,711 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 06:36:59,711 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 06:36:59,711 PM [test-pekko.actor.default-dispatcher-14] [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:36:59,711 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 06:36:59,711 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 06:36:59,711 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:36:59,711 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 06:36:59,711 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 06:36:59,711 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d377306] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8415316887581625602/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EE4CB-2A6952E2.tmp [WARN] [06/27/2025 18:36:59.711] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/27/2025 18:36:59.711] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 06:36:59,712 PM [test-pekko.actor.default-dispatcher-6] [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'. 06:36:59,713 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d377306] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8415316887581625602/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EE4CB-2A6952E2.v1 06:36:59,713 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d377306] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8415316887581625602/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EE4CB-2A6952E2.v1 06:36:59,713 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d377306] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8415316887581625602/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:36:59,714 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d377306] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T18:36:59.711545570Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8415316887581625602/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EE4CB-2A6952E2.v1, size=573, entryCompress=NONE, stateCompress=NONE} 06:36:59,714 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d377306] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 06:36:59,714 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 06:36:59,714 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-27T18:36:59.711545570Z 06:36:59,714 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 06:36:59,714 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 06:36:59,714 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 06:36:59,861 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8415316887581625602/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EE4CB-2A6952E2.v1 06:36:59,861 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8415316887581625602/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:36:59,862 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T18:36:59.711545570Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8415316887581625602/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EE4CB-2A6952E2.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:36:59,863 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:36:59,874 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:36:59,874 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/27/2025 18:36:59.876] [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@68c5230a [INFO] [pekkoDeadLetter][06/27/2025 18:36:59.876] [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:36:59,876 PM [test-pekko.actor.default-dispatcher-6] [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:36:59,876 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 06:36:59,876 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:36:59,876 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 06:36:59,878 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:36:59,878 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8415316887581625602/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EE4CB-2A6952E2.v1 06:36:59,879 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8415316887581625602/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 06:36:59,879 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T18:36:59.711545570Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest8415316887581625602/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EE4CB-2A6952E2.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 06:36:59,879 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 06:36:59,879 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-27T18:36:59.711545570Z 06:36:59,879 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:36:59,879 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 100.3 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 06:36:59,880 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 06:36:59,880 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 06:36:59,880 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 363.0 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 06:36:59,880 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 06:36:59,880 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 06:36:59,880 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@75d00aea 06:36:59,880 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#-225140982] 06:36:59,891 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#895782221] 06:36:59,891 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#93970734] 06:36:59,891 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 06:36:59,891 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:36:59,891 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 06:36:59,894 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 06:36:59,894 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:37:00,195 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 06:37:00,325 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:37:00,325 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 06:37:00,576 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 06:37:00,776 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 06:37:00,776 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#-904749807] 06:37:00,778 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#769022218] 06:37:00,779 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#-481526529] 06:37:00,782 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:37:00,783 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:37:00,783 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 06:37:00,783 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 06:37:00,783 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 06:37:00,784 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:37:00,784 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#-963716142] 06:37:00,785 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-977742377] 06:37:00,785 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#-1426140786] 06:37:00,788 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:37:00,790 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:37:00,790 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 06:37:00,791 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#-713107097] 06:37:00,791 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#1660432903] 06:37:00,791 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#1620671215] 06:37:00,793 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:37:00,794 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:37:00,794 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 06:37:00,794 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 06:37:00,794 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 06:37:00,794 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 06:37:00,794 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 06:37:00,794 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:37:00,794 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 06:37:00,794 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 06:37:00,794 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 06:37:00,794 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:37:00,794 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 06:37:00,795 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-325515012] 06:37:00,795 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#639596390] 06:37:00,795 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-626838538] 06:37:00,796 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:37:00,797 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:37:00,797 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 06:37:00,797 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#-1820329685] 06:37:00,798 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-899854739] 06:37:00,798 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#-943962955] 06:37:00,799 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:37:00,799 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:37:00,799 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:37:00,800 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:37:00,800 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 06:37:00,800 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:37:00,801 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 06:37:00,801 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 06:37:00,801 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:37:00,801 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:37:00,801 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:37:00,801 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 06:37:00,802 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:37:00,802 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#838796294] 06:37:00,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#-1655796939] 06:37:00,803 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#117678361] 06:37:00,804 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:37:00,804 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:37:00,804 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 06:37:00,804 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:37:00,804 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 06:37:00,804 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:37:00,804 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:37:00,804 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 06:37:00,804 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 06:37:00,805 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#564494130] 06:37:00,805 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#1923151774] 06:37:00,805 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-872796147] 06:37:00,806 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:37:00,807 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 06:37:00,807 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#-36960021] 06:37:00,808 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-924950916] 06:37:00,808 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#-753079860] 06:37:00,809 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 06:37:00,810 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:37:00,810 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 06:37:00,810 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#1621526631] 06:37:00,810 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#711774442] 06:37:00,810 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#-776313788] [INFO] [06/27/2025 18:37:00.811] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 06:37:00,811 PM [test-pekko.actor.default-dispatcher-15] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 06:37:00,813 PM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.251:17355] - Exiting completed 06:37:00,813 PM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.251:17355] - Shutting down... 06:37:00,813 PM [test-pekko.actor.default-dispatcher-14] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.251:17355] - Successfully shut down [WARN] [06/27/2025 18:37:00.813] [test-pekko.actor.default-dispatcher-14] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.251:17355) [INFO] [06/27/2025 18:37:00.812] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.251:17355] - Exiting completed [INFO] [06/27/2025 18:37:00.812] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.251:17355] - Shutting down... [INFO] [06/27/2025 18:37:00.812] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.251:17355] - Successfully shut down [INFO] [pekkoDeadLetter][06/27/2025 18:37:00.813] [test-pekko.actor.default-dispatcher-15] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#717769587] 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:37:00,813 PM [test-pekko.actor.default-dispatcher-15] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#717769587] 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:37:00,813 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [06/27/2025 18:37:00.813] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.251:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [06/27/2025 18:37:00.814] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.251:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 06:37:00,814 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/27/2025 18:37:00.815] [test-pekko.remote.default-remote-dispatcher-7] [pekko://test@10.30.171.251:17355/system/remoting-terminator] Remoting shut down. 06:37:00,815 PM [test-pekko.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [06/27/2025 18:37:00.816] [test-pekko.actor.internal-dispatcher-8] [EventStream] shutting down: StandardOutLogger