[DEBUG] [06/26/2025 19:04:25.164] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 07:04:25,164 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/26/2025 19:04:25.164] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/26/2025 19:04:25.164] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [06/26/2025 19:04:25.177] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.210:17355] with UID [-5439752490191358727] 07:04:25,177 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.210:17355] with UID [-5439752490191358727] [INFO] [06/26/2025 19:04:25.178] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.210:17355] - Starting up, Pekko version [1.0.3] ... 07:04:25,178 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.210:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/26/2025 19:04:25.181] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.210:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 07:04:25,181 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.210:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/26/2025 19:04:25.181] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.210:17355] - Started up successfully 07:04:25,181 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.210:17355] - Started up successfully [INFO] [06/26/2025 19:04:25.181] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.210:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/26/2025 19:04:25.182] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.210:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:04:25,182 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.210:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 07:04:25,182 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.210:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:04:25,197 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 07:04:25,197 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,321 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:04:25,322 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:04:25,322 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:04:25,323 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:04:25,323 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:04:25,324 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 07:04:25,324 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:04:25,324 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:04:25,327 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 07:04:25,327 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-1389216417] 07:04:25,339 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-2004815801] 07:04:25,339 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#1600200261] 07:04:25,341 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 07:04:25,342 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,343 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]]} 07:04:25,343 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 07:04:25,344 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} 07:04:25,344 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:04:25,344 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-1396842266] 07:04:25,355 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#-167107118] 07:04:25,355 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#-675165954] 07:04:25,357 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 07:04:25,357 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,358 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:04:25,358 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:04:25,358 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:04:25,358 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:04:25,359 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:04:25,359 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:04:25,359 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:04:25,360 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:04:25,361 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 07:04:25,362 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]]} 07:04:25,362 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 07:04:25,362 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} 07:04:25,363 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 07:04:25,363 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#65040514] 07:04:25,374 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#-2029597780] 07:04:25,374 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-180300093] 07:04:25,375 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,376 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:04:25,377 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#1704196667] 07:04:25,388 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#1191165341] 07:04:25,388 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#-1396023245] 07:04:25,389 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:04:25,389 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,390 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 07:04:25,390 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]]} 07:04:25,391 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:04:25,391 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:04:25,391 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:04:25,391 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:04:25,391 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:04:25,391 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} 07:04:25,392 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:04:25,392 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:04:25,393 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:04:25,394 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#716530552] 07:04:25,404 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#1249885534] 07:04:25,404 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#1105030346] 07:04:25,406 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 07:04:25,407 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,408 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]]} 07:04:25,408 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:04:25,408 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:04:25,408 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:04:25,408 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:04:25,408 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 07:04:25,408 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} 07:04:25,409 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:04:25,409 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:04:25,409 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:04:25,409 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:04:25,409 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:04:25,409 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:04:25,411 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]]} 07:04:25,411 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:04:25,411 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:04:25,411 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:04:25,411 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 07:04:25,411 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:04:25,411 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:04:25,412 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} 07:04:25,412 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 07:04:25,412 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:04:25,412 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:04:25,412 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:04:25,413 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#562928096] 07:04:25,423 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#-1307238201] 07:04:25,423 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-1981172237] 07:04:25,425 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 07:04:25,426 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,426 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 07:04:25,427 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 07:04:25,428 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} 07:04:25,428 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 07:04:25,428 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#703884328] 07:04:25,439 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#17045271] 07:04:25,439 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#653389826] 07:04:25,441 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,443 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#1570275905] 07:04:25,454 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#1593218552] 07:04:25,454 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#976546786] 07:04:25,458 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 07:04:25,458 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,458 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:04:25,459 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 07:04:25,460 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]]} 07:04:25,460 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:04:25,460 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:04:25,461 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:04:25,461 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:04:25,461 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:04:25,461 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} 07:04:25,461 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:04:25,461 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 07:04:25,461 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 07:04:25,461 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 07:04:25,461 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 07:04:25,462 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#-1686079564] 07:04:25,473 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-1539538147] 07:04:25,473 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#-290633425] 07:04:25,476 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [06/26/2025 19:04:25.479] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@491e1d8a [INFO] [pekkoDeadLetter][06/26/2025 19:04:25.480] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:04:25,482 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:04:25,482 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 07:04:25,482 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:04:25,482 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:04:25,484 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7252550348436723550/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 07:04:25,484 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:04:25,484 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:04:25,484 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 07:04:25,487 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:04:25,487 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:04:25,487 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@5a0e0d01 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 07:04:25,488 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 07:04:25,489 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:04:25,489 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:04:25,489 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 07:04:25,489 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 07:04:25,489 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 07:04:25,489 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 07:04:25,489 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 07:04:25,489 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 07:04:25,489 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d520265] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7252550348436723550/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D99B9-1D2EC7F9.tmp 07:04:25,490 PM [test-pekko.actor.default-dispatcher-12] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [06/26/2025 19:04:25.490] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/26/2025 19:04:25.489] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:04:25,494 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d520265] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7252550348436723550/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D99B9-1D2EC7F9.v1 07:04:25,494 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d520265] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7252550348436723550/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D99B9-1D2EC7F9.v1 07:04:25,494 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d520265] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7252550348436723550/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:04:25,494 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d520265] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-26T19:04:25.489605113Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7252550348436723550/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D99B9-1D2EC7F9.v1, size=555, entryCompress=NONE, stateCompress=NONE} 07:04:25,495 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-26T19:04:25.489605113Z 07:04:25,495 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 07:04:25,495 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 07:04:25,495 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 07:04:25,641 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7252550348436723550/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D99B9-1D2EC7F9.v1 07:04:25,641 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7252550348436723550/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:04:25,641 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-26T19:04:25.489605113Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7252550348436723550/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685D99B9-1D2EC7F9.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 07:04:25,643 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#7728701] 07:04:25,654 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#1464043431] 07:04:25,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#1270006811] 07:04:25,655 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 07:04:25,655 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:04:25,655 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:04:25,659 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,660 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#-1094360642] 07:04:25,671 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#-1494893840] 07:04:25,671 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#1223127104] 07:04:25,673 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 07:04:25,673 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,674 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 07:04:25,674 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:04:25,674 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#1582188105] 07:04:25,685 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#-297945827] 07:04:25,685 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#-1428321058] 07:04:25,688 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 07:04:25,688 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,689 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 07:04:25,690 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]]} 07:04:25,690 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:04:25,691 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:04:25,691 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:04:25,691 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:04:25,691 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:04:25,691 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} 07:04:25,692 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:04:25,692 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:04:25,692 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:04:25,693 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-205798991] 07:04:25,704 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#1472521262] 07:04:25,704 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#-1523102911] 07:04:25,706 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 07:04:25,706 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,707 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 07:04:25,708 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]]} 07:04:25,708 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 07:04:25,709 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} 07:04:25,709 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:04:25,709 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 07:04:25,710 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]]} 07:04:25,710 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 07:04:25,711 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} 07:04:25,711 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:04:25,711 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-1478980008] 07:04:25,722 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#795392904] 07:04:25,722 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#-1412131400] 07:04:25,725 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,725 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#-1460040231] 07:04:25,736 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#2112803308] 07:04:25,736 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#-1363798178] 07:04:25,738 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 07:04:25,738 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,739 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 07:04:25,739 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]]} 07:04:25,740 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 07:04:25,740 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} 07:04:25,740 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:04:25,740 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:04:25,741 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]]} 07:04:25,741 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 07:04:25,741 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} 07:04:25,741 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:04:25,742 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]]} 07:04:25,742 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 07:04:25,742 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} 07:04:25,743 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:04:25,743 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-443158477] 07:04:25,753 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-1357612645] 07:04:25,754 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#-2113806817] 07:04:25,756 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 07:04:25,757 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,758 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]]} 07:04:25,758 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:04:25,758 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 07:04:25,758 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:04:25,758 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:04:25,759 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:04:25,759 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} 07:04:25,759 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:04:25,759 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:04:25,759 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 07:04:25,760 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#-1616525827] 07:04:25,770 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#-945338565] 07:04:25,771 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#-1134104695] 07:04:25,773 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 07:04:25,773 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,775 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:04:25,776 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 07:04:25,776 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 07:04:25,778 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 07:04:25,779 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#-800217214] 07:04:25,789 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#-2065172135] 07:04:25,789 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#1958794284] 07:04:25,793 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 07:04:25,794 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,795 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 07:04:25,796 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]]} 07:04:25,796 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:04:25,796 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:04:25,796 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:04:25,796 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:04:25,796 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:04:25,796 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} 07:04:25,797 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:04:25,797 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:04:25,797 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:04:25,798 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#-193997545] 07:04:25,808 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#-1842039310] 07:04:25,809 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#1332736803] 07:04:25,811 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:04:25,811 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,812 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 07:04:25,812 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]]} 07:04:25,813 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 07:04:25,813 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} 07:04:25,813 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:04:25,814 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#38229574] 07:04:25,824 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-199546376] 07:04:25,824 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-1728736474] 07:04:25,827 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/26/2025 19:04:25.828] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@62e85200 [INFO] [pekkoDeadLetter][06/26/2025 19:04:25.828] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:04:25,828 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'. 07:04:25,828 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 07:04:25,828 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:04:25,829 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:04:25,830 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13945598530247101928/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 07:04:25,830 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 07:04:25,830 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:04:25,830 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 07:04:25,833 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:04:25,833 PM [test-pekko.actor.default-dispatcher-12] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 07:04:25,833 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@7187feee 07:04:25,833 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 07:04:25,833 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 07:04:25,833 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:04:25,833 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 07:04:25,833 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:04:25,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 07:04:25,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:04:25,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 07:04:25,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:04:25,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 07:04:25,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 07:04:25,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:04:25,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 07:04:25,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 07:04:25,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 07:04:25,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 07:04:25,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 07:04:25,834 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 07:04:25,834 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 07:04:25,834 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:04:25,834 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:04:25,834 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:04:25,835 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 07:04:25,835 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 07:04:25,835 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 07:04:25,835 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 07:04:25,835 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 07:04:25,835 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 [WARN] [06/26/2025 19:04:25.835] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] 07:04:25,835 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d838547] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13945598530247101928/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D99B9-31C70FFE.tmp [INFO] [pekkoDeadLetter][06/26/2025 19:04:25.835] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:04:25,835 PM [test-pekko.actor.default-dispatcher-11] [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'. 07:04:25,837 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d838547] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13945598530247101928/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D99B9-31C70FFE.v1 07:04:25,838 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d838547] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13945598530247101928/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D99B9-31C70FFE.v1 07:04:25,838 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d838547] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13945598530247101928/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:04:25,838 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d838547] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-26T19:04:25.835129342Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13945598530247101928/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D99B9-31C70FFE.v1, size=701, entryCompress=NONE, stateCompress=NONE} 07:04:25,838 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-26T19:04:25.835129342Z 07:04:25,838 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 07:04:25,838 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 07:04:25,838 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 07:04:25,936 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13945598530247101928/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D99B9-31C70FFE.v1 07:04:25,937 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13945598530247101928/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:04:25,937 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-26T19:04:25.835129342Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest13945598530247101928/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685D99B9-31C70FFE.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 07:04:25,939 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#1539592649] 07:04:25,950 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-1349155776] 07:04:25,950 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#471677700] 07:04:25,950 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 07:04:25,950 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:04:25,950 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:04:25,954 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 07:04:25,954 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,955 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 07:04:25,956 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]]} 07:04:25,956 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 07:04:25,957 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} 07:04:25,957 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 07:04:25,957 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#-898578717] 07:04:25,968 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#-1686040903] 07:04:25,968 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#203966471] 07:04:25,970 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 07:04:25,970 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,971 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 07:04:25,971 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 07:04:25,972 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 07:04:25,972 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 07:04:25,972 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 07:04:25,972 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#299025990] 07:04:25,973 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#458384444] 07:04:25,973 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#-1206258877] 07:04:25,974 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 07:04:25,974 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,975 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 07:04:25,975 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]]} 07:04:25,975 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:04:25,975 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:04:25,975 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:04:25,975 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 07:04:25,975 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:04:25,975 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 07:04:25,975 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:04:25,976 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 07:04:25,976 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 07:04:25,976 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} 07:04:25,976 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:04:25,976 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 07:04:25,976 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:04:25,976 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:04:25,976 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:04:25,976 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:04:25,976 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:04:25,976 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:04:25,976 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:04:25,976 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:04:25,977 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#774118712] 07:04:25,977 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#291710443] 07:04:25,977 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#890161263] 07:04:25,979 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 07:04:25,979 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,979 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 07:04:25,979 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 07:04:25,980 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#2109673675] 07:04:25,980 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#640738828] 07:04:25,981 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#406972070] 07:04:25,982 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 07:04:25,982 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,982 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:04:25,983 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:04:25,983 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:04:25,983 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:04:25,983 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 07:04:25,984 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]]} 07:04:25,984 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 07:04:25,984 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:04:25,984 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:04:25,984 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 07:04:25,984 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:04:25,984 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:04:25,984 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} 07:04:25,984 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 07:04:25,984 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:04:25,985 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:04:25,985 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:04:25,985 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#628403569] 07:04:25,985 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#2000318636] 07:04:25,985 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#-1749349902] 07:04:25,986 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 07:04:25,986 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:25,987 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 07:04:25,987 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]]} 07:04:25,987 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 07:04:25,987 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} 07:04:25,987 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:04:25,988 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:04:25,988 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]]} 07:04:25,988 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 07:04:25,988 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} 07:04:25,988 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:04:25,988 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:04:25,989 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]]} 07:04:25,989 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 07:04:25,989 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} 07:04:25,989 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:04:25,989 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#155037925] 07:04:25,990 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#-297431225] 07:04:25,990 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#642013233] 07:04:25,991 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 07:04:25,991 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:26,191 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:04:26,191 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.210:17355, Removed) 07:04:26,191 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 07:04:26,192 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:04:26,192 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:04:26,192 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:04:26,192 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#562240841] 07:04:26,193 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#-1305971060] 07:04:26,193 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#-756905481] 07:04:26,196 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:26,196 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 07:04:26,448 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:04:26,448 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#-339954195] 07:04:26,450 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#1134555899] 07:04:26,451 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#-1356451826] 07:04:26,454 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 07:04:26,454 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:26,457 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 07:04:26,457 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 07:04:26,458 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#1987773230] 07:04:26,459 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#-1623895228] 07:04:26,459 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#1503880550] 07:04:26,461 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 07:04:26,461 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:26,462 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]]} 07:04:26,462 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:04:26,462 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 07:04:26,462 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:04:26,462 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:04:26,462 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 07:04:26,462 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:04:26,462 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} 07:04:26,462 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 07:04:26,462 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:04:26,462 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:04:26,462 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:04:26,462 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:04:26,462 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:04:26,462 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:04:26,462 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:04:26,463 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:04:26,463 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:04:26,463 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 07:04:26,463 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 07:04:26,463 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#1137964520] 07:04:26,464 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-1791810243] 07:04:26,464 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-708014779] 07:04:26,465 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 07:04:26,466 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:26,466 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:04:26,466 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:04:26,466 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:04:26,466 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:04:26,467 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]]} 07:04:26,467 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} 07:04:26,467 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#489966836] 07:04:26,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#1014836975] 07:04:26,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#-266427299] 07:04:26,469 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 07:04:26,469 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:26,469 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 07:04:26,470 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]]} 07:04:26,470 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:04:26,470 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:04:26,470 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:04:26,470 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#301981433] 07:04:26,471 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#-1089871383] 07:04:26,471 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#-1296624983] 07:04:26,472 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/26/2025 19:04:26.473] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@199c2e00 07:04:26,473 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. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][06/26/2025 19:04:26.473] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:04:26,473 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:04:26,473 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:04:26,474 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:04:26,475 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9433681107770408290/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 07:04:26,475 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:04:26,475 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:04:26,475 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 07:04:26,480 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:04:26,480 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 07:04:26,480 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2c7ad4f 07:04:26,480 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 07:04:26,480 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 07:04:26,480 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:04:26,480 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 07:04:26,480 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:04:26,480 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 07:04:26,480 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:04:26,480 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 07:04:26,480 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:04:26,480 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 07:04:26,480 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 07:04:26,481 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 07:04:26,481 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:04:26,481 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:04:26,482 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:04:26,482 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 07:04:26,482 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 07:04:26,482 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 07:04:26,482 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:04:26,482 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 07:04:26,482 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 07:04:26,482 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d949027] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9433681107770408290/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D99BA-1CBE6561.tmp [WARN] [06/26/2025 19:04:26.482] [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/26/2025 19:04:26.482] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:04:26,482 PM [test-pekko.actor.default-dispatcher-11] [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'. 07:04:26,484 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d949027] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9433681107770408290/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D99BA-1CBE6561.v1 07:04:26,485 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d949027] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9433681107770408290/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:04:26,485 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d949027] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9433681107770408290/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D99BA-1CBE6561.v1 07:04:26,485 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d949027] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-26T19:04:26.482239841Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9433681107770408290/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D99BA-1CBE6561.v1, size=573, entryCompress=NONE, stateCompress=NONE} 07:04:26,485 PM [test-pekko.actor.default-dispatcher-12] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-26T19:04:26.482239841Z 07:04:26,485 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 07:04:26,485 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 07:04:26,485 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 07:04:26,632 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9433681107770408290/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:04:26,632 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9433681107770408290/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D99BA-1CBE6561.v1 07:04:26,633 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-26T19:04:26.482239841Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9433681107770408290/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D99BA-1CBE6561.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:04:26,635 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:04:26,636 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:04:26,636 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/26/2025 19:04:26.637] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2049db71 [INFO] [pekkoDeadLetter][06/26/2025 19:04:26.637] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:04:26,637 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'. 07:04:26,638 PM [test-pekko.actor.default-dispatcher-12] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:04:26,638 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:04:26,638 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:04:26,640 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:04:26,640 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9433681107770408290/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:04:26,640 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9433681107770408290/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D99BA-1CBE6561.v1 07:04:26,640 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-26T19:04:26.482239841Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest9433681107770408290/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685D99BA-1CBE6561.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:04:26,640 PM [test-pekko.actor.default-dispatcher-14] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:04:26,641 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-26T19:04:26.482239841Z 07:04:26,641 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:04:26,641 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 128.9 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 07:04:26,641 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 07:04:26,641 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 07:04:26,642 PM [test-pekko.actor.default-dispatcher-14] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 599.3 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 07:04:26,642 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 07:04:26,642 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:04:26,642 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@2d0a8b92 07:04:26,642 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#1376521169] 07:04:26,653 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#-125520267] 07:04:26,653 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#217597704] 07:04:26,653 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:04:26,653 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:04:26,653 PM [test-pekko.actor.default-dispatcher-12] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:04:26,657 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 07:04:26,657 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:26,958 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:04:27,89 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:04:27,89 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 07:04:27,339 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 07:04:27,539 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 07:04:27,540 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#1208731152] 07:04:27,551 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#-1506636323] 07:04:27,551 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#-956800589] 07:04:27,554 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:27,555 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:04:27,555 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 07:04:27,555 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:04:27,555 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:04:27,555 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:04:27,556 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#1556719571] 07:04:27,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-1782056437] 07:04:27,567 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#1291606289] 07:04:27,570 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:27,571 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 07:04:27,572 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 07:04:27,572 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#-162485681] 07:04:27,583 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#-199906276] 07:04:27,583 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-2009439637] 07:04:27,585 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:27,586 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]]} 07:04:27,586 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:04:27,586 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:04:27,587 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:04:27,587 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:04:27,587 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 07:04:27,587 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} 07:04:27,587 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 07:04:27,587 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 07:04:27,587 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:04:27,587 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:04:27,587 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 07:04:27,588 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#422138723] 07:04:27,588 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#432445506] 07:04:27,589 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-1025534157] 07:04:27,591 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:27,592 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 07:04:27,592 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 07:04:27,593 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#-1694959695] 07:04:27,594 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-600205529] 07:04:27,594 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#-1493900205] 07:04:27,596 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:27,597 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 07:04:27,597 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 07:04:27,598 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} 07:04:27,598 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 07:04:27,599 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 07:04:27,599 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 07:04:27,599 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 07:04:27,599 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. 07:04:27,599 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 07:04:27,600 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 07:04:27,600 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 07:04:27,601 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:04:27,601 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#-164535330] 07:04:27,602 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#-1020468526] 07:04:27,602 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#-498024313] 07:04:27,605 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:27,605 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:04:27,606 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:04:27,606 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:27,606 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 07:04:27,606 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:04:27,606 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:04:27,607 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:04:27,607 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:04:27,607 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#1104550712] 07:04:27,618 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#61451831] 07:04:27,618 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#463316803] 07:04:27,621 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:27,622 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 07:04:27,623 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#70849033] 07:04:27,633 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-1747749869] 07:04:27,634 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#-1437686792] 07:04:27,636 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:04:27,637 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 07:04:27,638 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:04:27,638 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#-1192089637] 07:04:27,649 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#1755005242] 07:04:27,649 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#-1340473223] 07:04:27,650 PM [test-pekko.actor.default-dispatcher-14] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [06/26/2025 19:04:27.649] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/26/2025 19:04:27.650] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.210:17355) 07:04:27,650 PM [test-pekko.actor.default-dispatcher-14] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-932663914] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][06/26/2025 19:04:27.650] [test-pekko.actor.default-dispatcher-14] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-932663914] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [06/26/2025 19:04:27.651] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.210:17355] - Exiting completed 07:04:27,653 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.210:17355] - Exiting completed 07:04:27,653 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.210:17355] - Shutting down... [INFO] [06/26/2025 19:04:27.651] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.210:17355] - Shutting down... 07:04:27,653 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.210:17355] - Successfully shut down [INFO] [06/26/2025 19:04:27.651] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.210:17355] - Successfully shut down [INFO] [06/26/2025 19:04:27.653] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.210:17355/system/remoting-terminator] Shutting down remote daemon. 07:04:27,653 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. [INFO] [06/26/2025 19:04:27.653] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.210:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 07:04:27,653 PM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/26/2025 19:04:27.655] [test-pekko.remote.default-remote-dispatcher-9] [pekko://test@10.30.171.210:17355/system/remoting-terminator] Remoting shut down. 07:04:27,655 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [06/26/2025 19:04:27.655] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger