[DEBUG] [08/01/2024 12:31:40.466] [main] [EventStream(pekko://test)] logger log1-TestEventListener started 12:31:40,467 PM [test-pekko.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/01/2024 12:31:40.467] [main] [EventStream(pekko://test)] logger log2-Slf4jLogger started [DEBUG] [08/01/2024 12:31:40.467] [main] [EventStream(pekko://test)] Default Loggers started [INFO] [08/01/2024 12:31:40.477] [main] [ArteryTransport(pekko://test)] Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.103:17355] with UID [7838915705174971492] [INFO] [08/01/2024 12:31:40.478] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - Starting up, Pekko version [1.0.3] ... 12:31:40,479 PM [test-pekko.actor.default-dispatcher-7] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [pekko://test@10.30.170.103:17355] with UID [7838915705174971492] 12:31:40,479 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - Starting up, Pekko version [1.0.3] ... [INFO] [08/01/2024 12:31:40.481] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 12:31:40,482 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - Registered cluster JMX MBean [pekko:type=Cluster] 12:31:40,482 PM [test-pekko.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - Started up successfully [INFO] [08/01/2024 12:31:40.482] [main] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - Started up successfully [INFO] [08/01/2024 12:31:40.483] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing [INFO] [08/01/2024 12:31:40.483] [test-pekko.actor.internal-dispatcher-4] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining 12:31:40,484 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - No downing-provider-class configured, manual cluster downing required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#downing 12:31:40,484 PM [test-pekko.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - No seed-nodes configured, manual cluster join required, see https://pekko.apache.org/docs/pekko/current/typed/cluster.html#joining [WARN] [08/01/2024 12:31:40.498] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower519]: org.opendaylight.controller.cluster.common.actor.Monitor@20ea99c4 [INFO] [pekkoDeadLetter][08/01/2024 12:31:40.498] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower519] 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'. 12:31:40,498 PM [test-pekko.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/follower519] 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'. 12:31:40,499 PM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower519 with journal batch size 1000 [WARN] [08/01/2024 12:31:40.500] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader518]: org.opendaylight.controller.cluster.common.actor.Monitor@4ef065ea [INFO] [pekkoDeadLetter][08/01/2024 12:31:40.500] [test-pekko.actor.default-dispatcher-5] [pekko://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader518] to Actor[pekko://test/user/termination-monitor] was not delivered. [2] 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'. 12:31:40,500 PM [test-pekko.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[pekko://test/user/leader518] to Actor[pekko://test/user/termination-monitor] was not delivered. [2] 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'. 12:31:40,501 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader518 with journal batch size 1000 12:31:40,502 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:31:40,503 PM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:31:41,8 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:31:41,9 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.103:17355, Removed) 12:31:41,9 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Follower): Received ElectionTimeout - switching to Candidate 12:31:41,9 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Candidate): Election: Candidate has following voting peers: [follower519, follower520] 12:31:41,9 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Set currentTerm=1, votedFor=leader518 12:31:41,9 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Candidate): Starting new election term 1 12:31:41,9 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Candidate): Sending RequestVote [term=1, candidateId=leader518, lastLogIndex=-1, lastLogTerm=-1] to peer follower519 12:31:41,10 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Candidate): Sending RequestVote [term=1, candidateId=leader518, lastLogIndex=-1, lastLogTerm=-1] to peer follower520 12:31:41,10 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:31:41,10 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Follower) :- Switching from behavior Follower to Candidate, election term: 1 12:31:41,10 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Cluster state: [] 12:31:41,10 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Candidate in requestVote:RequestVote [term=1, candidateId=leader518, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 12:31:41,10 PM [test-pekko.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Term 1 in "RequestVote [term=1, candidateId=leader518, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 12:31:41,10 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Set currentTerm=1, votedFor=null 12:31:41,10 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): In requestVote: RequestVote [term=1, candidateId=leader518, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 1, votedFor: null, lastIndex: -1, lastTerm: -1 12:31:41,10 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Set currentTerm=1, votedFor=leader518 12:31:41,11 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): requestVote returning: RequestVoteReply [term=1, voteGranted=true] [WARN] [08/01/2024 12:31:41.011] [test-pekko.actor.default-dispatcher-5] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader518]: RequestVote [term=1, candidateId=leader518, lastLogIndex=-1, lastLogTerm=-1] 12:31:41,11 PM [test-pekko.actor.default-dispatcher-14] [INFO] LocalActorRefProvider$$anon$2 - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.RequestVote] from TestActor[pekko://test/user/leader518] to Actor[pekko://test/] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/01/2024 12:31:41.011] [test-pekko.actor.default-dispatcher-14] [pekko://test/] Message [org.opendaylight.controller.cluster.raft.messages.RequestVote] from TestActor[pekko://test/user/leader518] to Actor[pekko://test/] was unhandled. [3] 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'. 12:31:41,12 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 12:31:41,12 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:31:41,12 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Election: Leader has following peers: [follower519, follower520] 12:31:41,12 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower519: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:41,12 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower520: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:41,12 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 [WARN] [08/01/2024 12:31:41.013] [test-pekko.actor.default-dispatcher-6] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader518]: AppendEntries [leaderId=leader518, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [INFO] [pekkoDeadLetter][08/01/2024 12:31:41.013] [test-pekko.actor.default-dispatcher-6] [pekko://test/] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader518] to Actor[pekko://test/] 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'. 12:31:41,13 PM [test-pekko.actor.default-dispatcher-6] [INFO] LocalActorRefProvider$$anon$2 - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader518] to Actor[pekko://test/] 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'. 12:31:41,14 PM [test-pekko.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower519: Last sync leader does not match current leader leader518, need to catch up to -1 12:31:41,14 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower519 updated: matchIndex: -1, nextIndex: 0 [WARN] [08/01/2024 12:31:41.014] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower519] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@16eaf4b2 12:31:41,14 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower519: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:41,14 PM [test-pekko.actor.default-dispatcher-7] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower519] was unhandled. [5] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/01/2024 12:31:41.014] [test-pekko.actor.default-dispatcher-6] [pekko://test/user/follower519] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower519] was unhandled. [5] 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'. 12:31:41,56 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:41,57 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:41,57 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:31:41,57 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower519: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:41,57 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): sendAppendEntries: 0 is present for follower follower519 12:31:41,57 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Sending AppendEntries to follower follower519: AppendEntries [leaderId=leader518, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]] 12:31:41,57 PM [test-pekko.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower520: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:41,58 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): handleAppendEntries: AppendEntries [leaderId=leader518, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]] 12:31:41,58 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Number of entries to be appended = 1 12:31:41,58 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:31:41,58 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Append entry to log zero 12:31:41,58 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:41,59 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Log size is now 1 12:31:41,59 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower519, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:31:41,59 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower519: Lagging 0 entries behind leader leader518 and reached -1 (of expected -1) [WARN] [08/01/2024 12:31:41.059] [test-pekko.actor.default-dispatcher-15] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader518]: AppendEntries [leaderId=leader518, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [INFO] [pekkoDeadLetter][08/01/2024 12:31:41.059] [test-pekko.actor.default-dispatcher-6] [pekko://test/] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader518] to Actor[pekko://test/] 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'. 12:31:41,59 PM [test-pekko.actor.default-dispatcher-15] [INFO] LocalActorRefProvider$$anon$2 - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader518] to Actor[pekko://test/] 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'. 12:31:41,59 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower519 updated: matchIndex: 0, nextIndex: 1 12:31:41,60 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower519: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:41,60 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:41,60 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 12:31:41,60 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Setting last applied to 0 12:31:41,60 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Moving last applied index from -1 to 0 12:31:41,60 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Applying state for log index 0 data zero 12:31:41,60 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: applyState called: zero 12:31:41,60 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Persisting ApplyJournalEntries with index=0 12:31:41,60 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] [WARN] [08/01/2024 12:31:41.061] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower519] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@419e333a 12:31:41,61 PM [test-pekko.actor.default-dispatcher-18] [INFO] TestActorRef - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower519] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/01/2024 12:31:41.061] [test-pekko.actor.default-dispatcher-18] [pekko://test/user/follower519] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[pekko://test/user/follower519] was unhandled. [7] 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'. 12:31:41,107 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Persist data SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:41,107 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:41,107 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:31:41,107 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower519: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:41,107 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): sendAppendEntries: 1 is present for follower follower519 12:31:41,107 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Sending AppendEntries to follower follower519: AppendEntries [leaderId=leader518, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]] 12:31:41,108 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower520: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:41.108] [test-pekko.actor.default-dispatcher-18] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader518]: AppendEntries [leaderId=leader518, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:41,109 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:41,108 PM [test-pekko.actor.default-dispatcher-5] [INFO] LocalActorRefProvider$$anon$2 - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader518] to Actor[pekko://test/] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/01/2024 12:31:41.108] [test-pekko.actor.default-dispatcher-5] [pekko://test/] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader518] to Actor[pekko://test/] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:41,108 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): handleAppendEntries: AppendEntries [leaderId=leader518, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]] 12:31:41,109 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Number of entries to be appended = 1 12:31:41,109 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:31:41,109 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Append entry to log one 12:31:41,109 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:41,109 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Log size is now 2 12:31:41,109 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Commit index set to 0 12:31:41,109 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower519, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:31:41,109 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower519: Lagging 0 entries behind leader leader518 and reached 0 (of expected -1) 12:31:41,109 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 12:31:41,109 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Setting last applied to 0 12:31:41,109 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Moving last applied index from -1 to 0 12:31:41,109 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Applying state for log index 0 data zero 12:31:41,109 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower519 updated: matchIndex: 1, nextIndex: 2 12:31:41,109 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 12:31:41,109 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Setting last applied to 1 12:31:41,109 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Moving last applied index from 0 to 1 12:31:41,109 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Applying state for log index 1 data one 12:31:41,110 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: applyState called: zero 12:31:41,110 PM [test-pekko.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: applyState called: one 12:31:41,110 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower519: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:41,110 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Persisting ApplyJournalEntries with index=1 12:31:41,111 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:41,111 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Persisting ApplyJournalEntries with index=0 12:31:41,111 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Commit index set to 1 12:31:41,111 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower519: Lagging 0 entries behind leader leader518 and reached 1 (of expected -1) 12:31:41,111 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:31:41,112 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Setting last applied to 1 12:31:41,112 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Moving last applied index from 0 to 1 12:31:41,112 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Applying state for log index 1 data one 12:31:41,112 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: applyState called: one 12:31:41,112 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Persisting ApplyJournalEntries with index=1 [WARN] [08/01/2024 12:31:41.129] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader518]: AppendEntries [leaderId=leader518, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:41,129 PM [test-pekko.actor.default-dispatcher-18] [INFO] LocalActorRefProvider$$anon$2 - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader518] to Actor[pekko://test/] was unhandled. [9] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. [INFO] [pekkoDeadLetter][08/01/2024 12:31:41.129] [test-pekko.actor.default-dispatcher-18] [pekko://test/] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader518] to Actor[pekko://test/] was unhandled. [9] 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'. 12:31:41,158 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Persist data SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:41,158 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:41,158 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 12:31:41,158 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower519: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:31:41,158 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): sendAppendEntries: 2 is present for follower follower519 12:31:41,158 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Sending AppendEntries to follower follower519: AppendEntries [leaderId=leader518, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]] 12:31:41,158 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower520: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:31:41,158 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Persist data SimpleReplicatedLogEntry [index=3, term=1, payload=three] 12:31:41,158 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 12:31:41,158 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, isSendImmediate: true 12:31:41,158 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower519: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: -1 12:31:41,158 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): sendAppendEntries: 2 is present for follower follower519 12:31:41,158 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower520: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 12:31:41,158 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): handleAppendEntries: AppendEntries [leaderId=leader518, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]] 12:31:41,158 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Number of entries to be appended = 1 12:31:41,159 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:31:41,159 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Append entry to log two 12:31:41,159 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:41,159 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Log size is now 3 12:31:41,159 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower519, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:31:41,159 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower519: Lagging 0 entries behind leader leader518 and reached 1 (of expected -1) [WARN] [08/01/2024 12:31:41.159] [test-pekko.actor.default-dispatcher-5] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader518]: AppendEntries [leaderId=leader518, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [08/01/2024 12:31:41.159] [test-pekko.actor.default-dispatcher-5] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader518]: AppendEntries [leaderId=leader518, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:41,160 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:41,160 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower519 updated: matchIndex: 2, nextIndex: 3 12:31:41,160 PM [test-pekko.actor.default-dispatcher-14] [INFO] LocalActorRefProvider$$anon$2 - pekkoDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader518] to Actor[pekko://test/] was unhandled. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:41,160 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower519: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: -1 12:31:41,160 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): sendAppendEntries: 3 is present for follower follower519 12:31:41,160 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Sending AppendEntries to follower follower519: AppendEntries [leaderId=leader518, prevLogIndex=2, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=1, payload=three]]] 12:31:41,160 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:41,160 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): handleAppendEntries: AppendEntries [leaderId=leader518, prevLogIndex=2, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=1, payload=three]]] 12:31:41,160 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Number of entries to be appended = 1 12:31:41,160 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 12:31:41,160 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 12:31:41,160 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Append entry to log three 12:31:41,160 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Setting last applied to 2 12:31:41,160 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 12:31:41,160 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Moving last applied index from 1 to 2 12:31:41,160 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Applying state for log index 2 data two 12:31:41,160 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Log size is now 4 12:31:41,160 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower519, logLastIndex=3, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:31:41,160 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: applyState called: two 12:31:41,160 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower519: Lagging 0 entries behind leader leader518 and reached 1 (of expected -1) [INFO] [pekkoDeadLetter][08/01/2024 12:31:41.159] [test-pekko.actor.default-dispatcher-17] [pekko://test/] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[pekko://test/user/leader518] to Actor[pekko://test/] was unhandled. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. This logging can be turned off or adjusted with configuration settings 'pekko.log-dead-letters' and 'pekko.log-dead-letters-during-shutdown'. 12:31:41,160 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower519 updated: matchIndex: 3, nextIndex: 4 12:31:41,161 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower519: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: -1 12:31:41,161 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 12:31:41,161 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Persisting ApplyJournalEntries with index=2 12:31:41,161 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Commit index set to 2 12:31:41,161 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower519: Lagging 0 entries behind leader leader518 and reached 2 (of expected -1) 12:31:41,161 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 3 12:31:41,161 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519 (Follower): Setting last applied to 2 12:31:41,161 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Moving last applied index from 1 to 2 12:31:41,161 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Applying state for log index 2 data two 12:31:41,161 PM [test-pekko.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: applyState called: two 12:31:41,161 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 12:31:41,162 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower519: Persisting ApplyJournalEntries with index=2 12:31:41,162 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=3, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=1, mandatoryTrim=false] 12:31:41,162 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: lastSequenceNumber prior to capture: 7 12:31:41,162 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 12:31:41,162 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Setting last applied to 3 12:31:41,162 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Moving last applied index from 2 to 3 12:31:41,162 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Applying state for log index 3 data three 12:31:41,162 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: applyState called: three 12:31:41,162 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: CaptureSnapshotReply received by actor 12:31:41,162 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Persisting of snapshot done: Snapshot [lastIndex=3, lastTerm=1, lastAppliedIndex=2, lastAppliedTerm=1, unAppliedEntries size=1, state=MockSnapshotState [state=[zero, one, two]], electionTerm=1, electionVotedFor=leader518, ServerConfigPayload=null] 12:31:41,162 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: log size 4 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 2 12:31:41,162 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 12:31:41,162 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Persisting ApplyJournalEntries with index=3 12:31:41,162 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: SaveSnapshotSuccess received for snapshot, sequenceNr: 7 12:31:41,162 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Snapshot success - sequence number: 7 12:31:41,163 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: SnapshotComplete received 12:31:41,163 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: handled a journal response 12:31:41,163 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: handled a snapshot response 12:31:41,221 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Persist data SimpleReplicatedLogEntry [index=4, term=1, payload=four] 12:31:41,221 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=four] 12:31:41,221 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, isSendImmediate: true 12:31:41,221 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower519: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: 2 12:31:41,221 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): sendAppendEntries: 4 is present for follower follower519 12:31:41,221 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Sending AppendEntries to follower follower519: AppendEntries [leaderId=leader518, prevLogIndex=3, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=1, payload=four]]] 12:31:41,222 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower520: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: 2 [WARN] [08/01/2024 12:31:41.222] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower519] received dead letter from TestActor[pekko://test/user/leader518]: AppendEntries [leaderId=leader518, prevLogIndex=3, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=1, payload=four]]] [WARN] [08/01/2024 12:31:41.222] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader518]: AppendEntries [leaderId=leader518, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:41,243 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Persist data SimpleReplicatedLogEntry [index=5, term=1, payload=five] 12:31:41,243 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=1, payload=five] 12:31:41,244 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Replicate message: identifier: MockIdentifier{value=five}, logIndex: 5, isSendImmediate: true 12:31:41,244 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower519: active: true, followerNextIndex: 4, leaderLastIndex: 5, leaderSnapShotIndex: 2 12:31:41,244 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): sendAppendEntries: 4 is present for follower follower519 12:31:41,244 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower520: active: false, followerNextIndex: -1, leaderLastIndex: 5, leaderSnapShotIndex: 2 12:31:41,244 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=four] [WARN] [08/01/2024 12:31:41.244] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader518]: AppendEntries [leaderId=leader518, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:41,245 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: persist complete SimpleReplicatedLogEntry [index=5, term=1, payload=five] [WARN] [08/01/2024 12:31:41.248] [test-pekko.actor.default-dispatcher-17] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader518]: AppendEntries [leaderId=leader518, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:41,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Persist data SimpleReplicatedLogEntry [index=4, term=1, payload=newFour] 12:31:41,297 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=newFour] 12:31:41,298 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Replicate message: identifier: MockIdentifier{value=newFour}, logIndex: 4, isSendImmediate: true 12:31:41,298 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower519: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: 2 12:31:41,298 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): sendAppendEntries: 4 is present for follower follower519 12:31:41,298 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower520: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: 2 12:31:41,299 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Persist data SimpleReplicatedLogEntry [index=5, term=1, payload=newFive] 12:31:41,299 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=1, payload=newFive] [WARN] [08/01/2024 12:31:41.298] [test-pekko.actor.default-dispatcher-7] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader518]: AppendEntries [leaderId=leader518, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:41,299 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Replicate message: identifier: MockIdentifier{value=newFive}, logIndex: 5, isSendImmediate: true 12:31:41,300 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower519: active: true, followerNextIndex: 4, leaderLastIndex: 5, leaderSnapShotIndex: 2 12:31:41,300 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): sendAppendEntries: 4 is present for follower follower519 12:31:41,300 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Checking sendAppendEntries for follower follower520: active: false, followerNextIndex: -1, leaderLastIndex: 5, leaderSnapShotIndex: 2 [WARN] [08/01/2024 12:31:41.301] [test-pekko.actor.default-dispatcher-7] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader518]: AppendEntries [leaderId=leader518, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:41,301 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=newFour] 12:31:41,301 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: persist complete SimpleReplicatedLogEntry [index=5, term=1, payload=newFive] [WARN] [08/01/2024 12:31:41.363] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader518]: org.opendaylight.controller.cluster.common.actor.Monitor@a02a624 12:31:41,364 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader518 with journal batch size 1000 12:31:41,365 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: SnapshotOffer called. 12:31:41,365 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Moving last applied index from -1 to 2 12:31:41,365 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Set currentTerm=1, votedFor=leader518 12:31:41,365 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Recovery snapshot applied for leader518 in 212.3 μs: snapshotIndex=2, snapshotTerm=1, journal-size=1 12:31:41,367 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Received apply journal entries for recovery, applying to state: 3 to 2 12:31:41,367 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Moving last applied index from 2 to 2 12:31:41,367 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Received apply journal entries for recovery, applying to state: 3 to 3 12:31:41,367 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Moving last applied index from 2 to 3 12:31:41,367 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Received ReplicatedLogEntry for recovery: index: 4, size: 4 12:31:41,367 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Received ReplicatedLogEntry for recovery: index: 5, size: 4 12:31:41,368 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Received ReplicatedLogEntry for recovery: index: 4, size: 7 12:31:41,368 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Received ReplicatedLogEntry for recovery: index: 5, size: 7 12:31:41,368 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Recovery completed in 2.583 ms - Switching actor to Follower - last log index = 5, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 3 12:31:41,368 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower519-collector521#1664572628] 12:31:41,368 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Follower): Received TimeoutNow - switching to Candidate 12:31:41,369 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Candidate): Election: Candidate has following voting peers: [] 12:31:41,369 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518: Set currentTerm=2, votedFor=leader518 12:31:41,369 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Candidate): Starting new election term 2 12:31:41,369 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:31:41,370 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Candidate): Received ElectionTimeout 12:31:41,370 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Leader): Election: Leader has following peers: [] 12:31:41,370 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader518 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:31:41,379 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower519] 12:31:41,380 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518-collector522#375836867] 12:31:41,380 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader518] 12:31:41,380 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader518-collector523#1726017585] 12:31:41,380 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader518] [WARN] [08/01/2024 12:31:41.387] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower525]: org.opendaylight.controller.cluster.common.actor.Monitor@42af40ca 12:31:41,388 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower525 with journal batch size 1000 12:31:41,389 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [08/01/2024 12:31:41.390] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader524]: org.opendaylight.controller.cluster.common.actor.Monitor@7fcb9e2a 12:31:41,391 PM [test-pekko.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader524 with journal batch size 1000 12:31:41,392 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:31:41,889 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:31:41,889 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.103:17355, Removed) 12:31:41,889 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Follower): Received ElectionTimeout - switching to Candidate 12:31:41,889 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Candidate): Election: Candidate has following voting peers: [follower526, follower525] 12:31:41,889 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Set currentTerm=1, votedFor=leader524 12:31:41,889 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Candidate): Starting new election term 1 12:31:41,889 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Candidate): Sending RequestVote [term=1, candidateId=leader524, lastLogIndex=-1, lastLogTerm=-1] to peer follower526 12:31:41,890 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Candidate): Sending RequestVote [term=1, candidateId=leader524, lastLogIndex=-1, lastLogTerm=-1] to peer follower525 12:31:41,890 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Follower) :- Switching from behavior Follower to Candidate, election term: 1 12:31:41,890 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:31:41,890 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Cluster state: [] 12:31:41,890 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Candidate in requestVote:RequestVote [term=1, candidateId=leader524, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 12:31:41,890 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Term 1 in "RequestVote [term=1, candidateId=leader524, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 12:31:41,890 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Set currentTerm=1, votedFor=null [WARN] [08/01/2024 12:31:41.890] [test-pekko.actor.default-dispatcher-18] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader524]: RequestVote [term=1, candidateId=leader524, lastLogIndex=-1, lastLogTerm=-1] 12:31:41,890 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): In requestVote: RequestVote [term=1, candidateId=leader524, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 1, votedFor: null, lastIndex: -1, lastTerm: -1 12:31:41,890 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Set currentTerm=1, votedFor=leader524 12:31:41,890 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 12:31:41,891 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 12:31:41,891 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:31:41,891 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Election: Leader has following peers: [follower526, follower525] 12:31:41,891 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower526: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:41,891 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower525: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:41.891] [test-pekko.actor.default-dispatcher-7] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader524]: AppendEntries [leaderId=leader524, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:41,891 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower525: Last sync leader does not match current leader leader524, need to catch up to -1 [WARN] [08/01/2024 12:31:41.892] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/follower525] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@699d829 12:31:41,892 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 12:31:41,892 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower525 updated: matchIndex: -1, nextIndex: 0 12:31:41,892 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower525: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:41,897 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:41,897 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:41,897 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:31:41,898 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower526: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:41,898 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower525: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:41,898 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): sendAppendEntries: 0 is present for follower follower525 12:31:41,898 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Sending AppendEntries to follower follower525: AppendEntries [leaderId=leader524, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]] 12:31:41,898 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): handleAppendEntries: AppendEntries [leaderId=leader524, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]] 12:31:41,898 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Number of entries to be appended = 1 12:31:41,898 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:31:41,898 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Append entry to log zero 12:31:41,898 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:41,898 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Log size is now 1 12:31:41,898 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower525, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] [WARN] [08/01/2024 12:31:41.898] [test-pekko.actor.default-dispatcher-17] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader524]: AppendEntries [leaderId=leader524, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:41,898 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower525: Lagging 0 entries behind leader leader524 and reached -1 (of expected -1) 12:31:41,898 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower525 updated: matchIndex: 0, nextIndex: 1 12:31:41,898 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower525: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:41,899 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:41,899 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 12:31:41,899 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Setting last applied to 0 12:31:41,899 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Moving last applied index from -1 to 0 12:31:41,899 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Applying state for log index 0 data zero 12:31:41,899 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: applyState called: zero 12:31:41,899 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Persisting ApplyJournalEntries with index=0 12:31:41,899 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] [WARN] [08/01/2024 12:31:41.899] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/follower525] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5267634c 12:31:41,948 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Persist data SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:41,948 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:41,948 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:31:41,948 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower526: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:41.948] [test-pekko.actor.default-dispatcher-14] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader524]: AppendEntries [leaderId=leader524, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:41,948 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower525: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:41,948 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): sendAppendEntries: 1 is present for follower follower525 12:31:41,948 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Sending AppendEntries to follower follower525: AppendEntries [leaderId=leader524, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]] 12:31:41,948 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): handleAppendEntries: AppendEntries [leaderId=leader524, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]] 12:31:41,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Number of entries to be appended = 1 12:31:41,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:31:41,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Append entry to log one 12:31:41,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:41,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Log size is now 2 12:31:41,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Commit index set to 0 12:31:41,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower525, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:31:41,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower525: Lagging 0 entries behind leader leader524 and reached 0 (of expected -1) 12:31:41,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 12:31:41,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Setting last applied to 0 12:31:41,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Moving last applied index from -1 to 0 12:31:41,949 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Applying state for log index 0 data zero 12:31:41,949 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: applyState called: zero 12:31:41,949 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower525 updated: matchIndex: 1, nextIndex: 2 12:31:41,949 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower525: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:41,951 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:41,951 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Persisting ApplyJournalEntries with index=0 12:31:41,951 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:41,951 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 12:31:41,951 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Setting last applied to 1 12:31:41,951 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Moving last applied index from 0 to 1 12:31:41,951 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Applying state for log index 1 data one 12:31:41,952 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: applyState called: one 12:31:41,952 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Persisting ApplyJournalEntries with index=1 12:31:41,998 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Persist data SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:41,998 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:41,998 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 12:31:41,998 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower526: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:41.999] [test-pekko.actor.default-dispatcher-7] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader524]: AppendEntries [leaderId=leader524, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:41,999 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower525: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:31:41,999 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): sendAppendEntries: 2 is present for follower follower525 12:31:41,999 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Sending AppendEntries to follower follower525: AppendEntries [leaderId=leader524, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]] 12:31:41,999 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Persist data SimpleReplicatedLogEntry [index=3, term=1, payload=three] 12:31:41,999 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 12:31:41,999 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, isSendImmediate: true 12:31:41,999 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower526: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:41.999] [test-pekko.actor.default-dispatcher-5] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader524]: AppendEntries [leaderId=leader524, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:41,999 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower525: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: -1 12:31:41,999 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): sendAppendEntries: 2 is present for follower follower525 12:31:42,0 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Persist data SimpleReplicatedLogEntry [index=4, term=1, payload=four] 12:31:42,0 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=four] 12:31:42,0 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, isSendImmediate: true 12:31:42,0 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower526: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:42.000] [test-pekko.actor.default-dispatcher-14] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader524]: AppendEntries [leaderId=leader524, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:42,0 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower525: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:31:42,0 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): sendAppendEntries: 2 is present for follower follower525 12:31:42,0 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:42,0 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 12:31:42,0 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=3, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=3, mandatoryTrim=false] 12:31:42,0 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: lastSequenceNumber prior to capture: 7 12:31:42,0 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: CaptureSnapshotReply received by actor 12:31:42,0 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Persisting of snapshot done: Snapshot [lastIndex=3, lastTerm=1, lastAppliedIndex=1, lastAppliedTerm=1, unAppliedEntries size=3, state=MockSnapshotState [state=[zero, one]], electionTerm=1, electionVotedFor=leader524, ServerConfigPayload=null] 12:31:42,1 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: log size 5 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 1 12:31:42,1 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 12:31:42,1 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: SaveSnapshotSuccess received for snapshot, sequenceNr: 7 12:31:42,1 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Snapshot success - sequence number: 7 12:31:42,1 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: SnapshotComplete received 12:31:42,1 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: handled a snapshot response 12:31:42,1 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: handled a journal response 12:31:42,1 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=four] [WARN] [08/01/2024 12:31:42.008] [test-pekko.actor.default-dispatcher-14] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader524]: AppendEntries [leaderId=leader524, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:42,129 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): sendAppendEntries: 2 is present for follower follower525 12:31:42,129 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Sending AppendEntries to follower follower525: AppendEntries [leaderId=leader524, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three], SimpleReplicatedLogEntry [index=4, term=1, payload=four]]] [WARN] [08/01/2024 12:31:42.129] [test-pekko.actor.default-dispatcher-7] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader524]: AppendEntries [leaderId=leader524, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:42,248 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): sendAppendEntries: 2 is present for follower follower525 12:31:42,248 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Sending AppendEntries to follower follower525: AppendEntries [leaderId=leader524, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three], SimpleReplicatedLogEntry [index=4, term=1, payload=four]]] [WARN] [08/01/2024 12:31:42.249] [test-pekko.actor.default-dispatcher-14] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader524]: AppendEntries [leaderId=leader524, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:42,368 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower525: Lagging -1 entries behind leader leader524 and reached 0 (of expected -1) 12:31:42,368 PM [test-pekko.actor.default-dispatcher-14] [WARN] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply [term=1, success=true, followerId=follower525, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], timeSinceLastActivity : 419, lastApplied : 1, commitIndex : 1 12:31:42,368 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): sendAppendEntries: 2 is present for follower follower525 12:31:42,368 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Sending AppendEntries to follower follower525: AppendEntries [leaderId=leader524, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three], SimpleReplicatedLogEntry [index=4, term=1, payload=four]]] [WARN] [08/01/2024 12:31:42.368] [test-pekko.actor.default-dispatcher-18] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader524]: AppendEntries [leaderId=leader524, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:42,368 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): handleAppendEntries: AppendEntries [leaderId=leader524, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three], SimpleReplicatedLogEntry [index=4, term=1, payload=four]]] 12:31:42,368 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Number of entries to be appended = 3 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Append entry to log two 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Append entry to log three 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Append entry to log four 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=four] 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Log size is now 5 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Commit index set to 1 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower525, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower525: Lagging 0 entries behind leader leader524 and reached 1 (of expected -1) 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 4 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Setting last applied to 1 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Moving last applied index from 0 to 1 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower525 updated: matchIndex: 4, nextIndex: 5 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Applying state for log index 1 data one 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 1 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Setting last applied to 2 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Moving last applied index from 1 to 2 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Applying state for log index 2 data two 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: applyState called: two 12:31:42,369 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: applyState called: one 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Setting last applied to 3 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Moving last applied index from 2 to 3 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Applying state for log index 3 data three 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: applyState called: three 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Setting last applied to 4 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Moving last applied index from 3 to 4 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Applying state for log index 4 data four 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: applyState called: four 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Checking sendAppendEntries for follower follower525: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: 1 12:31:42,369 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Persisting ApplyJournalEntries with index=4 12:31:42,371 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:42,371 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 12:31:42,371 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=four] 12:31:42,371 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Persisting ApplyJournalEntries with index=1 12:31:42,371 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Commit index set to 4 12:31:42,371 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower525: Lagging 0 entries behind leader leader524 and reached 4 (of expected -1) 12:31:42,371 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 1, lastIndex(): 4 12:31:42,371 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Setting last applied to 2 12:31:42,371 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Moving last applied index from 1 to 2 12:31:42,371 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Applying state for log index 2 data two 12:31:42,371 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: applyState called: two 12:31:42,371 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Setting last applied to 3 12:31:42,371 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Moving last applied index from 2 to 3 12:31:42,371 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Applying state for log index 3 data three 12:31:42,372 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: applyState called: three 12:31:42,372 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525 (Follower): Setting last applied to 4 12:31:42,372 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Moving last applied index from 3 to 4 12:31:42,372 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Applying state for log index 4 data four 12:31:42,372 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: applyState called: four 12:31:42,372 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower525: Persisting ApplyJournalEntries with index=4 [WARN] [08/01/2024 12:31:42.415] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader524]: org.opendaylight.controller.cluster.common.actor.Monitor@1804eddd 12:31:42,417 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader524 with journal batch size 1000 12:31:42,417 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: SnapshotOffer called. 12:31:42,417 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Moving last applied index from -1 to 1 12:31:42,417 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Set currentTerm=1, votedFor=leader524 12:31:42,417 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Recovery snapshot applied for leader524 in 122.2 μs: snapshotIndex=1, snapshotTerm=1, journal-size=3 12:31:42,419 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Received ReplicatedLogEntry for recovery: index: 4, size: 4 12:31:42,419 PM [test-pekko.actor.default-dispatcher-7] [WARN] AbstractReplicatedLogImpl - leader524: Cannot append new entry - new index 4 is not greater than the last index 4 java.lang.Exception: stack trace at org.opendaylight.controller.cluster.raft.AbstractReplicatedLogImpl.append(AbstractReplicatedLogImpl.java:133) at org.opendaylight.controller.cluster.raft.RaftActorRecoverySupport.onRecoveredJournalLogEntry(RaftActorRecoverySupport.java:180) at org.opendaylight.controller.cluster.raft.RaftActorRecoverySupport.handleRecoveryMessage(RaftActorRecoverySupport.java:67) at org.opendaylight.controller.cluster.raft.RaftActor.handleRecover(RaftActor.java:165) at org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:33) at org.apache.pekko.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:29) at scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at org.apache.pekko.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:29) at scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at org.apache.pekko.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:651) at org.apache.pekko.actor.Actor.aroundReceive(Actor.scala:547) at org.apache.pekko.actor.Actor.aroundReceive$(Actor.scala:545) at org.apache.pekko.persistence.AbstractPersistentActor.org$apache$pekko$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:305) at org.apache.pekko.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:769) at org.apache.pekko.persistence.Eventsourced.aroundReceive(Eventsourced.scala:256) at org.apache.pekko.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:255) at org.apache.pekko.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:305) at org.apache.pekko.actor.ActorCell.receiveMessage(ActorCell.scala:590) at org.apache.pekko.actor.ActorCell.invoke(ActorCell.scala:557) at org.apache.pekko.dispatch.Mailbox.processMailbox(Mailbox.scala:280) at org.apache.pekko.dispatch.Mailbox.run(Mailbox.scala:241) at org.apache.pekko.dispatch.Mailbox.exec(Mailbox.scala:253) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188) 12:31:42,419 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Received apply journal entries for recovery, applying to state: 2 to 4 12:31:42,419 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Moving last applied index from 1 to 4 12:31:42,420 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Recovery completed in 2.296 ms - Switching actor to Follower - last log index = 4, last log term = 1, snapshot index = 1, snapshot term = 1, journal size = 3 12:31:42,420 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Follower): Received TimeoutNow - switching to Candidate 12:31:42,420 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Candidate): Election: Candidate has following voting peers: [] 12:31:42,420 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524: Set currentTerm=2, votedFor=leader524 12:31:42,420 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Candidate): Starting new election term 2 12:31:42,420 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:31:42,421 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower525-collector527#244076136] 12:31:42,421 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Candidate): Received ElectionTimeout 12:31:42,421 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Leader): Election: Leader has following peers: [] 12:31:42,421 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader524 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:31:42,432 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower525] 12:31:42,432 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524-collector528#1644536434] 12:31:42,432 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader524] 12:31:42,433 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader524-collector529#1414757542] 12:31:42,433 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader524] [WARN] [08/01/2024 12:31:42.435] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower531]: org.opendaylight.controller.cluster.common.actor.Monitor@47a8717b 12:31:42,436 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower531 with journal batch size 1000 12:31:42,437 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader530 with journal batch size 1000 [WARN] [08/01/2024 12:31:42.437] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader530]: org.opendaylight.controller.cluster.common.actor.Monitor@7347a9ee 12:31:42,471 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:31:42,471 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:31:42,928 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:31:42,928 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.103:17355, Removed) 12:31:42,928 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Follower): Received ElectionTimeout - switching to Candidate 12:31:42,929 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Candidate): Election: Candidate has following voting peers: [follower531, follower532] 12:31:42,929 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Set currentTerm=1, votedFor=leader530 12:31:42,929 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Candidate): Starting new election term 1 12:31:42,929 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Candidate): Sending RequestVote [term=1, candidateId=leader530, lastLogIndex=-1, lastLogTerm=-1] to peer follower531 12:31:42,929 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Candidate): Sending RequestVote [term=1, candidateId=leader530, lastLogIndex=-1, lastLogTerm=-1] to peer follower532 12:31:42,929 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Follower) :- Switching from behavior Follower to Candidate, election term: 1 12:31:42,929 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:31:42,929 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Cluster state: [] 12:31:42,929 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Candidate in requestVote:RequestVote [term=1, candidateId=leader530, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 12:31:42,929 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Term 1 in "RequestVote [term=1, candidateId=leader530, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 12:31:42,929 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: Set currentTerm=1, votedFor=null [WARN] [08/01/2024 12:31:42.929] [test-pekko.actor.default-dispatcher-7] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader530]: RequestVote [term=1, candidateId=leader530, lastLogIndex=-1, lastLogTerm=-1] 12:31:42,929 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): In requestVote: RequestVote [term=1, candidateId=leader530, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 1, votedFor: null, lastIndex: -1, lastTerm: -1 12:31:42,929 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: Set currentTerm=1, votedFor=leader530 12:31:42,929 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 12:31:42,930 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 12:31:42,930 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:31:42,930 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Election: Leader has following peers: [follower531, follower532] 12:31:42,930 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Checking sendAppendEntries for follower follower531: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:42,930 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Checking sendAppendEntries for follower follower532: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:42,930 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 12:31:42,930 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower531: Last sync leader does not match current leader leader530, need to catch up to -1 [WARN] [08/01/2024 12:31:42.930] [test-pekko.actor.default-dispatcher-7] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader530]: AppendEntries [leaderId=leader530, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [08/01/2024 12:31:42.931] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/follower531] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@74fdf100 12:31:42,931 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower531 updated: matchIndex: -1, nextIndex: 0 12:31:42,931 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Checking sendAppendEntries for follower follower531: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:42,935 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:42,935 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:42,935 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:31:42,936 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Checking sendAppendEntries for follower follower531: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:42,936 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): sendAppendEntries: 0 is present for follower follower531 12:31:42,936 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Sending AppendEntries to follower follower531: AppendEntries [leaderId=leader530, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]] 12:31:42,936 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Checking sendAppendEntries for follower follower532: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:42,936 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): handleAppendEntries: AppendEntries [leaderId=leader530, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]] [WARN] [08/01/2024 12:31:42.936] [test-pekko.actor.default-dispatcher-7] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader530]: AppendEntries [leaderId=leader530, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:42,936 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Number of entries to be appended = 1 12:31:42,936 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:31:42,936 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Append entry to log zero 12:31:42,936 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:42,936 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Log size is now 1 12:31:42,936 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower531, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:31:42,936 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower531 updated: matchIndex: 0, nextIndex: 1 12:31:42,936 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Checking sendAppendEntries for follower follower531: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:42,936 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower531: Lagging 0 entries behind leader leader530 and reached -1 (of expected -1) 12:31:42,936 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:42,936 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 12:31:42,936 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Setting last applied to 0 12:31:42,936 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Moving last applied index from -1 to 0 12:31:42,936 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Applying state for log index 0 data zero 12:31:42,937 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:42,937 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: applyState called: zero [WARN] [08/01/2024 12:31:42.937] [test-pekko.actor.default-dispatcher-18] [pekko://test/user/follower531] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7ab6446 12:31:42,937 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Persisting ApplyJournalEntries with index=0 12:31:42,986 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Persist data SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:42,986 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:42,986 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:31:42,986 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Checking sendAppendEntries for follower follower531: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:42,986 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): sendAppendEntries: 1 is present for follower follower531 12:31:42,986 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Sending AppendEntries to follower follower531: AppendEntries [leaderId=leader530, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]] 12:31:42,986 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Checking sendAppendEntries for follower follower532: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:42,986 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): handleAppendEntries: AppendEntries [leaderId=leader530, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]] [WARN] [08/01/2024 12:31:42.986] [test-pekko.actor.default-dispatcher-5] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader530]: AppendEntries [leaderId=leader530, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:42,986 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Number of entries to be appended = 1 12:31:42,986 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:31:42,986 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Append entry to log one 12:31:42,986 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:42,986 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Log size is now 2 12:31:42,986 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Commit index set to 0 12:31:42,986 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower531, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:31:42,987 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower531: Lagging 0 entries behind leader leader530 and reached 0 (of expected -1) 12:31:42,987 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 12:31:42,987 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Setting last applied to 0 12:31:42,987 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: Moving last applied index from -1 to 0 12:31:42,987 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower531 updated: matchIndex: 1, nextIndex: 2 12:31:42,987 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: Applying state for log index 0 data zero 12:31:42,987 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Checking sendAppendEntries for follower follower531: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:42,987 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: applyState called: zero 12:31:42,987 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:42,987 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 12:31:42,987 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Setting last applied to 1 12:31:42,987 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Moving last applied index from 0 to 1 12:31:42,987 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Applying state for log index 1 data one 12:31:42,987 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: applyState called: one 12:31:42,987 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Persisting ApplyJournalEntries with index=1 12:31:42,987 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:42,987 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: Persisting ApplyJournalEntries with index=0 [WARN] [08/01/2024 12:31:43.038] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower532]: org.opendaylight.controller.cluster.common.actor.Monitor@7cbed0c 12:31:43,39 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower532 with journal batch size 1000 12:31:43,40 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Peer address for peer follower532 set to pekko://test/user/follower532 12:31:43,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Persist data SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:43,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:43,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 12:31:43,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Checking sendAppendEntries for follower follower531: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:31:43,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): sendAppendEntries: 2 is present for follower follower531 12:31:43,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Sending AppendEntries to follower follower531: AppendEntries [leaderId=leader530, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]] 12:31:43,40 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Checking sendAppendEntries for follower follower532: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:31:43,40 PM [test-pekko.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:31:43,41 PM [test-pekko.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Term 1 in "AppendEntries [leaderId=leader530, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 12:31:43,41 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:43,41 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Set currentTerm=1, votedFor=null 12:31:43,41 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower532: Last sync leader does not match current leader leader530, need to catch up to -1 12:31:43,41 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: -1, nextIndex: 0 12:31:43,41 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:31:43,41 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): sendAppendEntries: 0 is present for follower follower532 12:31:43,41 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Sending AppendEntries to follower follower532: AppendEntries [leaderId=leader530, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero], SimpleReplicatedLogEntry [index=1, term=1, payload=one], SimpleReplicatedLogEntry [index=2, term=1, payload=two]]] 12:31:43,41 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): handleAppendEntries: AppendEntries [leaderId=leader530, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]] 12:31:43,41 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Number of entries to be appended = 1 12:31:43,41 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:31:43,41 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Append entry to log two 12:31:43,41 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:43,41 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Log size is now 3 12:31:43,41 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Commit index set to 1 12:31:43,41 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower531, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:31:43,42 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower531: Lagging 0 entries behind leader leader530 and reached 1 (of expected -1) 12:31:43,42 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 2 12:31:43,42 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Setting last applied to 1 12:31:43,42 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: Moving last applied index from 0 to 1 12:31:43,42 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower531 updated: matchIndex: 2, nextIndex: 3 12:31:43,42 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: Applying state for log index 1 data one 12:31:43,42 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 12:31:43,42 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Setting last applied to 2 12:31:43,42 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Moving last applied index from 1 to 2 12:31:43,42 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Applying state for log index 2 data two [WARN] [08/01/2024 12:31:43.042] [test-pekko.actor.default-dispatcher-18] [pekko://test/user/follower532] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@74d1e110 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries: AppendEntries [leaderId=leader530, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero], SimpleReplicatedLogEntry [index=1, term=1, payload=one], SimpleReplicatedLogEntry [index=2, term=1, payload=two]]] 12:31:43,42 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: applyState called: two 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Number of entries to be appended = 3 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Append entry to log zero 12:31:43,42 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: applyState called: one 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:43,42 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Checking sendAppendEntries for follower follower531: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Append entry to log one 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:43,42 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Persisting ApplyJournalEntries with index=2 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Append entry to log two 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Log size is now 3 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Commit index set to 1 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower532, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader530 and reached 1 (of expected -1) 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 2 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Setting last applied to 0 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from -1 to 0 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Applying state for log index 0 data zero 12:31:43,42 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: 2, nextIndex: 3 12:31:43,42 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: fakeSnapshot purging log to 1 for term 1 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applyState called: zero 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Setting last applied to 1 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from 0 to 1 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Applying state for log index 1 data one 12:31:43,42 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applyState called: one 12:31:43,43 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 12:31:43,43 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: Persisting ApplyJournalEntries with index=1 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Commit index set to 2 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower531: Lagging 0 entries behind leader leader530 and reached 2 (of expected -1) 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531 (Follower): Setting last applied to 2 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: Moving last applied index from 1 to 2 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: Applying state for log index 2 data two 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: applyState called: two 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: Persisting ApplyJournalEntries with index=2 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Persisting ApplyJournalEntries with index=1 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Commit index set to 2 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower532: Lagging 0 entries behind leader leader530 and reached 2 (of expected -1) 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Setting last applied to 2 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from 1 to 2 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Applying state for log index 2 data two 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applyState called: two 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: fakeSnapshot purging log to 1 for term 1 12:31:43,44 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Persisting ApplyJournalEntries with index=2 [WARN] [08/01/2024 12:31:43.044] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/follower532] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3470e481 [WARN] [08/01/2024 12:31:43.105] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower532]: org.opendaylight.controller.cluster.common.actor.Monitor@7c9fcebe 12:31:43,105 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower532 with journal batch size 1000 12:31:43,105 PM [test-pekko.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Peer address for peer follower532 set to pekko://test/user/follower532 12:31:43,107 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:31:43,168 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower531: Lagging 0 entries behind leader leader530 and reached 2 (of expected -1) 12:31:43,168 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower531: fakeSnapshot purging log to 1 for term 1 12:31:43,168 PM [test-pekko.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Term 1 in "AppendEntries [leaderId=leader530, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 12:31:43,168 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Set currentTerm=1, votedFor=null 12:31:43,169 PM [test-pekko.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): The followers log is empty and the senders prevLogIndex is 2 12:31:43,169 PM [test-pekko.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=1, success=false, followerId=follower532, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:31:43,169 PM [test-pekko.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower532: Last sync leader does not match current leader leader530, need to catch up to 2 12:31:43,169 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=1, success=false, followerId=follower532, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: 1, snapshotTerm: 1, replicatedToAllIndex: 1 12:31:43,169 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower532 updated: matchIndex: -1, nextIndex: 0 12:31:43,169 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): follower follower532 appears to be behind the leader from the last snapshot - updated: matchIndex: -1, nextIndex: 0 12:31:43,169 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Checking sendAppendEntries for follower follower532: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: 1 12:31:43,169 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Initiating install snapshot to follower follower532: follower nextIndex: 0, leader snapshotIndex: 1, leader lastIndex: 2, leader log size: 1 12:31:43,169 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on follower532 12:31:43,169 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: lastSequenceNumber prior to capture: 7 12:31:43,170 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: CaptureSnapshotReply received by actor 12:31:43,170 PM [test-pekko.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Cannot append entries because the replicatedToAllIndex 1 does not appear to be in the in-memory journal - lastIndex: -1, snapshotIndex: -1, snapshotTerm: -1 12:31:43,170 PM [test-pekko.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=1, success=false, followerId=follower532, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] [WARN] [08/01/2024 12:31:43.170] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower532] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6d547168 12:31:43,170 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Persisting of snapshot done: Snapshot [lastIndex=2, lastTerm=1, lastAppliedIndex=2, lastAppliedTerm=1, unAppliedEntries size=0, state=MockSnapshotState [state=[zero, one, two]], electionTerm=1, electionVotedFor=leader530, ServerConfigPayload=null] 12:31:43,170 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 12:31:43,170 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): sendInstallSnapshot 12:31:43,170 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader530 (Leader): Snapshot 345 bytes, total chunks to send: 1 12:31:43,170 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] LeaderInstallSnapshotState - leader530 (Leader): Next chunk: total length=345, offset=0, size=345, hashCode=-1043722696 12:31:43,170 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): next snapshot chunk size for follower follower532: 345 12:31:43,170 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): InstallSnapshot sent to follower Vector(user, follower532), Chunk: 1/1 12:31:43,170 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=1, success=false, followerId=follower532, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: 1, snapshotTerm: 1, replicatedToAllIndex: 1 12:31:43,170 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): follower follower532 appears to be behind the leader from the last snapshot - updated: matchIndex: -1, nextIndex: 0 12:31:43,170 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleInstallSnapshot: InstallSnapshot [term=1, leaderId=leader530, lastIncludedIndex=2, lastIncludedTerm=1, datasize=345, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null] 12:31:43,170 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 12:31:43,170 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: SaveSnapshotSuccess received for snapshot, sequenceNr: 7 12:31:43,170 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): Snapshot installed from leader: leader530 12:31:43,170 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: Snapshot success - sequence number: 7 12:31:43,171 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: SnapshotComplete received 12:31:43,171 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: handled a snapshot response 12:31:43,171 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530: handled a journal response 12:31:43,171 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Applying snapshot on follower: Snapshot [lastIndex=2, lastTerm=1, lastAppliedIndex=2, lastAppliedTerm=1, unAppliedEntries size=0, state=MockSnapshotState [state=[zero, one, two]], electionTerm=1, electionVotedFor=null, ServerConfigPayload=null] 12:31:43,171 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: 1 12:31:43,172 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: SaveSnapshotSuccess received for snapshot, sequenceNr: 1 12:31:43,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Snapshot success - sequence number: 1 12:31:43,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from -1 to 2 12:31:43,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Set currentTerm=1, votedFor=null 12:31:43,172 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: applySnapshot called 12:31:43,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=follower532, chunkIndex=1, success=true] 12:31:43,172 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=follower532, chunkIndex=1, success=true] 12:31:43,172 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: SnapshotComplete received 12:31:43,172 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader530 (Leader): Snapshot successfully installed on follower follower532 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 12:31:43,172 PM [test-pekko.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: handled a snapshot response 12:31:43,172 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: handled a journal response [WARN] [08/01/2024 12:31:43.218] [test-pekko.actor.default-dispatcher-7] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower532]: org.opendaylight.controller.cluster.common.actor.Monitor@326ef519 12:31:43,218 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower532 with journal batch size 1000 12:31:43,219 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: SnapshotOffer called. 12:31:43,219 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Moving last applied index from -1 to 2 12:31:43,219 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Set currentTerm=1, votedFor=null 12:31:43,219 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Recovery snapshot applied for follower532 in 98.05 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 12:31:43,220 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower532: Recovery completed in 1.059 ms - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 12:31:43,220 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower531-collector533#841411799] 12:31:43,231 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower531] 12:31:43,231 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader530-collector534#1723998809] 12:31:43,231 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader530] 12:31:43,231 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532-collector535#-788367864] 12:31:43,232 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower532] 12:31:43,232 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532-collector536#-634809727] 12:31:43,232 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower532] 12:31:43,232 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower532-collector537#1127808332] 12:31:43,232 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower532] [WARN] [08/01/2024 12:31:43.234] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/follower539]: org.opendaylight.controller.cluster.common.actor.Monitor@6d417355 12:31:43,235 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower539 with journal batch size 1000 12:31:43,237 PM [test-pekko.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [08/01/2024 12:31:43.237] [test-pekko.actor.default-dispatcher-14] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader538]: org.opendaylight.controller.cluster.common.actor.Monitor@11e7cee1 12:31:43,238 PM [test-pekko.actor.default-dispatcher-7] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader538 with journal batch size 1000 12:31:43,239 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 12:31:43,758 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 12:31:43,758 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(pekko://test@10.30.170.103:17355, Removed) 12:31:43,758 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Follower): Received ElectionTimeout - switching to Candidate 12:31:43,758 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Candidate): Election: Candidate has following voting peers: [follower539, follower540] 12:31:43,758 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Set currentTerm=1, votedFor=leader538 12:31:43,758 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Candidate): Starting new election term 1 12:31:43,758 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Candidate): Sending RequestVote [term=1, candidateId=leader538, lastLogIndex=-1, lastLogTerm=-1] to peer follower539 12:31:43,758 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Candidate): Sending RequestVote [term=1, candidateId=leader538, lastLogIndex=-1, lastLogTerm=-1] to peer follower540 12:31:43,759 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Follower) :- Switching from behavior Follower to Candidate, election term: 1 12:31:43,759 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 12:31:43,759 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Cluster state: [] 12:31:43,759 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Candidate in requestVote:RequestVote [term=1, candidateId=leader538, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 12:31:43,759 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Term 1 in "RequestVote [term=1, candidateId=leader538, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 12:31:43,759 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Set currentTerm=1, votedFor=null 12:31:43,759 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): In requestVote: RequestVote [term=1, candidateId=leader538, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 1, votedFor: null, lastIndex: -1, lastTerm: -1 12:31:43,759 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Set currentTerm=1, votedFor=leader538 12:31:43,759 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): requestVote returning: RequestVoteReply [term=1, voteGranted=true] [WARN] [08/01/2024 12:31:43.759] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader538]: RequestVote [term=1, candidateId=leader538, lastLogIndex=-1, lastLogTerm=-1] 12:31:43,762 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 12:31:43,762 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 12:31:43,762 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Election: Leader has following peers: [follower539, follower540] 12:31:43,762 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower539: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:43,763 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower540: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:43.763] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader538]: AppendEntries [leaderId=leader538, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:43,763 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower539: Last sync leader does not match current leader leader538, need to catch up to -1 12:31:43,763 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 [WARN] [08/01/2024 12:31:43.763] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower539] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@57904064 12:31:43,763 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower539 updated: matchIndex: -1, nextIndex: 0 12:31:43,763 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower539: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 12:31:43,795 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:43,795 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:43,795 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 12:31:43,795 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower539: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:43,795 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): sendAppendEntries: 0 is present for follower follower539 12:31:43,795 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Sending AppendEntries to follower follower539: AppendEntries [leaderId=leader538, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]] 12:31:43,795 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): handleAppendEntries: AppendEntries [leaderId=leader538, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]] 12:31:43,795 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Number of entries to be appended = 1 12:31:43,795 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 12:31:43,795 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Append entry to log zero 12:31:43,795 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:43,795 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Log size is now 1 12:31:43,795 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower539, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:31:43,795 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower539: Lagging 0 entries behind leader leader538 and reached -1 (of expected -1) 12:31:43,795 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower540: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:43.796] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader538]: AppendEntries [leaderId=leader538, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:43,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower539 updated: matchIndex: 0, nextIndex: 1 12:31:43,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower539: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 12:31:43,796 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:43,797 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 12:31:43,797 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 12:31:43,797 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Setting last applied to 0 12:31:43,797 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Moving last applied index from -1 to 0 12:31:43,797 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Applying state for log index 0 data zero [WARN] [08/01/2024 12:31:43.797] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/follower539] unhandled message from Actor[pekko://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5de3f5c1 12:31:43,797 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: applyState called: zero 12:31:43,797 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Persisting ApplyJournalEntries with index=0 12:31:43,845 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Persist data SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:43,845 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:43,845 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 12:31:43,845 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower539: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:43,845 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): sendAppendEntries: 1 is present for follower follower539 12:31:43,846 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Sending AppendEntries to follower follower539: AppendEntries [leaderId=leader538, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]] 12:31:43,846 PM [test-pekko.actor.default-dispatcher-7] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower540: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:43.846] [test-pekko.actor.default-dispatcher-14] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader538]: AppendEntries [leaderId=leader538, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:43,846 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): handleAppendEntries: AppendEntries [leaderId=leader538, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]] 12:31:43,846 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Number of entries to be appended = 1 12:31:43,846 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 12:31:43,846 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Append entry to log one 12:31:43,846 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:43,846 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:43,847 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Log size is now 2 12:31:43,847 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Commit index set to 0 12:31:43,847 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower539, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:31:43,847 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower539: Lagging 0 entries behind leader leader538 and reached 0 (of expected -1) 12:31:43,847 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 12:31:43,847 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Setting last applied to 0 12:31:43,847 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Moving last applied index from -1 to 0 12:31:43,847 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Applying state for log index 0 data zero 12:31:43,847 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower539 updated: matchIndex: 1, nextIndex: 2 12:31:43,847 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 12:31:43,847 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Setting last applied to 1 12:31:43,847 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Moving last applied index from 0 to 1 12:31:43,847 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Applying state for log index 1 data one 12:31:43,847 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: applyState called: zero 12:31:43,847 PM [test-pekko.actor.default-dispatcher-14] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: applyState called: one 12:31:43,847 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower539: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 12:31:43,847 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Persisting ApplyJournalEntries with index=1 12:31:43,848 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 12:31:43,848 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Persisting ApplyJournalEntries with index=0 12:31:43,849 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Commit index set to 1 12:31:43,849 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower539: Lagging 0 entries behind leader leader538 and reached 1 (of expected -1) 12:31:43,849 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 12:31:43,849 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Setting last applied to 1 12:31:43,849 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Moving last applied index from 0 to 1 12:31:43,849 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Applying state for log index 1 data one 12:31:43,851 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: applyState called: one 12:31:43,851 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Persisting ApplyJournalEntries with index=1 [WARN] [08/01/2024 12:31:43.879] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader538]: AppendEntries [leaderId=leader538, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:43,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Persist data SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:43,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:43,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 12:31:43,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower539: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 12:31:43,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): sendAppendEntries: 2 is present for follower follower539 12:31:43,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Sending AppendEntries to follower follower539: AppendEntries [leaderId=leader538, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]] 12:31:43,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower540: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:43.896] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader538]: AppendEntries [leaderId=leader538, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:43,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Persist data SimpleReplicatedLogEntry [index=3, term=1, payload=three] 12:31:43,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 12:31:43,896 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, isSendImmediate: true 12:31:43,897 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower539: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: -1 12:31:43,897 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): sendAppendEntries: 2 is present for follower follower539 12:31:43,897 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower540: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:43.897] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader538]: AppendEntries [leaderId=leader538, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:43,897 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:43,897 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 12:31:43,897 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=3, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 12:31:43,897 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: lastSequenceNumber prior to capture: 7 12:31:43,998 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): sendAppendEntries: 2 is present for follower follower539 12:31:43,998 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Sending AppendEntries to follower follower539: AppendEntries [leaderId=leader538, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three]]] [WARN] [08/01/2024 12:31:43.999] [test-pekko.actor.default-dispatcher-14] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader538]: AppendEntries [leaderId=leader538, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:44,119 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): sendAppendEntries: 2 is present for follower follower539 12:31:44,119 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Sending AppendEntries to follower follower539: AppendEntries [leaderId=leader538, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three]]] [WARN] [08/01/2024 12:31:44.120] [test-pekko.actor.default-dispatcher-14] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader538]: AppendEntries [leaderId=leader538, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:44,147 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Persist data SimpleReplicatedLogEntry [index=4, term=1, payload=four] 12:31:44,147 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=four] 12:31:44,148 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, isSendImmediate: true 12:31:44,148 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower539: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:31:44,148 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): sendAppendEntries: 2 is present for follower follower539 12:31:44,148 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower540: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 [WARN] [08/01/2024 12:31:44.148] [test-pekko.actor.default-dispatcher-14] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader538]: AppendEntries [leaderId=leader538, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:44,149 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=four] 12:31:44,238 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): sendAppendEntries: 2 is present for follower follower539 12:31:44,238 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Sending AppendEntries to follower follower539: AppendEntries [leaderId=leader538, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three], SimpleReplicatedLogEntry [index=4, term=1, payload=four]]] 12:31:44,238 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): handleAppendEntries: AppendEntries [leaderId=leader538, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two], SimpleReplicatedLogEntry [index=3, term=1, payload=three], SimpleReplicatedLogEntry [index=4, term=1, payload=four]]] 12:31:44,239 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Number of entries to be appended = 3 [WARN] [08/01/2024 12:31:44.238] [test-pekko.actor.default-dispatcher-16] [pekko://test/] unhandled message from TestActor[pekko://test/user/leader538]: AppendEntries [leaderId=leader538, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 12:31:44,239 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 12:31:44,239 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Append entry to log two 12:31:44,239 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:44,239 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Append entry to log three 12:31:44,239 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 12:31:44,239 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Append entry to log four 12:31:44,239 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=four] 12:31:44,239 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Log size is now 5 12:31:44,239 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower539, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 12:31:44,239 PM [test-pekko.actor.default-dispatcher-14] [DEBUG] SyncStatusTracker - follower539: Lagging 0 entries behind leader leader538 and reached 1 (of expected -1) 12:31:44,239 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower539 updated: matchIndex: 4, nextIndex: 5 12:31:44,240 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 12:31:44,240 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 12:31:44,240 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=four] 12:31:44,240 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 1 12:31:44,240 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Setting last applied to 2 12:31:44,240 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Moving last applied index from 1 to 2 12:31:44,240 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Applying state for log index 2 data two 12:31:44,241 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: applyState called: two 12:31:44,241 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Setting last applied to 3 12:31:44,241 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Moving last applied index from 2 to 3 12:31:44,241 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Applying state for log index 3 data three 12:31:44,241 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: applyState called: three 12:31:44,241 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Setting last applied to 4 12:31:44,241 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Moving last applied index from 3 to 4 12:31:44,241 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Applying state for log index 4 data four 12:31:44,241 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: applyState called: four 12:31:44,241 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Checking sendAppendEntries for follower follower539: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 12:31:44,241 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Persisting ApplyJournalEntries with index=4 12:31:44,241 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Commit index set to 4 12:31:44,241 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower539: Lagging 0 entries behind leader leader538 and reached 4 (of expected -1) 12:31:44,241 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 1, lastIndex(): 4 12:31:44,241 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Setting last applied to 2 12:31:44,241 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Moving last applied index from 1 to 2 12:31:44,241 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Applying state for log index 2 data two 12:31:44,241 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: applyState called: two 12:31:44,241 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Setting last applied to 3 12:31:44,241 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Moving last applied index from 2 to 3 12:31:44,241 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Applying state for log index 3 data three 12:31:44,241 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: applyState called: three 12:31:44,241 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539 (Follower): Setting last applied to 4 12:31:44,241 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Moving last applied index from 3 to 4 12:31:44,241 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Applying state for log index 4 data four 12:31:44,242 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: applyState called: four 12:31:44,242 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower539: Persisting ApplyJournalEntries with index=4 12:31:44,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: CaptureSnapshotReply received by actor 12:31:44,249 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Persisting of snapshot done: Snapshot [lastIndex=3, lastTerm=1, lastAppliedIndex=1, lastAppliedTerm=1, unAppliedEntries size=2, state=MockSnapshotState [state=[zero, one]], electionTerm=1, electionVotedFor=leader538, ServerConfigPayload=null] 12:31:44,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: log size 5 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 1 12:31:44,249 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 12:31:44,249 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: SaveSnapshotSuccess received for snapshot, sequenceNr: 7 12:31:44,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Snapshot success - sequence number: 7 12:31:44,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: SnapshotComplete received 12:31:44,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: handled a snapshot response 12:31:44,249 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: handled a journal response [WARN] [08/01/2024 12:31:44.302] [test-pekko.actor.default-dispatcher-16] [pekko://test/user/termination-monitor] received dead letter from TestActor[pekko://test/user/leader538]: org.opendaylight.controller.cluster.common.actor.Monitor@63235fd9 12:31:44,303 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader538 with journal batch size 1000 12:31:44,303 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: SnapshotOffer called. 12:31:44,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Moving last applied index from -1 to 1 12:31:44,304 PM [test-pekko.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Set currentTerm=1, votedFor=leader538 12:31:44,304 PM [test-pekko.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Recovery snapshot applied for leader538 in 104.4 μs: snapshotIndex=1, snapshotTerm=1, journal-size=2 12:31:44,305 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Received ReplicatedLogEntry for recovery: index: 4, size: 4 12:31:44,305 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Received apply journal entries for recovery, applying to state: 2 to 4 12:31:44,305 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Moving last applied index from 1 to 4 12:31:44,306 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Recovery completed in 1.977 ms - Switching actor to Follower - last log index = 4, last log term = 1, snapshot index = 1, snapshot term = 1, journal size = 3 12:31:44,306 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Follower): Received TimeoutNow - switching to Candidate 12:31:44,306 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Candidate): Election: Candidate has following voting peers: [] 12:31:44,306 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538: Set currentTerm=2, votedFor=leader538 12:31:44,306 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Candidate): Starting new election term 2 12:31:44,306 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 12:31:44,306 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/follower539-collector541#4470288] 12:31:44,307 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Candidate): Received ElectionTimeout 12:31:44,307 PM [test-pekko.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Leader): Election: Leader has following peers: [] 12:31:44,307 PM [test-pekko.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader538 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 12:31:44,308 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/follower539] 12:31:44,308 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader538-collector542#-1116764016] 12:31:44,308 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader538] 12:31:44,308 PM [main] [INFO] TestActorFactory - Killing actor Actor[pekko://test/user/leader538-collector543#977880530] 12:31:44,308 PM [main] [INFO] TestActorFactory - Killing actor TestActor[pekko://test/user/leader538] 12:31:44,309 PM [test-pekko.actor.default-dispatcher-16] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [INFO] [08/01/2024 12:31:44.309] [main] [CoordinatedShutdown(pekko://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/01/2024 12:31:44.310] [test-pekko.actor.default-dispatcher-5] [pekko://test/system/cluster/core/daemon] unhandled message from Actor[pekko://test/deadLetters]: Leave(pekko://test@10.30.170.103:17355) [INFO] [08/01/2024 12:31:44.311] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - Exiting completed 12:31:44,311 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - Exiting completed 12:31:44,311 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - Shutting down... [INFO] [08/01/2024 12:31:44.311] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - Shutting down... 12:31:44,311 PM [test-pekko.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [pekko://test@10.30.170.103:17355] - Successfully shut down [INFO] [08/01/2024 12:31:44.311] [test-pekko.actor.internal-dispatcher-3] [Cluster(pekko://test)] Cluster Node [pekko://test@10.30.170.103:17355] - Successfully shut down [INFO] [08/01/2024 12:31:44.313] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.103:17355/system/remoting-terminator] Shutting down remote daemon. [INFO] [08/01/2024 12:31:44.314] [test-pekko.remote.default-remote-dispatcher-10] [pekko://test@10.30.170.103:17355/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 12:31:44,314 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 12:31:44,314 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. 12:31:44,316 PM [test-pekko.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [INFO] [08/01/2024 12:31:44.316] [test-pekko.remote.default-remote-dispatcher-8] [pekko://test@10.30.170.103:17355/system/remoting-terminator] Remoting shut down. [DEBUG] [08/01/2024 12:31:44.316] [test-pekko.actor.internal-dispatcher-2] [EventStream] shutting down: StandardOutLogger