[DEBUG] [09/03/2025 19:41:09.329] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 07:41:09,329 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [09/03/2025 19:41:09.329] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [09/03/2025 19:41:09.329] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [09/03/2025 19:41:09.338] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.13:17355] with UID [-8782700819346908956] [INFO] [09/03/2025 19:41:09.339] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13:17355] - Starting up, Pekko version [1.1.5] ... 07:41:09,339 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.13:17355] with UID [-8782700819346908956] 07:41:09,339 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - Starting up, Pekko version [1.1.5] ... [INFO] [09/03/2025 19:41:09.341] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [09/03/2025 19:41:09.341] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13:17355] - Started up successfully 07:41:09,341 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 07:41:09,341 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - Started up successfully [INFO] [09/03/2025 19:41:09.342] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [09/03/2025 19:41:09.342] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:41:09,343 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 07:41:09,343 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 07:41:09,354 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,436 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1, votedFor: test, lastIndex: 1, lastTerm: 1 07:41:09,436 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 07:41:09,437 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior420#373362735] 07:41:09,448 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower421#-1777871109] 07:41:09,448 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader422#51145140] 07:41:09,453 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,455 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]} 07:41:09,456 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:41:09,456 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 07:41:09,456 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 07:41:09,456 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:41:09,457 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 07:41:09,457 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,457 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 07:41:09,457 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 07:41:09,459 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:41:09,459 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:41:09,459 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 07:41:09,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior423#42849447] 07:41:09,470 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower424#1989195116] 07:41:09,470 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader425#1449110832] 07:41:09,474 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,476 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1, candidateId=test, lastLogIndex=1999, lastLogTerm=1} - currentTerm: 1, votedFor: test, lastIndex: 2000, lastTerm: 1 07:41:09,477 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 07:41:09,478 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior426#212964894] 07:41:09,489 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower427#1681588128] 07:41:09,489 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader428#1818730629] 07:41:09,514 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,517 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntries{term=100, leaderId=leader-1, prevLogIndex=0, prevLogTerm=0, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:41:09,519 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 0 - lastIndex: 0, snapshotIndex: -1, snapshotTerm: -1 07:41:09,519 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=100, success=false, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,520 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 07:41:09,520 PM [main] [INFO] Follower - follower (Follower): Term 100 in "AppendEntriesReply{term=100, success=false, followerId=follower-1, logLastIndex=100, logLastTerm=100, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5}" message is greater than follower's term 1 - updating term 07:41:09,521 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 07:41:09,521 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 07:41:09,521 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Candidate in requestVote:RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} with higher term appears reachable, updating term. 07:41:09,521 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100}" message is greater than follower's term 1 - updating term 07:41:09,522 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=100, candidateId=candidate-1, lastLogIndex=10, lastLogTerm=100} - currentTerm: 100, votedFor: null, lastIndex: 0, lastTerm: 1 07:41:09,523 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 07:41:09,523 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:41:09,524 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior429#-1098478134] 07:41:09,547 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower430#61238705] 07:41:09,547 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader431#1874524298] 07:41:09,556 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,558 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:41:09,559 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:41:09,559 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,559 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 07:41:09,560 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:41:09,560 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:41:09,561 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 07:41:09,561 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 07:41:09,561 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior432#332839477] 07:41:09,562 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower433#-1847334441] 07:41:09,562 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader434#-826052432] 07:41:09,565 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,565 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 07:41:09,566 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior435#-1611413198] 07:41:09,567 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower436#611295976] 07:41:09,567 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader437#1262025456] 07:41:09,569 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,570 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=999, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 07:41:09,570 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:41:09,570 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior438#-196026387] 07:41:09,581 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower439#-1350116304] 07:41:09,581 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader440#-506659874] 07:41:09,586 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 07:41:09,587 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,590 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:41:09,590 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:41:09,590 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:41:09,590 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:41:09,591 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:41:09,591 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 07:41:09,591 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:41:09,591 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:41:09,600 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 07:41:09,601 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior441#-511286130] 07:41:09,611 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower442#2120087199] 07:41:09,612 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader443#1298965318] 07:41:09,619 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 07:41:09,619 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,620 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 07:41:09,620 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 3 was not found in it - lastIndex: 2, snapshotIndex: -1, snapshotTerm: -1 07:41:09,621 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=1, success=false, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,621 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:41:09,621 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior444#-1136061577] 07:41:09,632 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower445#-122017440] 07:41:09,632 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader446#-44656140] 07:41:09,635 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 07:41:09,635 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,635 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:41:09,635 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:41:09,636 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:41:09,636 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:41:09,639 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 07:41:09,639 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 07:41:09,639 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 07:41:09,640 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:41:09,640 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:41:09,640 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:41:09,641 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:41:09,641 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,641 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 07:41:09,641 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior447#-697867265] 07:41:09,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower448#937605363] 07:41:09,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader449#217600166] 07:41:09,654 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,655 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 07:41:09,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior450#-527065638] 07:41:09,667 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower451#781735883] 07:41:09,667 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader452#1921955551] 07:41:09,671 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:41:09,671 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,672 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:41:09,672 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:41:09,673 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:41:09,673 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:41:09,673 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:41:09,673 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:41:09,673 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:41:09,673 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,673 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:41:09,673 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:41:09,673 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:41:09,674 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior453#638339816] 07:41:09,685 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower454#-2044433780] 07:41:09,685 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader455#-41710845] 07:41:09,688 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 07:41:09,688 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,689 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 07:41:09,689 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:41:09,690 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:41:09,690 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:41:09,690 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:41:09,690 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 07:41:09,690 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,690 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:41:09,690 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:41:09,690 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:41:09,690 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:41:09,690 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:41:09,690 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:41:09,691 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one], DefaultLogEntry[index=2, term=1, command=two]]} 07:41:09,691 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:41:09,691 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 07:41:09,691 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 07:41:09,691 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 07:41:09,691 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:41:09,691 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:41:09,691 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,692 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 07:41:09,692 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:41:09,692 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:41:09,692 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:41:09,692 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior456#468285017] 07:41:09,703 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower457#507503687] 07:41:09,703 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader458#257279910] 07:41:09,705 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 07:41:09,705 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,706 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=0, prevLogTerm=2, leaderCommit=101, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:41:09,706 PM [main] [INFO] Follower - follower (Follower): The prevLogIndex 0 was found in the log but the term 1 is not equal to the append entries prevLogTerm 2 - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:41:09,707 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,707 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 07:41:09,707 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior459#305393200] 07:41:09,718 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower460#-1252045671] 07:41:09,718 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader461#-1095257017] 07:41:09,721 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,724 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior462#433504393] 07:41:09,735 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower463#1131668733] 07:41:09,735 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader464#706382171] 07:41:09,738 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 07:41:09,738 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,738 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:41:09,738 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:41:09,739 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:41:09,739 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:41:09,739 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:41:09,739 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:41:09,739 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:41:09,739 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:41:09,739 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,739 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:41:09,739 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 07:41:09,739 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 07:41:09,739 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 07:41:09,740 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 07:41:09,740 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior465#-896517403] 07:41:09,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower466#-1796350144] 07:41:09,751 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader467#1778247407] 07:41:09,754 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries 07:41:09,757 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:41:09,758 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] [WARN] [09/03/2025 19:41:09.760] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@10fd9948 07:41:09,760 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 [INFO] [pekkoDeadLetter][09/03/2025 19:41:09.760] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:41:09,761 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:41:09,761 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:41:09,761 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 07:41:09,762 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:41:09,763 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:41:09,763 PM [test-pekko.actor.default-dispatcher-6] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal open: applyTo=0 07:41:09,764 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: starting journal recovery 07:41:09,764 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer started 07:41:09,764 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 07:41:09,764 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:41:09,766 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=0, votedFor=null 07:41:09,766 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 07:41:09,766 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:41:09,766 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:41:09,771 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:41:09,771 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:41:09,771 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to -1 07:41:09,771 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] JournalRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: empty journal: appending 0 entries 07:41:09,771 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:41:09,771 PM [test-pekko.actor.default-dispatcher-6] [INFO] Recovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed in in 7.491 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 07:41:09,771 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed and can restore from snapshot 07:41:09,772 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:41:09,772 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:41:09,772 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:41:09,772 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 07:41:09,772 PM [test-pekko.actor.default-dispatcher-6] [INFO] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Term 1 in "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]]}" message is greater than follower's term 0 - updating term 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 07:41:09,775 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 2 commands after 11.37 ms 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 07:41:09,775 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: awaiting more completions to resolve 2 synchronized callback(s) 07:41:09,780 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 2 completion(s) pending 07:41:09,780 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 2 completion(s) 07:41:09,780 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 2 commands in 4.745 ms 07:41:09,780 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:41:09,780 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 7.030 μs 07:41:09,780 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0907500@2b2ff445} 07:41:09,780 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:41:09,780 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=2] 07:41:09,780 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=1, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 07:41:09,780 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:41:09,780 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 2 07:41:09,780 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 130.0 μs 07:41:09,780 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 07:41:09,780 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:41:09,780 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 07:41:09,780 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 07:41:09,780 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 1 and term: 1 07:41:09,780 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0907500@2b2ff445} 07:41:09,780 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: synchronized callbacks after 4.932 ms 07:41:09,780 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d212746] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B899D5-2E890C8A.tmp 07:41:09,780 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) [WARN] [09/03/2025 19:41:09.781] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][09/03/2025 19:41:09.781] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:41:09,781 PM [test-pekko.actor.default-dispatcher-7] [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'. 07:41:09,787 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d212746] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B899D5-2E890C8A.v1 07:41:09,787 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d212746] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B899D5-2E890C8A.v1 07:41:09,787 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d212746] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:41:09,787 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d212746] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:41:09,787 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d212746] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:41:09,787 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d212746] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-09-03T19:41:09.780733578Z, file=/tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B899D5-2E890C8A.v1, size=555, entryCompress=NONE, stateCompress=NONE} 07:41:09,787 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d212746] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:41:09,788 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:41:09,788 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-09-03T19:41:09.780733578Z 07:41:09,788 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success, discarding journal entries up to 2 07:41:09,788 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 7.442 ms 07:41:09,788 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: updated meta to JournalMeta[replayFrom=3, applyTo=2] 07:41:09,788 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: discarded entries up to (and including) 2 07:41:09,788 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 07:41:09,788 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 159.0 μs 07:41:09,788 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: waiting to receive commands 07:41:09,788 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 07:41:09,788 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 07:41:09,874 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B899D5-2E890C8A.v1 07:41:09,874 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 07:41:09,874 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/journal-v1-1.log 07:41:09,874 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/metadata-v1-1.log 07:41:09,874 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-09-03T19:41:09.780733578Z, file=/tmp/junit-6004849348048346127/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068B899D5-2E890C8A.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 07:41:09,877 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior468#1918574839] 07:41:09,888 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower469#889644936] 07:41:09,888 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader470#-69125374] 07:41:09,888 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 07:41:09,888 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: terminating thread VirtualThread[#629,testCaptureSnapshotOnLastEntryInAppendEntries-writer-154]/waiting 07:41:09,888 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: received 1 commands after 100.6 ms 07:41:09,889 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: completed 1 commands in 19.00 μs 07:41:09,889 PM [testCaptureSnapshotOnLastEntryInAppendEntries-writer-154] [DEBUG] JournalWriteTask - testCaptureSnapshotOnLastEntryInAppendEntries: journal writer stopped 07:41:09,889 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:41:09,889 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: journal closed 07:41:09,889 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:41:09,889 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 07:41:09,893 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,894 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior471#-464270010] 07:41:09,905 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower472#678100722] 07:41:09,905 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader473#457751562] 07:41:09,909 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 07:41:09,909 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,911 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=candidate, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: test, lastIndex: 1, lastTerm: 1 07:41:09,911 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 07:41:09,912 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior474#-1232104070] 07:41:09,923 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower475#959997915] 07:41:09,923 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader476#-1081084256] 07:41:09,928 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 07:41:09,928 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,929 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:41:09,930 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:41:09,930 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:41:09,930 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:41:09,930 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:41:09,930 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:41:09,930 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:41:09,931 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,931 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:41:09,931 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:41:09,931 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:41:09,932 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior477#774442075] 07:41:09,943 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower478#-360986708] 07:41:09,943 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader479#-208528116] 07:41:09,947 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 07:41:09,947 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,948 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:41:09,949 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:41:09,949 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:41:09,950 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,950 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:41:09,950 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 07:41:09,951 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:41:09,951 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 07:41:09,951 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,952 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:41:09,952 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior480#746359151] 07:41:09,963 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower481#-1643392967] 07:41:09,963 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader482#196699266] 07:41:09,967 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,967 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior483#346753505] 07:41:09,978 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower484#426495259] 07:41:09,978 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader485#677902983] 07:41:09,982 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 07:41:09,982 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:09,983 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:41:09,984 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:41:09,984 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:41:09,984 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,984 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:41:09,985 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:41:09,985 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:41:09,985 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:41:09,985 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,986 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:41:09,986 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:41:09,986 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:41:09,986 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:09,987 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:41:09,987 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior486#-954113782] 07:41:09,997 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower487#1311664408] 07:41:09,997 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader488#-1704294490] 07:41:10,1 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 07:41:10,1 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,2 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=3, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=3, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=4, term=1, command=four]]} 07:41:10,2 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:41:10,2 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 07:41:10,2 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:41:10,2 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 07:41:10,2 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:41:10,3 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:10,3 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 07:41:10,3 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:41:10,3 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 07:41:10,4 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior489#958096139] 07:41:10,15 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower490#-904396655] 07:41:10,15 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader491#-551906355] 07:41:10,19 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 07:41:10,19 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,21 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:41:10,22 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader494 07:41:10,22 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader494 07:41:10,24 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 07:41:10,25 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior492#-380680801] 07:41:10,36 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower493#172381154] 07:41:10,36 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader494#-1733155321] 07:41:10,40 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 07:41:10,40 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,41 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:41:10,41 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:41:10,41 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:41:10,41 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 07:41:10,41 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 07:41:10,41 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 07:41:10,42 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 07:41:10,42 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=101, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:10,42 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:41:10,42 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 07:41:10,42 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 07:41:10,42 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior495#606662227] 07:41:10,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower496#1515514010] 07:41:10,53 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader497#801583063] 07:41:10,56 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 07:41:10,56 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,56 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:41:10,57 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:41:10,57 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the replicatedToAllIndex 100 does not appear to be in the in-memory journal - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:41:10,57 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:10,60 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:41:10,61 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior498#571863860] 07:41:10,63 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower499#-1451927144] 07:41:10,64 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader500#1625801625] 07:41:10,68 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied 07:41:10,71 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:41:10,71 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] [WARN] [09/03/2025 19:41:10.072] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@14c21f8f [INFO] [pekkoDeadLetter][09/03/2025 19:41:10.072] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:41:10,72 PM [test-pekko.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] to Actor[pekko://test/user/termination-monitor] was not delivered. [3] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:41:10,72 PM [test-pekko.actor.default-dispatcher-11] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 07:41:10,72 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:41:10,72 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 07:41:10,73 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: metadata journal open: replayFrom=1 applyTo=0 07:41:10,73 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:41:10,73 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal open: applyTo=0 07:41:10,73 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting journal recovery 07:41:10,73 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer started 07:41:10,73 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:41:10,73 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - /tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 07:41:10,77 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=0, votedFor=null 07:41:10,77 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=0} 07:41:10,77 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:41:10,77 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:41:10,77 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:41:10,77 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 07:41:10,77 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to -1 07:41:10,77 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] JournalRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: empty journal: appending 0 entries 07:41:10,77 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:41:10,77 PM [test-pekko.actor.default-dispatcher-11] [INFO] Recovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed in in 4.046 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 07:41:10,77 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed and can restore from snapshot 07:41:10,77 PM [test-pekko.actor.default-dispatcher-11] [INFO] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Term 1 in "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]]}" message is greater than follower's term 0 - updating term 07:41:10,79 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 07:41:10,79 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]]} 07:41:10,79 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 07:41:10,79 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:41:10,79 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 07:41:10,79 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:41:10,79 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 07:41:10,79 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:41:10,79 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 07:41:10,79 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:41:10,79 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 07:41:10,79 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 07:41:10,79 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 6.419 ms 07:41:10,79 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} 07:41:10,79 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 07:41:10,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 07:41:10,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 07:41:10,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 07:41:10,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 07:41:10,80 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 07:41:10,80 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 3 synchronized callback(s) 07:41:10,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:41:10,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 3.249 ms 07:41:10,83 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:41:10,83 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 3 commands after 2.440 μs 07:41:10,83 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:41:10,83 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0907500@4814bccd} 07:41:10,83 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: awaiting more completions to resolve 2 synchronized callback(s) 07:41:10,84 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=1, applyTo=1] 07:41:10,84 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 3 completion(s) pending 07:41:10,84 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 3 commands in 1.334 ms 07:41:10,84 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 3 completion(s) 07:41:10,84 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:41:10,84 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:41:10,84 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0907500@4814bccd} 07:41:10,84 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:41:10,84 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=0, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 07:41:10,84 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 1 07:41:10,84 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 07:41:10,84 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 07:41:10,84 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 07:41:10,84 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snapshotIndex: 0 and term: 1 07:41:10,84 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0907500@4814bccd} 07:41:10,84 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d891754] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B899D6-050D7DE1.tmp 07:41:10,84 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: synchronized callbacks after 4.761 ms 07:41:10,85 PM [test-pekko.actor.default-dispatcher-7] [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] [09/03/2025 19:41:10.085] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][09/03/2025 19:41:10.085] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:41:10,87 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d891754] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B899D6-050D7DE1.v1 07:41:10,87 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d891754] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B899D6-050D7DE1.v1 07:41:10,87 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d891754] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:41:10,87 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d891754] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:41:10,87 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d891754] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:41:10,87 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d891754] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-09-03T19:41:10.084770273Z, file=/tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B899D6-050D7DE1.v1, size=539, entryCompress=NONE, stateCompress=NONE} 07:41:10,87 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d891754] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:41:10,87 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:41:10,87 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-09-03T19:41:10.084770273Z 07:41:10,87 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success, discarding journal entries up to 1 07:41:10,87 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 07:41:10,87 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 2.978 ms 07:41:10,87 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: updated meta to JournalMeta[replayFrom=2, applyTo=1] 07:41:10,87 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: discarded entries up to (and including) 1 07:41:10,87 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 07:41:10,87 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 128.8 μs 07:41:10,87 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 07:41:10,87 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: waiting to receive commands 07:41:10,229 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B899D6-050D7DE1.v1 07:41:10,229 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 07:41:10,229 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/journal-v1-1.log 07:41:10,229 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/metadata-v1-1.log 07:41:10,229 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-09-03T19:41:10.084770273Z, file=/tmp/junit-6135105040871150091/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068B899D6-050D7DE1.v1, size=539, entryCompress=NONE, stateCompress=NONE} as the latest file 07:41:10,230 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior501#644521374] 07:41:10,241 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower502#1452169656] 07:41:10,241 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader503#-1644984499] 07:41:10,242 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 07:41:10,242 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: terminating thread VirtualThread[#632,testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155]/waiting 07:41:10,242 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: received 1 commands after 154.7 ms 07:41:10,242 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: completed 1 commands in 17.03 μs 07:41:10,242 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-writer-155] [DEBUG] JournalWriteTask - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal writer stopped 07:41:10,242 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:41:10,242 PM [test-pekko.actor.default-dispatcher-11] [INFO] EnabledRaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: journal closed 07:41:10,242 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:41:10,242 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 07:41:10,247 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 07:41:10,247 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,248 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:41:10,249 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=105, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=105, term=2, command=foo]]} 07:41:10,249 PM [main] [INFO] Follower - follower (Follower): Cannot append entries because the calculated previousIndex 104 was not found in the in-memory journal - lastIndex: 100, snapshotIndex: 100, snapshotTerm: -1 07:41:10,249 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:10,250 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 07:41:10,250 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior504#923101571] 07:41:10,261 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower505#320809991] 07:41:10,261 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader506#183786950] 07:41:10,264 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 07:41:10,264 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,265 PM [main] [INFO] Follower - follower (Follower): Term 3 in "AppendEntries{term=3, leaderId=leader, prevLogIndex=1, prevLogTerm=3, leaderCommit=8, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[]}" message is greater than follower's term 1 - updating term 07:41:10,265 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 07:41:10,265 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 07:41:10,265 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 07:41:10,266 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 07:41:10,266 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior507#2117846826] 07:41:10,277 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower508#132427693] 07:41:10,277 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader509#1030982192] 07:41:10,281 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 07:41:10,281 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,281 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 07:41:10,282 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 07:41:10,282 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:41:10,282 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:41:10,282 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:41:10,282 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 07:41:10,282 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:41:10,282 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 07:41:10,282 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:41:10,282 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 07:41:10,282 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 07:41:10,283 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=3, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:10,283 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:41:10,283 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 07:41:10,283 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:41:10,283 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:41:10,283 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:41:10,283 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:41:10,283 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:41:10,283 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:41:10,283 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:41:10,283 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:41:10,284 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior510#690026784] 07:41:10,294 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower511#-410108161] 07:41:10,295 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader512#62474655] 07:41:10,298 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 07:41:10,298 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,298 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 07:41:10,298 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 07:41:10,299 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior513#892368445] 07:41:10,310 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower514#-1046770897] 07:41:10,310 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader515#1993874036] 07:41:10,318 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 07:41:10,318 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,319 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:41:10,319 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:41:10,319 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:41:10,319 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:41:10,320 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]}" message is greater than follower's term 1 - updating term 07:41:10,320 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=new-leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=3]]} 07:41:10,320 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress but the prior snapshot leaderId leader does not match the AppendEntries leaderId new-leader 07:41:10,320 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 07:41:10,320 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 07:41:10,320 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 07:41:10,320 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 07:41:10,320 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 07:41:10,321 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=2, success=true, followerId=follower, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:10,321 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 07:41:10,321 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 07:41:10,321 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:41:10,321 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:41:10,322 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior516#1214312948] 07:41:10,332 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower517#-1707727431] 07:41:10,332 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518#177134369] 07:41:10,336 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 07:41:10,336 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,337 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 07:41:10,338 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=100, prevLogTerm=1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:41:10,338 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 100 was not found in it - lastIndex: 1, snapshotIndex: -1, snapshotTerm: -1 07:41:10,339 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:10,339 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 07:41:10,340 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 07:41:10,341 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-1, prevLogIndex=101, prevLogTerm=1, leaderCommit=102, replicatedToAllIndex=101, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:41:10,341 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 101 was not found in it - lastIndex: 101, snapshotIndex: -1, snapshotTerm: -1 07:41:10,342 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=101, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:10,342 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 07:41:10,342 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 07:41:10,343 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader-2, prevLogIndex=45, prevLogTerm=1, leaderCommit=46, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]} 07:41:10,343 PM [main] [INFO] Follower - follower (Follower): The log is not empty but the prevLogIndex 45 was not found in it - lastIndex: 100, snapshotIndex: -1, snapshotTerm: -1 07:41:10,343 PM [main] [INFO] Follower - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply{term=2, success=false, followerId=follower, logLastIndex=100, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:10,343 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 07:41:10,344 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior519#-596273941] 07:41:10,354 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower520#1734646246] 07:41:10,354 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader521#300812949] 07:41:10,357 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 07:41:10,357 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,558 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:41:10,558 PM [main] [DEBUG] Follower - follower (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.171.13:17355, Removed) 07:41:10,558 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 07:41:10,558 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:41:10,558 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:41:10,558 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:41:10,558 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior522#-2128667341] 07:41:10,569 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower523#-7337306] 07:41:10,569 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524#-1060981989] 07:41:10,573 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,574 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 07:41:10,725 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:41:10,725 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior525#-1403945103] 07:41:10,736 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower526#281948383] 07:41:10,736 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader527#586825110] 07:41:10,740 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 07:41:10,741 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,743 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): In requestVote: RequestVote{term=1000, candidateId=test, lastLogIndex=10000, lastLogTerm=999} - currentTerm: 1000, votedFor: null, lastIndex: 1, lastTerm: 1 07:41:10,743 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 07:41:10,744 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior528#-191301516] 07:41:10,754 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower529#-289729807] 07:41:10,754 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530#1960809527] 07:41:10,758 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 07:41:10,758 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,759 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader-1, prevLogIndex=2, prevLogTerm=1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=10, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=3, term=1, command=three], DefaultLogEntry[index=4, term=1, command=four]]} 07:41:10,759 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:41:10,759 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 07:41:10,760 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 07:41:10,760 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 07:41:10,760 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 07:41:10,760 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 07:41:10,760 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:10,760 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 07:41:10,760 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 07:41:10,760 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 07:41:10,760 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 07:41:10,760 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 07:41:10,760 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 07:41:10,760 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 07:41:10,760 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 07:41:10,760 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 07:41:10,760 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 07:41:10,760 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 07:41:10,760 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 07:41:10,761 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior531#-1680964726] 07:41:10,772 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532#97558907] 07:41:10,773 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader533#773048706] 07:41:10,778 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 07:41:10,780 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,781 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 07:41:10,781 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 07:41:10,781 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 07:41:10,782 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 07:41:10,783 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=1, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=2, command=3]]} 07:41:10,783 PM [main] [DEBUG] Follower - follower (Follower): snapshot install is in progress, replying immediately with AppendEntriesReply{term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:10,784 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior534#194805443] 07:41:10,794 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower535#974633127] 07:41:10,795 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader536#1116807019] 07:41:10,799 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 07:41:10,799 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:10,800 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]}" message is greater than follower's term 1 - updating term 07:41:10,800 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=2, leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=2, term=2, command=two-1], DefaultLogEntry[index=3, term=2, command=three]]} 07:41:10,801 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 07:41:10,801 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 07:41:10,801 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 07:41:10,802 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior537#-1501072501] 07:41:10,812 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower538#-178100170] 07:41:10,813 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader539#1545996840] 07:41:10,816 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries 07:41:10,819 PM [main] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:41:10,819 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] [WARN] [09/03/2025 19:41:10.820] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@70a6ea8c [INFO] [pekkoDeadLetter][09/03/2025 19:41:10.820] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:41:10,820 PM [test-pekko.actor.default-dispatcher-11] [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'. 07:41:10,820 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:41:10,821 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:41:10,821 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:41:10,821 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=1 applyTo=0 07:41:10,822 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=0 replayFrom=1 fileEntries=0 07:41:10,822 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=0 07:41:10,822 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:41:10,822 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:41:10,822 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:41:10,822 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 07:41:10,826 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=0, votedFor=null 07:41:10,826 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=0} 07:41:10,826 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:41:10,826 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:41:10,826 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:41:10,826 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:41:10,826 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to -1 07:41:10,826 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: empty journal: appending 0 entries 07:41:10,826 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=0] 07:41:10,826 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 3.974 ms: last log index = -1, last log term = -1, napshot index = -1, snapshot term = -1, journal size = 0 07:41:10,826 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and can restore from snapshot 07:41:10,920 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:41:10,920 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:41:10,920 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:41:10,920 PM [main] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 07:41:10,920 PM [test-pekko.actor.default-dispatcher-7] [INFO] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Term 1 in "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]]}" message is greater than follower's term 0 - updating term 07:41:10,923 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:41:10,923 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two], DefaultLogEntry[index=2, term=1, command=three]]} 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnMiddleEntryInAppendEntries, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnMiddleEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 2 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 07:41:10,924 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 3 commands after 101.8 ms 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 07:41:10,924 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: awaiting more completions to resolve 3 synchronized callback(s) 07:41:10,929 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 3 completion(s) pending 07:41:10,929 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 3 commands in 5.082 ms 07:41:10,929 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 3 completion(s) 07:41:10,929 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.600 μs 07:41:10,929 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 07:41:10,929 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=0, term=1, command=one, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0907500@2891beb3} 07:41:10,929 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 07:41:10,929 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=1, term=1, command=two, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0907500@2891beb3} 07:41:10,929 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=1, applyTo=3] 07:41:10,929 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:41:10,929 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 07:41:10,929 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 203.7 μs 07:41:10,929 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:41:10,929 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 07:41:10,929 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 07:41:10,929 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 07:41:10,929 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:41:10,930 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 07:41:10,930 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snapshotIndex: 2 and term: 1 07:41:10,930 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed synchronized callback AppendReceivedCallback{entry=JournaledLogEntry{index=2, term=1, command=three, pending=false}, callback=org.opendaylight.controller.cluster.raft.behaviors.Follower$$Lambda/0x00000007c0907500@2891beb3} 07:41:10,930 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d591813] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B899D6-376DA5CD.tmp 07:41:10,930 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: synchronized callbacks after 5.354 ms 07:41:10,930 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) [WARN] [09/03/2025 19:41:10.930] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][09/03/2025 19:41:10.930] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:41:10,930 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:41:10,932 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d591813] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B899D6-376DA5CD.v1 07:41:10,932 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d591813] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B899D6-376DA5CD.v1 07:41:10,932 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d591813] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:41:10,932 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d591813] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:41:10,932 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d591813] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:41:10,932 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d591813] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-03T19:41:10.929932749Z, file=/tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B899D6-376DA5CD.v1, size=573, entryCompress=NONE, stateCompress=NONE} 07:41:10,932 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d591813] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:41:10,932 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:41:10,932 PM [test-pekko.actor.default-dispatcher-7] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-09-03T19:41:10.929932749Z 07:41:10,932 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success, discarding journal entries up to 3 07:41:10,932 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 07:41:10,932 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 3.149 ms 07:41:10,933 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: updated meta to JournalMeta[replayFrom=4, applyTo=3] 07:41:10,933 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: discarded entries up to (and including) 3 07:41:10,933 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 07:41:10,933 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 178.7 μs 07:41:10,933 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 07:41:10,933 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:41:11,72 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B899D6-376DA5CD.v1 07:41:11,72 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:41:11,72 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:41:11,72 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:41:11,72 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-03T19:41:10.929932749Z, file=/tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B899D6-376DA5CD.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:41:11,74 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:41:11,85 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#636,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156]/waiting 07:41:11,85 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 152.3 ms 07:41:11,85 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 11.32 μs 07:41:11,85 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-156] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:41:11,85 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:41:11,85 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:41:11,85 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:41:11,85 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:41:11,86 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] MockRaftActor - Actor created TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:41:11,87 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [09/03/2025 19:41:11.087] [test-pekko.actor.default-dispatcher-12] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@13913bcd [INFO] [pekkoDeadLetter][09/03/2025 19:41:11.086] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [7] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 07:41:11,87 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 07:41:11,87 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:41:11,87 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 07:41:11,88 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: metadata journal open: replayFrom=4 applyTo=3 07:41:11,88 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: firstIndex=1 lastIndex=3 replayFrom=4 fileEntries=0 07:41:11,89 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal open: applyTo=3 07:41:11,89 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting journal recovery 07:41:11,89 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer started 07:41:11,89 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: waiting to receive commands 07:41:11,89 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 07:41:11,89 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B899D6-376DA5CD.v1 07:41:11,89 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 07:41:11,89 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/journal-v1-1.log 07:41:11,89 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/metadata-v1-1.log 07:41:11,89 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-09-03T19:41:10.929932749Z, file=/tmp/junit-12178519828917021040/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068B899D6-376DA5CD.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 07:41:11,89 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-09-03T19:41:10.929932749Z 07:41:11,89 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 07:41:11,90 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 2 07:41:11,90 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] JournalRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: applying entries up to 3 07:41:11,90 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 07:41:11,90 PM [test-pekko.actor.default-dispatcher-7] [INFO] Recovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in in 1.711 ms: last log index = 2, last log term = 1, napshot index = 2, snapshot term = 1, journal size = 0 07:41:11,90 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed and cannot restore from snapshot 07:41:11,187 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior540#-1729872986] 07:41:11,188 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower541#-2137976181] 07:41:11,189 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader542#1203539894] 07:41:11,189 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 07:41:11,189 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: terminating thread VirtualThread[#639,testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157]/waiting 07:41:11,189 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: received 1 commands after 100.5 ms 07:41:11,189 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: completed 1 commands in 16.26 μs 07:41:11,189 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-writer-157] [DEBUG] JournalWriteTask - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal writer stopped 07:41:11,189 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] EntryJournalV1 - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:41:11,189 PM [test-pekko.actor.default-dispatcher-7] [INFO] EnabledRaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: journal closed 07:41:11,190 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:41:11,190 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 07:41:11,194 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 07:41:11,194 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:11,495 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 07:41:11,625 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:41:11,625 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 07:41:11,876 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 07:41:12,76 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 07:41:12,76 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior543#-1837480355] 07:41:12,88 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower544#775543028] 07:41:12,88 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader545#-1458427169] 07:41:12,92 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 07:41:12,93 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 07:41:12,93 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 07:41:12,93 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 07:41:12,93 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 07:41:12,93 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 07:41:12,94 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior546#1746526253] 07:41:12,104 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower547#-610557425] 07:41:12,104 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader548#-752777535] [INFO] [09/03/2025 19:41:12.105] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 07:41:12,106 PM [test-pekko.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [09/03/2025 19:41:12.107] [test-pekko.actor.default-dispatcher-7] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.171.13:17355) [INFO] [pekkoDeadLetter][09/03/2025 19:41:12.107] [test-pekko.actor.default-dispatcher-12] [pekko://test/system/cluster/core/daemon] Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-2127856295] 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'. 07:41:12,107 PM [test-pekko.actor.default-dispatcher-7] [INFO] LocalActorRef - pekkoDeadLetter Message [org.apache.pekko.cluster.ClusterUserAction$Leave] to Actor[pekko://test/system/cluster/core/daemon#-2127856295] 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] [09/03/2025 19:41:12.107] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13:17355] - Exiting completed 07:41:12,108 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - Exiting completed 07:41:12,108 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - Shutting down... 07:41:12,108 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.13:17355] - Successfully shut down [INFO] [09/03/2025 19:41:12.108] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13:17355] - Shutting down... [INFO] [09/03/2025 19:41:12.108] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.13:17355] - Successfully shut down [INFO] [09/03/2025 19:41:12.110] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.13:17355/system/remoting-terminator] Shutting down remote daemon. 07:41:12,111 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 07:41:12,111 PM [test-pekko.actor.default-dispatcher-12] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [09/03/2025 19:41:12.111] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.171.13:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 07:41:12,114 PM [test-pekko.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [09/03/2025 19:41:12.114] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.171.13:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [09/03/2025 19:41:12.114] [test-pekko.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger