[DEBUG] [07/01/2025 17:39:46.251] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 05:39:46,251 PM [test-pekko.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [07/01/2025 17:39:46.252] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [07/01/2025 17:39:46.252] [main] [EventStream(pekko://test)] Default Loggers started 05:39:46,272 PM [test-pekko.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.186:17355] with UID [2985301074157259300] [INFO] [07/01/2025 17:39:46.272] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.171.186:17355] with UID [2985301074157259300] 05:39:46,273 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.186:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/01/2025 17:39:46.273] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.186:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [07/01/2025 17:39:46.274] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.186:17355] - Registered cluster JMX MBean [pekko:type=Cluster] [INFO] [07/01/2025 17:39:46.274] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.186:17355] - Started up successfully 05:39:46,275 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.186:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 05:39:46,275 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.186:17355] - Started up successfully [INFO] [07/01/2025 17:39:46.275] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.186:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [07/01/2025 17:39:46.275] [test-pekko.actor.internal-dispatcher-2] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.171.186:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 05:39:46,276 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.186:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 05:39:46,276 PM [test-pekko.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [pekko://test@10.30.171.186:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 05:39:46,286 PM [main] [INFO] FollowerTest - Starting testHandleInstallSnapshot 05:39:46,286 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,381 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:39:46,382 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:39:46,382 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:39:46,385 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:39:46,386 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 05:39:46,386 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 1 (of expected 1) 05:39:46,386 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 05:39:46,386 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 05:39:46,391 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=2, success=true} 05:39:46,391 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior424#238871862] 05:39:46,403 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower425#-1638102713] 05:39:46,403 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader426#-1903684535] 05:39:46,407 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesPreviousLogEntryMissing 05:39:46,407 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,411 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]]} 05:39:46,412 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 05:39:46,412 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} 05:39:46,412 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 05:39:46,413 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior427#2046511089] 05:39:46,424 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower428#829036518] 05:39:46,424 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader429#-893814411] 05:39:46,426 PM [main] [INFO] FollowerTest - Starting testInitialSyncUpWithHandleInstallSnapshot 05:39:46,426 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,427 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:39:46,427 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:39:46,427 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:39:46,427 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:39:46,427 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=29, chunk=2/2, lastChunkHashCode=OptionalInt.empty} 05:39:46,428 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=2, lastChunkIndex=1, collectedChunks.size=50, lastChunkHashCode=675006801 05:39:46,428 PM [main] [INFO] Follower - follower (Follower): Snapshot received from leader: leader 05:39:46,428 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:39:46,429 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 05:39:46,429 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]]} 05:39:46,430 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 05:39:46,430 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} 05:39:46,430 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader and reached 101 (of expected 1) 05:39:46,430 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior430#-711328036] 05:39:46,441 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower431#338928184] 05:39:46,441 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader432#-503064700] 05:39:46,443 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,444 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 05:39:46,448 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior433#-109758267] 05:39:46,449 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower434#-1043210890] 05:39:46,449 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader435#-662450023] 05:39:46,453 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 05:39:46,453 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,454 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 05:39:46,455 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]]} 05:39:46,456 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:39:46,456 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:39:46,457 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:39:46,457 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:39:46,457 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:39:46,457 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} 05:39:46,457 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:39:46,457 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:39:46,458 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:39:46,459 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior436#813509299] 05:39:46,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower437#1569367198] 05:39:46,460 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader438#-1644710985] 05:39:46,462 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithExistingLogEntry 05:39:46,463 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,464 PM [main] [DEBUG] Follower - follower (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=1, term=1, command=one]]} 05:39:46,464 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:39:46,464 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 05:39:46,464 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 05:39:46,464 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:39:46,464 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 1 05:39:46,464 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} 05:39:46,464 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:39:46,464 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 05:39:46,464 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:39:46,464 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:39:46,464 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:39:46,464 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:39:46,465 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]]} 05:39:46,465 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:39:46,465 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=1, term=1, command=one] is present: existingEntryTerm: 1 05:39:46,465 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 05:39:46,465 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two 05:39:46,465 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 05:39:46,465 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 05:39:46,465 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} 05:39:46,466 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 05:39:46,466 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 05:39:46,466 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:39:46,466 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:39:46,467 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior439#15338056] 05:39:46,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower440#1495037371] 05:39:46,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader441#-19375763] 05:39:46,470 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogTermNotSameAsReceiverPrevLogTerm 05:39:46,470 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,471 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 05:39:46,471 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 05:39:46,471 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} 05:39:46,472 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 101 05:39:46,472 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior442#161120837] 05:39:46,472 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower443#1115766299] 05:39:46,472 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader444#-1588396908] 05:39:46,474 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,477 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior445#-555291744] 05:39:46,478 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower446#1051151781] 05:39:46,478 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader447#-600206215] 05:39:46,480 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWithNewerCommitIndex 05:39:46,480 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,480 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 05:39:46,480 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 05:39:46,481 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]]} 05:39:46,481 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:39:46,481 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:39:46,481 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:39:46,481 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:39:46,481 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:39:46,481 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} 05:39:46,481 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:39:46,481 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 100, lastIndex(): 101 05:39:46,481 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 101 05:39:46,481 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 100 to 101 05:39:46,481 PM [main] [DEBUG] SnapshotManager - follower: fakeSnapshot purging log to 100 for term 2 05:39:46,482 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior448#858047472] 05:39:46,482 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower449#-1216252989] 05:39:46,482 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader450#1764384436] 05:39:46,484 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnLastEntryInAppendEntries [WARN] [07/01/2025 17:39:46.486] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@2254b0df [INFO] [pekkoDeadLetter][07/01/2025 17:39:46.487] [test-pekko.actor.default-dispatcher-6] [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'. 05:39:46,487 PM [test-pekko.actor.default-dispatcher-6] [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'. 05:39:46,488 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Starting recovery with journal batch size 1000 05:39:46,489 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 05:39:46,489 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: started executor 05:39:46,490 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3888644369916487014/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties does not exist 05:39:46,490 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: no eligible files found 05:39:46,490 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:39:46,490 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 05:39:46,494 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnLastEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:39:46,494 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnLastEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 05:39:46,494 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@190ce7f1 05:39:46,495 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries: AppendEntries{term=1, leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=0, term=1, command=one], DefaultLogEntry[index=1, term=1, command=two]]} 05:39:46,495 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Number of entries to be appended = 2 05:39:46,495 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:39:46,495 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log one 05:39:46,495 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:39:46,495 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Append entry to log two 05:39:46,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:39:46,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Log size is now 2 05:39:46,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Commit index set to 1 05:39:46,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): handleAppendEntries returning : AppendEntriesReply{term=1, success=true, followerId=testCaptureSnapshotOnLastEntryInAppendEntries, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5} 05:39:46,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnLastEntryInAppendEntries: Last sync leader does not match current leader leader, need to catch up to 1 05:39:46,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] Follower - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 05:39:46,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 0 05:39:46,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from -1 to 0 05:39:46,496 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 0 data one 05:39:46,496 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: one 05:39:46,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnLastEntryInAppendEntries (Follower): Setting last applied to 1 05:39:46,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnLastEntryInAppendEntries: Moving last applied index from 0 to 1 05:39:46,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Applying state for log index 1 data two 05:39:46,497 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: applyState called: two 05:39:46,497 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: Persisting ApplyJournalEntries with index=1 05:39:46,498 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:39:46,498 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnLastEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:39:46,498 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] 05:39:46,498 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: captured snapshot at lastSequenceNumber: 3 05:39:46,498 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Persising snapshot at EntryInfo[index=1, term=1]/EntryInfo[index=1, term=1] 05:39:46,498 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: support() called 05:39:46,498 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: log size 2 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 1 05:39:46,498 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 05:39:46,498 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d73041] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3888644369916487014/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068641D62-1DB694C1.tmp [WARN] [07/01/2025 17:39:46.498] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnLastEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 17:39:46.499] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] was unhandled. [2] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:39:46,499 PM [test-pekko.actor.default-dispatcher-6] [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'. 05:39:46,504 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d73041] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3888644369916487014/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068641D62-1DB694C1.v1 05:39:46,504 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d73041] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3888644369916487014/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068641D62-1DB694C1.v1 05:39:46,504 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d73041] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3888644369916487014/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:39:46,504 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d73041] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-01T17:39:46.498504897Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3888644369916487014/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068641D62-1DB694C1.v1, size=555, entryCompress=NONE, stateCompress=NONE} 05:39:46,504 PM [testCaptureSnapshotOnLastEntryInAppendEntries-%d73041] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: 1 completion(s) pending 05:39:46,504 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnLastEntryInAppendEntries: running 1 completion(s) 05:39:46,504 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: snapshot is durable as of 2025-07-01T17:39:46.498504897Z 05:39:46,504 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnLastEntryInAppendEntries: Snapshot success - sequence number: 3 05:39:46,504 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnLastEntryInAppendEntries: SnapshotComplete received 05:39:46,505 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnLastEntryInAppendEntries: handled a journal response 05:39:46,648 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3888644369916487014/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068641D62-1DB694C1.v1 05:39:46,648 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3888644369916487014/testCaptureSnapshotOnLastEntryInAppendEntries/TermInfo.properties 05:39:46,648 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=1, term=1], timestamp=2025-07-01T17:39:46.498504897Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest3888644369916487014/testCaptureSnapshotOnLastEntryInAppendEntries/snapshot-0000000068641D62-1DB694C1.v1, size=555, entryCompress=NONE, stateCompress=NONE} as the latest file 05:39:46,651 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior451#1024775965] 05:39:46,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower452#512088719] 05:39:46,652 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader453#68138882] 05:39:46,652 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnLastEntryInAppendEntries] 05:39:46,653 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 05:39:46,653 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnLastEntryInAppendEntries: stopped executor with 0 remaining tasks 05:39:46,655 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior454#-1189342292] 05:39:46,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower455#743754419] 05:39:46,656 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader456#277573284] 05:39:46,657 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNotTheSameAsCandidateId 05:39:46,657 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,658 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 05:39:46,658 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 05:39:46,659 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior457#-133584392] 05:39:46,659 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower458#-1715004691] 05:39:46,659 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader459#1137947081] 05:39:46,660 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInSnapshot 05:39:46,660 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,660 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 05:39:46,661 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]]} 05:39:46,661 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:39:46,661 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:39:46,661 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:39:46,661 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:39:46,661 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:39:46,661 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} 05:39:46,661 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:39:46,661 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:39:46,661 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:39:46,662 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior460#-2106797871] 05:39:46,662 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower461#-196318669] 05:39:46,662 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader462#-626119833] 05:39:46,663 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedBeforeSyncUpComplete 05:39:46,663 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,664 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 05:39:46,664 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]]} 05:39:46,664 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 05:39:46,664 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} 05:39:46,664 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:39:46,664 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 100 05:39:46,665 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]]} 05:39:46,665 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 05:39:46,665 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} 05:39:46,665 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 05:39:46,665 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior463#2013993706] 05:39:46,666 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower464#993112274] 05:39:46,666 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader465#-1430363757] 05:39:46,667 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,667 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior466#-764373888] 05:39:46,667 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower467#-1283339082] 05:39:46,667 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader468#1914761104] 05:39:46,669 PM [main] [INFO] FollowerTest - Starting testHandleSyncUpAppendEntries 05:39:46,669 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,669 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 05:39:46,669 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]]} 05:39:46,669 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 05:39:46,669 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} 05:39:46,670 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:39:46,670 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:39:46,670 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]]} 05:39:46,670 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 05:39:46,670 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} 05:39:46,670 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:39:46,671 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]]} 05:39:46,671 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 05:39:46,671 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} 05:39:46,671 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:39:46,671 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior469#331498754] 05:39:46,672 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower470#1156589828] 05:39:46,672 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader471#-1111481219] 05:39:46,673 PM [main] [INFO] FollowerTest - Starting testHandleAppendAfterInstallingSnapshot 05:39:46,673 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,673 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]]} 05:39:46,674 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:39:46,674 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 05:39:46,674 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 05:39:46,674 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:39:46,674 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 05:39:46,674 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} 05:39:46,674 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 4 05:39:46,674 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 05:39:46,674 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 4 05:39:46,674 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior472#1786611303] 05:39:46,675 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower473#-2013956029] 05:39:46,675 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader474#1791867576] 05:39:46,676 PM [main] [INFO] FollowerTest - Starting testNeedsLeaderAddress 05:39:46,676 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,676 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 05:39:46,678 PM [main] [DEBUG] Follower - New leader address: pekko://test/user/leader477 05:39:46,678 PM [main] [INFO] PeerInfos - follower: Peer address for peer leader set to pekko://test/user/leader477 05:39:46,679 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 05:39:46,679 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior475#375215488] 05:39:46,680 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower476#1199211060] 05:39:46,680 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader477#1802879721] 05:39:46,682 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntriesWithPrevIndexMinusOneAndReplicatedToAllIndexPresentInLog 05:39:46,682 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,682 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 05:39:46,682 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]]} 05:39:46,683 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:39:46,683 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 100, entries to be added from: 0 05:39:46,683 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log foo 05:39:46,683 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 2 05:39:46,683 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 101 05:39:46,683 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} 05:39:46,683 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:39:46,683 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 101, context.getLastApplied(): 1, lastIndex(): 101 05:39:46,683 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 2 from log. Cannot apply state. Ignoring 2 to 101 05:39:46,683 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior478#-1354991266] 05:39:46,684 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower479#-2095932704] 05:39:46,684 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader480#668005893] 05:39:46,688 PM [main] [INFO] FollowerTest - Starting testHandleFirstAppendEntries 05:39:46,688 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,689 PM [main] [INFO] Follower - follower (Follower): Term 2 in "AppendEntries{term=2, leaderId=leader-1, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=101, replicatedToAllIndex=100, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, entries==[DefaultLogEntry[index=101, term=2, command=foo]]}" message is greater than follower's term 1 - updating term 05:39:46,689 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]]} 05:39:46,689 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 05:39:46,689 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} 05:39:46,689 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:39:46,690 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior481#506260809] 05:39:46,690 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower482#-2087546436] 05:39:46,690 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader483#1268130922] 05:39:46,691 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnAppendEntriesWithUnapplied [WARN] [07/01/2025 17:39:46.692] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied]: org.opendaylight.controller.cluster.common.actor.Monitor@512e7cc8 05:39:46,692 PM [test-pekko.actor.default-dispatcher-11] [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'. [INFO] [pekkoDeadLetter][07/01/2025 17:39:46.692] [test-pekko.actor.default-dispatcher-7] [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'. 05:39:46,692 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Starting recovery with journal batch size 1000 05:39:46,693 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 05:39:46,693 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: started executor 05:39:46,694 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6035435225004325834/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties does not exist 05:39:46,694 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: no eligible files found 05:39:46,694 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 05:39:46,694 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 05:39:46,709 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnAppendEntriesWithUnapplied: Set currentTerm=1, votedFor=null 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnAppendEntriesWithUnapplied: Local TermInfo store seeded with TermInfo{term=1} 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@552a5907 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [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]]} 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Number of entries to be appended = 3 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log one 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log two 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Append entry to log three 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Log size is now 3 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Commit index set to 0 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [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} 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - testCaptureSnapshotOnAppendEntriesWithUnapplied: Last sync leader does not match current leader leader, need to catch up to 0 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnAppendEntriesWithUnapplied (Follower): Setting last applied to 0 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnAppendEntriesWithUnapplied: Moving last applied index from -1 to 0 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Applying state for log index 0 data one 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: applyState called: one 05:39:46,710 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persisting ApplyJournalEntries with index=0 05:39:46,711 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:39:46,711 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:39:46,711 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnAppendEntriesWithUnapplied: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 05:39:46,711 PM [test-pekko.actor.default-dispatcher-6] [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] 05:39:46,711 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: captured snapshot at lastSequenceNumber: 4 05:39:46,711 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Persising snapshot at EntryInfo[index=0, term=1]/EntryInfo[index=2, term=1] 05:39:46,711 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: support() called 05:39:46,711 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: log size 3 exceeds the snapshot batch count 1 - doing snapshotPreCommit with index 0 05:39:46,711 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 0 and term: 1 [WARN] [07/01/2025 17:39:46.711] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnAppendEntriesWithUnapplied, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 17:39:46.711] [test-pekko.actor.default-dispatcher-6] [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'. 05:39:46,712 PM [test-pekko.actor.default-dispatcher-6] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/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'. 05:39:46,712 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d545596] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6035435225004325834/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068641D62-2A6AC375.tmp 05:39:46,744 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d545596] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6035435225004325834/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068641D62-2A6AC375.v1 05:39:46,745 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d545596] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6035435225004325834/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068641D62-2A6AC375.v1 05:39:46,745 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d545596] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6035435225004325834/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:39:46,745 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d545596] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-01T17:39:46.711639925Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6035435225004325834/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068641D62-2A6AC375.v1, size=701, entryCompress=NONE, stateCompress=NONE} 05:39:46,745 PM [testCaptureSnapshotOnAppendEntriesWithUnapplied-%d545596] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: 1 completion(s) pending 05:39:46,745 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnAppendEntriesWithUnapplied: running 1 completion(s) 05:39:46,745 PM [test-pekko.actor.default-dispatcher-6] [INFO] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: snapshot is durable as of 2025-07-01T17:39:46.711639925Z 05:39:46,745 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SnapshotManager - testCaptureSnapshotOnAppendEntriesWithUnapplied: Snapshot success - sequence number: 4 05:39:46,745 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnAppendEntriesWithUnapplied: SnapshotComplete received 05:39:46,746 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnAppendEntriesWithUnapplied: handled a journal response 05:39:46,862 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6035435225004325834/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068641D62-2A6AC375.v1 05:39:46,862 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6035435225004325834/testCaptureSnapshotOnAppendEntriesWithUnapplied/TermInfo.properties 05:39:46,862 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: picked SnapshotFileV1{lastIncluded=EntryInfo[index=0, term=1], timestamp=2025-07-01T17:39:46.711639925Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest6035435225004325834/testCaptureSnapshotOnAppendEntriesWithUnapplied/snapshot-0000000068641D62-2A6AC375.v1, size=701, entryCompress=NONE, stateCompress=NONE} as the latest file 05:39:46,863 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior484#1122261820] 05:39:46,864 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower485#2137881280] 05:39:46,866 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader486#-555139279] 05:39:46,866 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnAppendEntriesWithUnapplied] 05:39:46,866 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 05:39:46,866 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnAppendEntriesWithUnapplied: stopped executor with 0 remaining tasks 05:39:46,870 PM [main] [INFO] FollowerTest - Starting testFirstAppendEntriesWithNoPrevIndexAndReplicatedToAllPresentInSnapshotButCalculatedPrevEntryMissing 05:39:46,870 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,871 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 05:39:46,872 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]]} 05:39:46,872 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 05:39:46,873 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} 05:39:46,873 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 105 05:39:46,874 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior487#690831608] 05:39:46,884 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower488#-33293865] 05:39:46,884 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader489#-1352336303] 05:39:46,887 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesSenderPrevLogIndexIsInTheSnapshot 05:39:46,887 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,888 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 05:39:46,889 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 7 05:39:46,889 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 8 05:39:46,889 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 8, context.getLastApplied(): -1, lastIndex(): 7 05:39:46,889 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 0 from log. Cannot apply state. Ignoring 0 to 8 05:39:46,890 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior490#204064663] 05:39:46,901 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower491#1945928650] 05:39:46,901 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader492#1048851958] 05:39:46,903 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesCorrectReceiverLogEntries 05:39:46,904 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,904 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 05:39:46,905 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]]} 05:39:46,905 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:39:46,905 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 05:39:46,905 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:39:46,905 PM [main] [INFO] Follower - follower (Follower): Removing entries from log starting at 2, commitIndex: -1, lastApplied: -1 05:39:46,906 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 05:39:46,906 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log two-1 05:39:46,906 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 05:39:46,906 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 4 05:39:46,906 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 3 05:39:46,906 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} 05:39:46,906 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 05:39:46,906 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): -1, lastIndex(): 3 05:39:46,907 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:39:46,907 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:39:46,907 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:39:46,907 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:39:46,907 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:39:46,907 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:39:46,907 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 05:39:46,907 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 05:39:46,908 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior493#-1861474913] 05:39:46,918 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower494#-907793188] 05:39:46,919 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader495#-1782282784] 05:39:46,922 PM [main] [INFO] FollowerTest - Starting testHandleOutOfSequenceInstallSnapshot 05:39:46,922 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,923 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=3, lastIncludedTerm=1, datasize=50, chunk=3/3, lastChunkHashCode=OptionalInt.empty} 05:39:46,923 PM [main] [DEBUG] Follower - follower (Follower): expected chunkIndex 1 got 3 05:39:46,924 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior496#1735993119] 05:39:46,935 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower497#-2021539278] 05:39:46,935 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader498#-861354623] 05:39:46,938 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshotFromDifferentLeader 05:39:46,938 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,939 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:39:46,939 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:39:46,939 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:39:46,939 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:39:46,940 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 05:39:46,941 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]]} 05:39:46,941 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 05:39:46,942 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:39:46,942 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 05:39:46,942 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log 3 05:39:46,942 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 3 05:39:46,942 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 2 05:39:46,942 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} 05:39:46,942 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader new-leader, need to catch up to 2 05:39:46,942 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 05:39:46,942 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:39:46,942 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:39:46,942 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior499#-272124660] 05:39:46,953 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower500#1165481522] 05:39:46,953 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader501#-1730403974] 05:39:46,956 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesLeaderChangedAfterSyncUpComplete 05:39:46,956 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:46,957 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 05:39:46,958 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]]} 05:39:46,958 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 05:39:46,959 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} 05:39:46,959 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 101 05:39:46,959 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 101 05:39:46,960 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]]} 05:39:46,960 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 05:39:46,960 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} 05:39:46,961 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging 1 entries behind leader leader-1 and reached 101 (of expected 101) 05:39:46,961 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 100 05:39:46,962 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]]} 05:39:46,962 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 05:39:46,962 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} 05:39:46,962 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-2, need to catch up to 46 05:39:46,963 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior502#714543703] 05:39:46,973 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower503#-1003329746] 05:39:46,974 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader504#-1665590352] 05:39:46,976 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenNoLeaderMessageReceived 05:39:46,977 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:47,177 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:39:47,177 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.186:17355, Removed) 05:39:47,177 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout - switching to Candidate 05:39:47,177 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 05:39:47,177 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 05:39:47,177 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 05:39:47,177 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior505#174409693] 05:39:47,188 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower506#1473191261] 05:39:47,189 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader507#1166072094] 05:39:47,192 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:47,192 PM [main] [DEBUG] PeerInfos - follower: Updated server config: isVoting: false, peers: [] 05:39:47,393 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:39:47,393 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior508#1737295312] 05:39:47,405 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower509#-1308322835] 05:39:47,405 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader510#1114435288] 05:39:47,408 PM [main] [INFO] FollowerTest - Starting testHandleRequestVoteWhenSenderTermEqualToCurrentTermAndVotedForIsNull 05:39:47,408 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:47,410 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 05:39:47,411 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=true} 05:39:47,412 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior511#1498265585] 05:39:47,422 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower512#1040044897] 05:39:47,422 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader513#-1399237259] 05:39:47,424 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesAddNewEntries 05:39:47,424 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:47,425 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]]} 05:39:47,425 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:39:47,425 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 05:39:47,425 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log three 05:39:47,425 PM [main] [DEBUG] Follower - follower (Follower): Append entry to log four 05:39:47,425 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 5 05:39:47,425 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 4 05:39:47,426 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} 05:39:47,426 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 4 05:39:47,426 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): -1, lastIndex(): 4 05:39:47,426 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:39:47,426 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:39:47,426 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 1 05:39:47,426 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 0 to 1 05:39:47,426 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 2 05:39:47,426 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 1 to 2 05:39:47,426 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 3 05:39:47,426 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 2 to 3 05:39:47,426 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 4 05:39:47,426 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from 3 to 4 05:39:47,427 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior514#-1536208249] 05:39:47,437 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower515#1518324043] 05:39:47,438 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader516#-1346994673] 05:39:47,440 PM [main] [INFO] FollowerTest - Starting testReceivingAppendEntriesDuringInstallSnapshot 05:39:47,440 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:47,440 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot: InstallSnapshot{term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=50, chunk=1/2, lastChunkHashCode=OptionalInt.empty} 05:39:47,440 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 1 05:39:47,441 PM [main] [DEBUG] SnapshotTracker - follower (Follower): addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 05:39:47,441 PM [main] [DEBUG] Follower - follower (Follower): handleInstallSnapshot returning: InstallSnapshotReply{term=1, followerId=follower, chunkIndex=1, success=true} 05:39:47,442 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]]} 05:39:47,442 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} 05:39:47,443 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior517#-612109232] 05:39:47,453 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower518#-1618220110] 05:39:47,453 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader519#487455517] 05:39:47,455 PM [main] [INFO] FollowerTest - Starting testHandleAppendEntriesWhenOutOfSyncLogDetectedRequestForceInstallSnapshot 05:39:47,455 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:47,456 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 05:39:47,457 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]]} 05:39:47,457 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 2 05:39:47,457 PM [main] [DEBUG] Follower - follower (Follower): matchEntry DefaultLogEntry[index=2, term=2, command=two-1] is present: existingEntryTerm: 1 05:39:47,458 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to 3 05:39:47,458 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior520#285392937] 05:39:47,468 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower521#-615497371] 05:39:47,469 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader522#770746030] 05:39:47,470 PM [main] [INFO] FollowerTest - Starting testCaptureSnapshotOnMiddleEntryInAppendEntries [WARN] [07/01/2025 17:39:47.471] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@64f02dbe 05:39:47,471 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] to Actor[pekko://test/user/termination-monitor] was not delivered. [5] dead letters encountered. If this is not an expected behavior then Actor[pekko://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][07/01/2025 17:39:47.471] [test-pekko.actor.default-dispatcher-11] [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'. 05:39:47,472 PM [test-pekko.actor.default-dispatcher-7] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 05:39:47,472 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:39:47,472 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:39:47,477 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17937181946572989557/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties does not exist 05:39:47,477 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: no eligible files found 05:39:47,477 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:39:47,477 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 05:39:47,481 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:39:47,481 PM [test-pekko.actor.default-dispatcher-7] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Local TermInfo store seeded with TermInfo{term=1} 05:39:47,481 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3936931e 05:39:47,482 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]]} 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Number of entries to be appended = 3 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log one 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=0, term=1, command=one] 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log two 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=1, term=1, command=two] 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Append entry to log three 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: Append log entry and persist DefaultLogEntry[index=2, term=1, command=three] 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Log size is now 3 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Commit index set to 2 05:39:47,482 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} 05:39:47,482 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 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] Follower - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 2 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 0 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from -1 to 0 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 0 data one 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: one 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 1 05:39:47,482 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 0 to 1 05:39:47,483 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 1 data two 05:39:47,483 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: two 05:39:47,483 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActorBehavior - testCaptureSnapshotOnMiddleEntryInAppendEntries (Follower): Setting last applied to 2 05:39:47,483 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 1 to 2 05:39:47,483 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Applying state for log index 2 data three 05:39:47,483 PM [test-pekko.actor.default-dispatcher-7] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: applyState called: three 05:39:47,483 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persisting ApplyJournalEntries with index=2 05:39:47,483 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=0, term=1, command=one, pending=false} 05:39:47,483 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=1, term=1, command=two, pending=false} 05:39:47,483 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] ReplicatedLogImpl - testCaptureSnapshotOnMiddleEntryInAppendEntries: persist complete JournaledLogEntry{index=2, term=1, command=three, pending=false} 05:39:47,483 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] 05:39:47,483 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: captured snapshot at lastSequenceNumber: 4 05:39:47,483 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Persising snapshot at EntryInfo[index=2, term=1]/EntryInfo[index=2, term=1] 05:39:47,483 PM [test-pekko.actor.default-dispatcher-11] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 05:39:47,484 PM [test-pekko.actor.default-dispatcher-11] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: log size 3 exceeds the snapshot batch count 2 - doing snapshotPreCommit with index 2 05:39:47,484 PM [test-pekko.actor.default-dispatcher-11] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 05:39:47,484 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d621314] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: starting snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17937181946572989557/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068641D63-1CD935C4.tmp 05:39:47,484 PM [test-pekko.actor.default-dispatcher-11] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [WARN] [07/01/2025 17:39:47.484] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] unhandled message from Actor[pekko://test/deadLetters]: FollowerInitialSyncUpStatus[memberId=testCaptureSnapshotOnMiddleEntryInAppendEntries, initialSyncDone=false] [INFO] [pekkoDeadLetter][07/01/2025 17:39:47.484] [test-pekko.actor.default-dispatcher-11] [pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 05:39:47,486 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d621314] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: finished snapshot writeout to /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17937181946572989557/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068641D63-1CD935C4.v1 05:39:47,486 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d621314] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17937181946572989557/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068641D63-1CD935C4.v1 05:39:47,486 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d621314] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17937181946572989557/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:39:47,486 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d621314] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: retaining snapshot SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-01T17:39:47.483997124Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17937181946572989557/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068641D63-1CD935C4.v1, size=573, entryCompress=NONE, stateCompress=NONE} 05:39:47,486 PM [testCaptureSnapshotOnMiddleEntryInAppendEntries-%d621314] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: 1 completion(s) pending 05:39:47,486 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorageCompleter - testCaptureSnapshotOnMiddleEntryInAppendEntries: running 1 completion(s) 05:39:47,486 PM [test-pekko.actor.default-dispatcher-14] [INFO] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: snapshot is durable as of 2025-07-01T17:39:47.483997124Z 05:39:47,486 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SnapshotManager - testCaptureSnapshotOnMiddleEntryInAppendEntries: Snapshot success - sequence number: 4 05:39:47,487 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActorSnapshotMessageSupport - testCaptureSnapshotOnMiddleEntryInAppendEntries: SnapshotComplete received 05:39:47,487 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: handled a journal response 05:39:47,635 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17937181946572989557/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068641D63-1CD935C4.v1 05:39:47,635 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17937181946572989557/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:39:47,635 PM [awaitility-thread] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-01T17:39:47.483997124Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17937181946572989557/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068641D63-1CD935C4.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 05:39:47,637 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 05:39:47,649 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:39:47,649 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:39:47,650 PM [test-pekko.actor.default-dispatcher-6] [INFO] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Starting recovery with journal batch size 1000 05:39:47,650 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor 05:39:47,651 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: started executor [WARN] [07/01/2025 17:39:47.651] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries]: org.opendaylight.controller.cluster.common.actor.Monitor@1713ebb4 [INFO] [pekkoDeadLetter][07/01/2025 17:39:47.651] [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'. 05:39:47,651 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'. 05:39:47,653 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:39:47,653 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: selected SNAPSHOT_V1 to handle file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17937181946572989557/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068641D63-1CD935C4.v1 05:39:47,653 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: skipping unrecognized file /tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17937181946572989557/testCaptureSnapshotOnMiddleEntryInAppendEntries/TermInfo.properties 05:39:47,653 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: picked SnapshotFileV1{lastIncluded=EntryInfo[index=2, term=1], timestamp=2025-07-01T17:39:47.483997124Z, file=/tmp/org.opendaylight.controller.cluster.raft.behaviors.FollowerTest17937181946572989557/testCaptureSnapshotOnMiddleEntryInAppendEntries/snapshot-0000000068641D63-1CD935C4.v1, size=573, entryCompress=NONE, stateCompress=NONE} as the latest file 05:39:47,653 PM [test-pekko.actor.default-dispatcher-6] [INFO] MockRaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: support() called 05:39:47,654 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: initializing from snapshot taken at 2025-07-01T17:39:47.483997124Z 05:39:47,654 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:39:47,654 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - Recovery snapshot applied for testCaptureSnapshotOnMiddleEntryInAppendEntries in 139.5 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 05:39:47,654 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Received apply journal entries for recovery, applying to state: 3 to 2 05:39:47,654 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractReplicatedLog - testCaptureSnapshotOnMiddleEntryInAppendEntries: Moving last applied index from 2 to 2 05:39:47,655 PM [test-pekko.actor.default-dispatcher-6] [INFO] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: Recovery completed in 701.8 μs - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 05:39:47,655 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PekkoRecovery - testCaptureSnapshotOnMiddleEntryInAppendEntries: restoring local TermInfo{term=1} 05:39:47,655 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] PropertiesTermInfoStore - testCaptureSnapshotOnMiddleEntryInAppendEntries: Set currentTerm=1, votedFor=null 05:39:47,655 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] RaftActor - testCaptureSnapshotOnMiddleEntryInAppendEntries: Pekko recovery completed with org.opendaylight.controller.cluster.raft.RecoveryLog@3db0157e 05:39:47,655 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior523#-1283724148] 05:39:47,667 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower524#6776751] 05:39:47,667 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader525#-2134497743] 05:39:47,667 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/testCaptureSnapshotOnMiddleEntryInAppendEntries] 05:39:47,667 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:39:47,667 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] RaftStorage - testCaptureSnapshotOnMiddleEntryInAppendEntries: stopped executor with 0 remaining tasks 05:39:47,671 PM [main] [INFO] FollowerTest - Starting testHandleElectionTimeoutWhenLeaderMessageReceived 05:39:47,672 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:47,972 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 05:39:48,103 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:39:48,103 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 130 < election timeout PT0.4S 05:39:48,353 PM [main] [DEBUG] SyncStatusTracker - follower: Lagging -2 entries behind leader leader and reached 1 (of expected -1) 05:39:48,553 PM [main] [DEBUG] Follower - follower (Follower): Received ElectionTimeout but lastLeaderMessageInterval 200 < election timeout PT0.4S 05:39:48,554 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior526#1775596383] 05:39:48,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower527#2142486037] 05:39:48,565 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader528#-1135791707] 05:39:48,568 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:48,569 PM [main] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 05:39:48,569 PM [main] [DEBUG] Follower - follower (Follower): Received TimeoutNow - switching to Candidate 05:39:48,569 PM [main] [DEBUG] Candidate - follower (Candidate): Election: Candidate has following voting peers: [] 05:39:48,569 PM [main] [INFO] Candidate - follower (Candidate): Starting new election term 2 05:39:48,570 PM [main] [INFO] RaftActorBehavior - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 05:39:48,570 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior529#1759692068] 05:39:48,581 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower530#-852113987] 05:39:48,581 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader531#-1335187814] 05:39:48,583 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:48,585 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 05:39:48,585 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=true} 05:39:48,585 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior532#299524706] 05:39:48,596 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower533#2109230537] 05:39:48,596 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader534#-2011159529] 05:39:48,599 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:48,601 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]]} 05:39:48,601 PM [main] [DEBUG] Follower - follower (Follower): Number of entries to be appended = 1 05:39:48,601 PM [main] [DEBUG] Follower - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 05:39:48,601 PM [main] [DEBUG] Follower - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 05:39:48,601 PM [main] [DEBUG] Follower - follower (Follower): Log size is now 1 05:39:48,601 PM [main] [DEBUG] Follower - follower (Follower): Commit index set to 0 05:39:48,601 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} 05:39:48,602 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 2 05:39:48,602 PM [main] [DEBUG] Follower - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): -1, lastIndex(): 0 05:39:48,602 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Setting last applied to 0 05:39:48,602 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:39:48,602 PM [main] [WARN] RaftActorBehavior - follower (Follower): Missing index 1 from log. Cannot apply state. Ignoring 1 to 2 05:39:48,602 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior535#-924127000] 05:39:48,613 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower536#933048924] 05:39:48,613 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader537#-2027975053] 05:39:48,616 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:48,617 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 05:39:48,618 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1, voteGranted=false} 05:39:48,618 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior538#2041674387] 05:39:48,629 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539#-1198980963] 05:39:48,629 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader540#-276669899] 05:39:48,631 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:48,632 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 05:39:48,633 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 05:39:48,633 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} 05:39:48,633 PM [main] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader-1, need to catch up to 1 05:39:48,634 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 05:39:48,635 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 05:39:48,635 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): Cluster state: [] 05:39:48,635 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. 05:39:48,635 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 05:39:48,636 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 05:39:48,636 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=100, voteGranted=true} 05:39:48,636 PM [main] [INFO] Follower - follower (Follower): Term 100 in "RequestVoteReply{term=100, voteGranted=false}" message is greater than follower's term 1 - updating term 05:39:48,637 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior541#186657149] 05:39:48,647 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower542#675783989] 05:39:48,648 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader543#-1134582597] 05:39:48,649 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:48,649 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:39:48,650 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 0 05:39:48,650 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:48,650 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 0 for term 1 05:39:48,650 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 05:39:48,650 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 05:39:48,650 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 2 05:39:48,650 PM [main] [DEBUG] SnapshotManager - test: fakeSnapshot purging log to 1 for term 1 05:39:48,651 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior544#1557440483] 05:39:48,661 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower545#1405717015] 05:39:48,661 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader546#-970610615] 05:39:48,664 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:48,665 PM [main] [INFO] RaftActorBehavior - follower (Follower): Cannot append entries because sender's term 100 is less than 1000 05:39:48,666 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior547#423493141] 05:39:48,676 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower548#687127859] 05:39:48,677 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader549#-767114458] 05:39:48,680 PM [main] [DEBUG] AbstractReplicatedLog - : Moving last applied index from -1 to 1 05:39:48,681 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 05:39:48,681 PM [main] [DEBUG] RaftActorBehavior - follower (Follower): requestVote returning: RequestVoteReply{term=1000, voteGranted=false} 05:39:48,681 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/behavior550#2144032432] 05:39:48,692 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower551#172743710] 05:39:48,692 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader552#2106619883]