[DEBUG] [06/27/2025 14:29:35.367] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 02:29:35,368 PM [test-pekko.actor.default-dispatcher-4] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [06/27/2025 14:29:35.368] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [06/27/2025 14:29:35.368] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [06/27/2025 14:29:35.383] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.88:17355] with UID [-1306988889154325465] 02:29:35,383 PM [test-pekko.actor.default-dispatcher-4] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.88:17355] with UID [-1306988889154325465] [INFO] [06/27/2025 14:29:35.384] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.88:17355] - Starting up, Pekko version [1.0.3] ... 02:29:35,384 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.88:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [06/27/2025 14:29:35.387] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.88:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [06/27/2025 14:29:35.387] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.88:17355] - Started up successfully 02:29:35,388 PM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.88:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 02:29:35,388 PM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.88:17355] - Started up successfully [INFO] [06/27/2025 14:29:35.389] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.88:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [06/27/2025 14:29:35.389] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.88:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:29:35,389 PM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.88:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 02:29:35,389 PM [test-pekko.actor.default-dispatcher-4] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.88:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 02:29:35,402 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 02:29:35,402 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,525 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:29:35,525 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:29:35,525 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:29:35,527 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:29:35,528 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:29:35,529 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 02:29:35,529 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:29:35,529 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:29:35,532 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 02:29:35,533 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#-1446584178] 02:29:35,535 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-840084191] 02:29:35,535 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#-762639537] 02:29:35,538 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 02:29:35,538 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,540 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]]} 02:29:35,540 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 02:29:35,540 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} 02:29:35,541 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:29:35,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#-315901494] 02:29:35,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#442439920] 02:29:35,541 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#-728878952] 02:29:35,543 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 02:29:35,543 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,544 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:29:35,544 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:29:35,544 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:29:35,544 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:29:35,544 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 02:29:35,544 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 02:29:35,545 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 02:29:35,545 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:29:35,546 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 02:29:35,546 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]]} 02:29:35,546 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 02:29:35,547 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} 02:29:35,547 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 02:29:35,547 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-1792964658] 02:29:35,548 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#949752757] 02:29:35,548 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-1154247002] 02:29:35,557 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,558 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:29:35,560 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#-598198210] 02:29:35,561 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#1523828423] 02:29:35,561 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#1526689053] 02:29:35,563 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:29:35,563 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,564 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 02:29:35,564 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]]} 02:29:35,565 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:29:35,565 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:29:35,565 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:29:35,565 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:29:35,565 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:29:35,565 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} 02:29:35,565 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:29:35,566 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:29:35,567 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:29:35,567 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#1182732248] 02:29:35,568 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#-615557310] 02:29:35,568 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-1729539838] 02:29:35,570 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 02:29:35,570 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,571 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]]} 02:29:35,571 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:29:35,571 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:29:35,571 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:29:35,571 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:29:35,571 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 02:29:35,571 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} 02:29:35,571 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:29:35,571 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:29:35,572 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:29:35,572 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:29:35,572 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:29:35,572 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:29:35,572 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]]} 02:29:35,573 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:29:35,573 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 02:29:35,573 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 02:29:35,573 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 02:29:35,573 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:29:35,573 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:29:35,573 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} 02:29:35,573 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 02:29:35,573 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:29:35,573 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:29:35,573 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:29:35,574 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#1530881472] 02:29:35,574 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#830756974] 02:29:35,574 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-159539] 02:29:35,576 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 02:29:35,576 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,577 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 02:29:35,577 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 02:29:35,577 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} 02:29:35,577 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 02:29:35,578 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#677518] 02:29:35,578 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#-740080755] 02:29:35,578 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#1229335141] 02:29:35,580 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,582 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-936171912] 02:29:35,583 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#-2050785450] 02:29:35,583 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#1000197620] 02:29:35,585 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 02:29:35,585 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,585 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:29:35,585 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 02:29:35,586 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]]} 02:29:35,586 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:29:35,586 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:29:35,586 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:29:35,586 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:29:35,586 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:29:35,586 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} 02:29:35,586 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:29:35,586 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 02:29:35,586 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 02:29:35,586 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 02:29:35,586 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 02:29:35,587 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#-225506165] 02:29:35,587 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-414286501] 02:29:35,587 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#-1697150120] 02:29:35,589 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 02:29:35,594 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 02:29:35,594 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:29:35,594 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 02:29:35,594 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [06/27/2025 14:29:35.594] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@6a475c6c [INFO] [pekkoDeadLetter][06/27/2025 14:29:35.594] [test-pekko.actor.default-dispatcher-5] [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'. 02:29:35,598 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7156405276600535366/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 02:29:35,598 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 02:29:35,598 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:29:35,598 PM [test-pekko.actor.default-dispatcher-4] [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 02:29:35,717 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:29:35,717 PM [test-pekko.actor.default-dispatcher-4] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:29:35,717 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@16e7ea33 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [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]]} 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [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} 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 02:29:35,718 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 02:29:35,719 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 02:29:35,719 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 02:29:35,719 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 02:29:35,719 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 02:29:35,719 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 02:29:35,720 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:29:35,720 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:29:35,720 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 02:29:35,721 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 02:29:35,721 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 02:29:35,721 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 02:29:35,721 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d653159] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7156405276600535366/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EAACF-2AFAC831.tmp 02:29:35,724 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 02:29:35,724 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 [WARN] [06/27/2025 14:29:35.725] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/27/2025 14:29:35.725] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:29:35,725 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:29:35,765 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d653159] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7156405276600535366/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EAACF-2AFAC831.v1 02:29:35,765 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d653159] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7156405276600535366/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EAACF-2AFAC831.v1 02:29:35,765 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d653159] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7156405276600535366/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:29:35,765 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d653159] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-27T14:29:35.721078321Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7156405276600535366/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EAACF-2AFAC831.v1, size=555, entryCompress=NONE, stateCompress=NONE} 02:29:35,765 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d653159] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 02:29:35,766 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 02:29:35,766 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-06-27T14:29:35.721078321Z 02:29:35,766 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 02:29:35,766 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 02:29:35,766 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 02:29:35,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7156405276600535366/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EAACF-2AFAC831.v1 02:29:35,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7156405276600535366/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 02:29:35,877 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-06-27T14:29:35.721078321Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest7156405276600535366/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-00000000685EAACF-2AFAC831.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 02:29:35,881 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#-789437693] 02:29:35,883 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#-1823450919] 02:29:35,883 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#-49660284] 02:29:35,883 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 02:29:35,883 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:29:35,883 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 02:29:35,886 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,887 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#-1196245319] 02:29:35,888 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#-1025691917] 02:29:35,888 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#1411732938] 02:29:35,890 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 02:29:35,891 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,892 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 02:29:35,892 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:29:35,894 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#1674790512] 02:29:35,895 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#507540512] 02:29:35,895 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#3740433] 02:29:35,897 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 02:29:35,897 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,898 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 02:29:35,898 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]]} 02:29:35,898 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:29:35,898 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:29:35,898 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:29:35,898 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:29:35,898 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:29:35,898 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} 02:29:35,898 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:29:35,898 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:29:35,899 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:29:35,899 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#708281745] 02:29:35,900 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#1113576398] 02:29:35,900 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#-1977794638] 02:29:35,902 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 02:29:35,902 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,903 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 02:29:35,903 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]]} 02:29:35,903 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 02:29:35,903 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} 02:29:35,903 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:29:35,904 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 02:29:35,904 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]]} 02:29:35,904 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 02:29:35,904 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} 02:29:35,904 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:29:35,905 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#-570879074] 02:29:35,905 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#-1078253637] 02:29:35,906 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#685188343] 02:29:35,908 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#1610554275] 02:29:35,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#219642079] 02:29:35,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#-1290825947] 02:29:35,910 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 02:29:35,910 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,911 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 02:29:35,911 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]]} 02:29:35,911 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 02:29:35,911 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} 02:29:35,911 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:29:35,911 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:29:35,912 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]]} 02:29:35,912 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 02:29:35,912 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} 02:29:35,912 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:29:35,914 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]]} 02:29:35,914 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 02:29:35,914 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} 02:29:35,914 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:29:35,914 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#-1100325563] 02:29:35,915 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#-1062313887] 02:29:35,915 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#817174754] 02:29:35,917 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 02:29:35,917 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,918 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]]} 02:29:35,918 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:29:35,918 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 02:29:35,918 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:29:35,918 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:29:35,918 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:29:35,918 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} 02:29:35,919 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 02:29:35,919 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:29:35,919 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 02:29:35,919 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#1602187121] 02:29:35,920 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#1946625508] 02:29:35,920 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#176243539] 02:29:35,923 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 02:29:35,923 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,924 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:29:35,925 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 02:29:35,925 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 02:29:35,927 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 02:29:35,927 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#188633962] 02:29:35,928 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#1045402242] 02:29:35,928 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#879096770] 02:29:35,932 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 02:29:35,932 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,932 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 02:29:35,933 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]]} 02:29:35,933 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:29:35,933 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 02:29:35,933 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 02:29:35,933 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 02:29:35,933 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 02:29:35,933 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} 02:29:35,933 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:29:35,933 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 02:29:35,933 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 02:29:35,934 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#332302649] 02:29:35,935 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#-387720710] 02:29:35,935 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#630575269] 02:29:35,937 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 02:29:35,937 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:35,938 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 02:29:35,938 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]]} 02:29:35,938 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 02:29:35,938 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} 02:29:35,938 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:29:35,939 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#-202374332] 02:29:35,939 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#284505269] 02:29:35,940 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#-914285712] 02:29:35,943 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [06/27/2025 14:29:35.944] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@2fe9d0c2 [INFO] [pekkoDeadLetter][06/27/2025 14:29:35.944] [test-pekko.actor.default-dispatcher-4] [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'. 02:29:35,944 PM [test-pekko.actor.default-dispatcher-4] [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'. 02:29:35,945 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 02:29:35,945 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:29:35,945 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 02:29:35,950 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16670544544768967084/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 02:29:35,950 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 02:29:35,950 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:29:35,951 PM [test-pekko.actor.default-dispatcher-11] [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 02:29:36,4 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 02:29:36,4 PM [test-pekko.actor.default-dispatcher-11] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 02:29:36,4 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@73d22fc2 02:29:36,5 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 02:29:36,5 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 02:29:36,5 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:29:36,5 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 02:29:36,5 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:29:36,5 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 02:29:36,5 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:29:36,5 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 02:29:36,5 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:29:36,5 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 02:29:36,5 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 02:29:36,5 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnAppendEntriesWithUnapplied, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 02:29:36,5 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 02:29:36,6 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 02:29:36,6 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 02:29:36,6 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 02:29:36,6 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 02:29:36,6 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 02:29:36,6 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 02:29:36,7 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:29:36,7 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:29:36,7 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:29:36,7 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] 02:29:36,7 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 02:29:36,7 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 02:29:36,7 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 02:29:36,7 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d436691] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16670544544768967084/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EAAD0-007496F6.tmp 02:29:36,8 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 02:29:36,8 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 02:29:36,8 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'. [WARN] [06/27/2025 14:29:36.008] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][06/27/2025 14:29:36.008] [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'. 02:29:36,49 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d436691] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16670544544768967084/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EAAD0-007496F6.v1 02:29:36,49 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d436691] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16670544544768967084/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EAAD0-007496F6.v1 02:29:36,49 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d436691] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16670544544768967084/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:29:36,49 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d436691] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-27T14:29:36.007640822Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16670544544768967084/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EAAD0-007496F6.v1, size=701, entryCompress=NONE, stateCompress=NONE} 02:29:36,49 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d436691] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 02:29:36,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 02:29:36,50 PM [test-pekko.actor.default-dispatcher-4] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-06-27T14:29:36.007640822Z 02:29:36,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 02:29:36,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 02:29:36,50 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 02:29:36,157 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16670544544768967084/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EAAD0-007496F6.v1 02:29:36,158 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16670544544768967084/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 02:29:36,158 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-06-27T14:29:36.007640822Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest16670544544768967084/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-00000000685EAAD0-007496F6.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 02:29:36,160 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#-562503206] 02:29:36,161 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#-1953334772] 02:29:36,161 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#-732116039] 02:29:36,161 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 02:29:36,161 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:29:36,161 PM [test-pekko.actor.default-dispatcher-4] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 02:29:36,164 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 02:29:36,164 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:36,165 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 02:29:36,165 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]]} 02:29:36,165 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 02:29:36,166 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} 02:29:36,166 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 02:29:36,166 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#-1087712979] 02:29:36,167 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#346292208] 02:29:36,167 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#284696137] 02:29:36,168 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 02:29:36,169 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:36,169 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 02:29:36,169 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 02:29:36,169 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 02:29:36,169 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 02:29:36,170 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 02:29:36,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#1864982842] 02:29:36,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#-1321769793] 02:29:36,170 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#514412565] 02:29:36,172 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 02:29:36,172 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:36,172 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 02:29:36,172 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]]} 02:29:36,173 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:29:36,173 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:29:36,173 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:29:36,173 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 02:29:36,173 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:29:36,173 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 02:29:36,173 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:29:36,173 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 02:29:36,173 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 02:29:36,173 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} 02:29:36,173 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:29:36,173 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 02:29:36,173 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:29:36,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:29:36,173 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:29:36,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:29:36,173 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:29:36,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:29:36,173 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:29:36,173 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:29:36,174 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#-118411465] 02:29:36,174 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#111344428] 02:29:36,174 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#689224283] 02:29:36,176 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 02:29:36,176 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:36,176 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 02:29:36,176 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 02:29:36,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#-296488684] 02:29:36,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-928370753] 02:29:36,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#313412087] 02:29:36,178 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 02:29:36,179 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:36,179 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:29:36,179 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:29:36,179 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:29:36,179 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:29:36,179 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 02:29:36,180 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]]} 02:29:36,180 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 02:29:36,180 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:29:36,180 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 02:29:36,180 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 02:29:36,180 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 02:29:36,180 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 02:29:36,180 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} 02:29:36,180 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 02:29:36,180 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 02:29:36,180 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:29:36,180 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:29:36,180 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#-1992367067] 02:29:36,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#1204532822] 02:29:36,181 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#840872379] 02:29:36,183 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 02:29:36,184 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:36,184 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 02:29:36,184 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]]} 02:29:36,185 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 02:29:36,185 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} 02:29:36,185 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 02:29:36,185 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 02:29:36,185 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]]} 02:29:36,185 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 02:29:36,186 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} 02:29:36,186 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 02:29:36,186 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 02:29:36,186 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]]} 02:29:36,186 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 02:29:36,186 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} 02:29:36,186 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 02:29:36,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#-1854088322] 02:29:36,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#554319018] 02:29:36,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#-1517269267] 02:29:36,189 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 02:29:36,189 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:36,390 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:29:36,390 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.170.88:17355, Removed) 02:29:36,390 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 02:29:36,390 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:29:36,390 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:29:36,390 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:29:36,390 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#-266230593] 02:29:36,392 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#-227869999] 02:29:36,392 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#451465129] 02:29:36,396 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:36,397 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 02:29:36,649 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:29:36,649 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#1514843614] 02:29:36,660 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#2102169751] 02:29:36,660 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#810583633] 02:29:36,667 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 02:29:36,667 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:36,670 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 02:29:36,670 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 02:29:36,671 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#2115224490] 02:29:36,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#-135355407] 02:29:36,682 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#1506810313] 02:29:36,685 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 02:29:36,685 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:36,687 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]]} 02:29:36,687 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:29:36,687 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 02:29:36,687 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 02:29:36,688 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 02:29:36,688 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 02:29:36,688 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 02:29:36,688 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} 02:29:36,688 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 02:29:36,688 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 02:29:36,688 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:29:36,688 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:29:36,689 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 02:29:36,689 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 02:29:36,689 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 02:29:36,689 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 02:29:36,689 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 02:29:36,689 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 02:29:36,689 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 02:29:36,689 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 02:29:36,690 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#-2059512016] 02:29:36,701 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#-1286140788] 02:29:36,701 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#1536810260] 02:29:36,704 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 02:29:36,704 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:36,705 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 02:29:36,705 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 02:29:36,705 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 02:29:36,705 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 02:29:36,706 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]]} 02:29:36,706 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} 02:29:36,707 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#2021002089] 02:29:36,708 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#-567494571] 02:29:36,708 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#-1017129889] 02:29:36,719 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 02:29:36,719 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:36,721 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 02:29:36,722 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]]} 02:29:36,722 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 02:29:36,722 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 02:29:36,722 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 02:29:36,723 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#1306843950] 02:29:36,723 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#-299800695] 02:29:36,724 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#179478820] 02:29:36,726 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [06/27/2025 14:29:36.727] [test-pekko.actor.default-dispatcher-4] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@18034cd4 [INFO] [pekkoDeadLetter][06/27/2025 14:29:36.727] [test-pekko.actor.default-dispatcher-4] [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'. 02:29:36,728 PM [test-pekko.actor.default-dispatcher-14] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:29:36,728 PM [test-pekko.actor.default-dispatcher-5] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:29:36,728 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:29:36,729 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:29:36,731 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14433592604115630103/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 02:29:36,731 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 02:29:36,732 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:29:36,732 PM [test-pekko.actor.default-dispatcher-5] [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 02:29:36,749 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:29:36,750 PM [test-pekko.actor.default-dispatcher-5] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 02:29:36,750 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@1507e941 02:29:36,750 PM [test-pekko.actor.default-dispatcher-5] [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]]} 02:29:36,750 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 02:29:36,750 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 02:29:36,750 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 02:29:36,750 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [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} 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 02:29:36,751 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 02:29:36,752 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 02:29:36,752 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 02:29:36,752 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 02:29:36,752 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 02:29:36,752 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 02:29:36,752 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 02:29:36,752 PM [test-pekko.actor.default-dispatcher-5] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:29:36,752 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d651368] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14433592604115630103/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAD0-2CDEA203.tmp 02:29:36,753 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 02:29:36,753 PM [test-pekko.actor.default-dispatcher-5] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 [WARN] [06/27/2025 14:29:36.753] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] 02:29:36,754 PM [test-pekko.actor.default-dispatcher-4] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][06/27/2025 14:29:36.753] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:29:36,756 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d651368] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14433592604115630103/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAD0-2CDEA203.v1 02:29:36,757 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d651368] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14433592604115630103/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAD0-2CDEA203.v1 02:29:36,757 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d651368] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14433592604115630103/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:29:36,757 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d651368] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T14:29:36.752787971Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14433592604115630103/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAD0-2CDEA203.v1, size=573, entryCompress=NONE, stateCompress=NONE} 02:29:36,757 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d651368] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 02:29:36,757 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] EntryStoreCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 02:29:36,757 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-06-27T14:29:36.752787971Z 02:29:36,758 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 02:29:36,758 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 02:29:36,758 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 02:29:36,903 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14433592604115630103/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAD0-2CDEA203.v1 02:29:36,903 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14433592604115630103/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:29:36,903 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T14:29:36.752787971Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14433592604115630103/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAD0-2CDEA203.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:29:36,905 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:29:36,906 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:29:36,906 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks [WARN] [06/27/2025 14:29:36.908] [test-pekko.actor.default-dispatcher-15] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2cde4ff9 [INFO] [pekkoDeadLetter][06/27/2025 14:29:36.908] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [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'. 02:29:36,909 PM [test-pekko.actor.default-dispatcher-15] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 02:29:36,910 PM [test-pekko.actor.default-dispatcher-14] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 02:29:36,910 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:29:36,910 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 02:29:36,912 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:29:36,912 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14433592604115630103/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAD0-2CDEA203.v1 02:29:36,913 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14433592604115630103/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 02:29:36,913 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-06-27T14:29:36.752787971Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest14433592604115630103/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-00000000685EAAD0-2CDEA203.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 02:29:36,913 PM [test-pekko.actor.default-dispatcher-15] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 02:29:36,913 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-06-27T14:29:36.752787971Z 02:29:36,914 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:29:36,914 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 497.9 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 02:29:36,914 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 02:29:36,914 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 02:29:36,914 PM [test-pekko.actor.default-dispatcher-15] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 904.1 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 02:29:36,915 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 02:29:36,915 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 02:29:36,915 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@58ff0e0a 02:29:37,9 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#-613357064] 02:29:37,10 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#1259643019] 02:29:37,10 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#2102051729] 02:29:37,10 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 02:29:37,11 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:29:37,11 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 02:29:37,15 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 02:29:37,15 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:37,316 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 02:29:37,446 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:29:37,446 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 02:29:37,697 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 02:29:37,897 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 02:29:37,897 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#567959050] 02:29:37,899 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#1344996548] 02:29:37,899 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#372014925] 02:29:37,902 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:37,903 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 02:29:37,903 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 02:29:37,903 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 02:29:37,903 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 02:29:37,903 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 02:29:37,904 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#439916664] 02:29:37,905 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-329102270] 02:29:37,905 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#-2060186527] 02:29:37,906 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:37,907 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 02:29:37,908 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 02:29:37,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#1844272231] 02:29:37,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#743047227] 02:29:37,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-520293131] 02:29:37,909 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:37,910 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]]} 02:29:37,910 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 02:29:37,910 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 02:29:37,910 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 02:29:37,910 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 02:29:37,910 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 02:29:37,910 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} 02:29:37,911 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 02:29:37,911 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 02:29:37,911 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 02:29:37,911 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:29:37,911 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 02:29:37,911 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#681858611] 02:29:37,911 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#-214733504] 02:29:37,912 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#1247288522] 02:29:37,913 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:37,914 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 02:29:37,914 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 02:29:37,914 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#1071167500] 02:29:37,915 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#1780745309] 02:29:37,915 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#639279650] 02:29:37,917 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:37,917 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 02:29:37,917 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 02:29:37,918 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} 02:29:37,918 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 02:29:37,918 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 02:29:37,919 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 02:29:37,919 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 02:29:37,919 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. 02:29:37,919 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 02:29:37,919 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 02:29:37,920 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 02:29:37,920 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 02:29:37,920 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#1383331435] 02:29:37,921 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#789434077] 02:29:37,921 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#397744790] 02:29:37,922 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:37,922 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:29:37,922 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 02:29:37,923 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:37,923 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 02:29:37,923 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:29:37,923 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:29:37,923 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 02:29:37,923 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 02:29:37,923 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#-1019976701] 02:29:37,923 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#1993173821] 02:29:37,923 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-1801184251] 02:29:37,925 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:37,925 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 02:29:37,926 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#1785677807] 02:29:37,927 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#-1855968577] 02:29:37,927 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#965737653] 02:29:37,928 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 02:29:37,928 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 02:29:37,928 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 02:29:37,928 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#1101209378] 02:29:37,929 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#52486727] 02:29:37,929 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#1434594846] [INFO] [06/27/2025 14:29:37.929] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 02:29:37,929 PM [test-pekko.actor.default-dispatcher-14] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [06/27/2025 14:29:37.930] [test-pekko.actor.default-dispatcher-14] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.88:17355) 02:29:37,930 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#1578405755] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][06/27/2025 14:29:37.930] [test-pekko.actor.default-dispatcher-15] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#1578405755] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [06/27/2025 14:29:37.931] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.88:17355] - Exiting completed 02:29:37,931 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.88:17355] - Exiting completed 02:29:37,931 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.88:17355] - Shutting down... [INFO] [06/27/2025 14:29:37.931] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.88:17355] - Shutting down... [INFO] [06/27/2025 14:29:37.931] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.88:17355] - Successfully shut down 02:29:37,931 PM [test-pekko.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.88:17355] - Successfully shut down 02:29:37,933 PM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 02:29:37,933 PM [test-pekko.actor.default-dispatcher-14] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/27/2025 14:29:37.933] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.88:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [06/27/2025 14:29:37.933] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.88:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [06/27/2025 14:29:37.936] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.88:17355/system/remoting-terminator] Remoting shut down. 02:29:37,936 PM [test-pekko.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [06/27/2025 14:29:37.936] [test-pekko.actor.internal-dispatcher-7] [EventStream] shutting down: StandardOutLogger