[DEBUG] [11/22/2024 18:21:56.013] [main] [EventStream(akka://test)] logger log1-TestEventListener started 06:21:56,13 PM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [11/22/2024 18:21:56.013] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [11/22/2024 18:21:56.013] [main] [EventStream(akka://test)] Default Loggers started [INFO] [11/22/2024 18:21:56.023] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.100:25520] with UID [-7478283668975661585] [INFO] [11/22/2024 18:21:56.024] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.100:25520] - Starting up, Akka version [2.6.21] ... 06:21:56,24 PM [test-akka.actor.default-dispatcher-5] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.100:25520] with UID [-7478283668975661585] 06:21:56,24 PM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.170.100:25520] - Starting up, Akka version [2.6.21] ... [INFO] [11/22/2024 18:21:56.026] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.100:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [11/22/2024 18:21:56.026] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.100:25520] - Started up successfully 06:21:56,27 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.100:25520] - Registered cluster JMX MBean [akka:type=Cluster] 06:21:56,27 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.100:25520] - Started up successfully [INFO] [11/22/2024 18:21:56.027] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.100:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [11/22/2024 18:21:56.027] [test-akka.actor.internal-dispatcher-10] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.100:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 06:21:56,27 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.100:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 06:21:56,27 PM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.100:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [WARN] [11/22/2024 18:21:56.040] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower302]: org.opendaylight.controller.cluster.common.actor.Monitor@43ba46fc [INFO] [akkaDeadLetter][11/22/2024 18:21:56.040] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower302] to Actor[akka://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,41 PM [test-akka.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower302] to Actor[akka://test/user/termination-monitor] was not delivered. [1] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,42 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower302 with journal batch size 1000 06:21:56,43 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [11/22/2024 18:21:56.141] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader301]: org.opendaylight.controller.cluster.common.actor.Monitor@4f52691f [INFO] [akkaDeadLetter][11/22/2024 18:21:56.142] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader301] to Actor[akka://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,142 PM [test-akka.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader301] to Actor[akka://test/user/termination-monitor] was not delivered. [2] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/termination-monitor] may have terminated unexpectedly. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,142 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader301 with journal batch size 1000 06:21:56,143 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:21:56,610 PM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:21:56,610 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.100:25520, Removed) 06:21:56,610 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Follower): Received ElectionTimeout - switching to Candidate 06:21:56,610 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Candidate): Election: Candidate has following voting peers: [follower303, follower302] 06:21:56,610 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Set currentTerm=1, votedFor=leader301 06:21:56,610 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Candidate): Starting new election term 1 06:21:56,611 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Candidate): Sending RequestVote [term=1, candidateId=leader301, lastLogIndex=-1, lastLogTerm=-1] to peer follower303 06:21:56,611 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Candidate): Sending RequestVote [term=1, candidateId=leader301, lastLogIndex=-1, lastLogTerm=-1] to peer follower302 06:21:56,611 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Follower) :- Switching from behavior Follower to Candidate, election term: 1 06:21:56,611 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. [WARN] [11/22/2024 18:21:56.611] [test-akka.actor.default-dispatcher-12] [akka://test/] unhandled message from TestActor[akka://test/user/leader301]: RequestVote [term=1, candidateId=leader301, lastLogIndex=-1, lastLogTerm=-1] 06:21:56,611 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Cluster state: [] 06:21:56,611 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Candidate in requestVote:RequestVote [term=1, candidateId=leader301, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 06:21:56,611 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Term 1 in "RequestVote [term=1, candidateId=leader301, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term [INFO] [akkaDeadLetter][11/22/2024 18:21:56.611] [test-akka.actor.default-dispatcher-5] [akka://test/] Message [org.opendaylight.controller.cluster.raft.messages.RequestVote] from TestActor[akka://test/user/leader301] to Actor[akka://test/] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,611 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Set currentTerm=1, votedFor=null 06:21:56,611 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): In requestVote: RequestVote [term=1, candidateId=leader301, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 1, votedFor: null, lastIndex: -1, lastTerm: -1 06:21:56,611 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Set currentTerm=1, votedFor=leader301 06:21:56,611 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): requestVote returning: RequestVoteReply [term=1, voteGranted=true] 06:21:56,612 PM [test-akka.actor.default-dispatcher-5] [INFO] LocalActorRefProvider$$anon$2 - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.RequestVote] from TestActor[akka://test/user/leader301] to Actor[akka://test/] was unhandled. [3] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,613 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 06:21:56,613 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:21:56,613 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Election: Leader has following peers: [follower303, follower302] 06:21:56,613 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower303: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:21:56,613 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower302: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:21:56,613 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 [WARN] [11/22/2024 18:21:56.614] [test-akka.actor.default-dispatcher-12] [akka://test/] unhandled message from TestActor[akka://test/user/leader301]: AppendEntries [leaderId=leader301, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:56,614 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower302: Last sync leader does not match current leader leader301, need to catch up to -1 [INFO] [akkaDeadLetter][11/22/2024 18:21:56.614] [test-akka.actor.default-dispatcher-11] [akka://test/] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader301] to Actor[akka://test/] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,614 PM [test-akka.actor.default-dispatcher-15] [INFO] LocalActorRefProvider$$anon$2 - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader301] to Actor[akka://test/] was unhandled. [4] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [WARN] [11/22/2024 18:21:56.614] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower302] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5e869932 06:21:56,614 PM [test-akka.actor.default-dispatcher-15] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower302] was unhandled. [5] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. [INFO] [akkaDeadLetter][11/22/2024 18:21:56.614] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower302] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower302] was unhandled. [5] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,614 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower302 updated: matchIndex: -1, nextIndex: 0 06:21:56,614 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower302: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:21:56,645 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:56,645 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:56,646 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 06:21:56,646 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower303: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 06:21:56,646 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower302: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 06:21:56,646 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): sendAppendEntries: 0 is present for follower follower302 06:21:56,646 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Sending AppendEntries to follower follower302: AppendEntries [leaderId=leader301, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]] 06:21:56,646 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): handleAppendEntries: AppendEntries [leaderId=leader301, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]] 06:21:56,646 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Number of entries to be appended = 1 06:21:56,646 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:21:56,646 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Append entry to log zero 06:21:56,646 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:56,646 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Log size is now 1 06:21:56,646 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower302, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:21:56,646 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower302: Lagging 0 entries behind leader leader301 and reached -1 (of expected -1) 06:21:56,646 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower302 updated: matchIndex: 0, nextIndex: 1 06:21:56,647 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower302: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [11/22/2024 18:21:56.647] [test-akka.actor.default-dispatcher-5] [akka://test/] unhandled message from TestActor[akka://test/user/leader301]: AppendEntries [leaderId=leader301, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:56,647 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:56,647 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 [INFO] [akkaDeadLetter][11/22/2024 18:21:56.647] [test-akka.actor.default-dispatcher-5] [akka://test/] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader301] to Actor[akka://test/] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,647 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Setting last applied to 0 06:21:56,647 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Moving last applied index from -1 to 0 06:21:56,647 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Applying state for log index 0 data zero 06:21:56,647 PM [test-akka.actor.default-dispatcher-5] [INFO] LocalActorRefProvider$$anon$2 - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader301] to Actor[akka://test/] was unhandled. [6] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,647 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: applyState called: zero 06:21:56,647 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Persisting ApplyJournalEntries with index=0 06:21:56,647 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] [WARN] [11/22/2024 18:21:56.648] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower302] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3decf7b4 [INFO] [akkaDeadLetter][11/22/2024 18:21:56.648] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower302] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower302] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,648 PM [test-akka.actor.default-dispatcher-15] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower302] was unhandled. [7] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,696 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Persist data SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:56,697 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:56,697 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 06:21:56,697 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower303: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:56,697 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower302: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:56,697 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): sendAppendEntries: 1 is present for follower follower302 06:21:56,697 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Sending AppendEntries to follower follower302: AppendEntries [leaderId=leader301, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]] 06:21:56,697 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): handleAppendEntries: AppendEntries [leaderId=leader301, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]] 06:21:56,697 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Number of entries to be appended = 1 06:21:56,697 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 [WARN] [11/22/2024 18:21:56.697] [test-akka.actor.default-dispatcher-17] [akka://test/] unhandled message from TestActor[akka://test/user/leader301]: AppendEntries [leaderId=leader301, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:56,697 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Append entry to log one 06:21:56,697 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] [INFO] [akkaDeadLetter][11/22/2024 18:21:56.697] [test-akka.actor.default-dispatcher-16] [akka://test/] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader301] to Actor[akka://test/] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,697 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Log size is now 2 06:21:56,697 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Commit index set to 0 06:21:56,697 PM [test-akka.actor.default-dispatcher-16] [INFO] LocalActorRefProvider$$anon$2 - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader301] to Actor[akka://test/] was unhandled. [8] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,697 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower302, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:21:56,697 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower302: Lagging 0 entries behind leader leader301 and reached 0 (of expected -1) 06:21:56,697 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 06:21:56,697 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Setting last applied to 0 06:21:56,697 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Moving last applied index from -1 to 0 06:21:56,697 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Applying state for log index 0 data zero 06:21:56,697 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower302 updated: matchIndex: 1, nextIndex: 2 06:21:56,698 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower302: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:56,698 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: applyState called: zero 06:21:56,698 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:56,698 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 06:21:56,698 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Setting last applied to 1 06:21:56,698 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Moving last applied index from 0 to 1 06:21:56,698 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Applying state for log index 1 data one 06:21:56,698 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: applyState called: one 06:21:56,698 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Persisting ApplyJournalEntries with index=1 06:21:56,704 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:56,704 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Persisting ApplyJournalEntries with index=0 [WARN] [11/22/2024 18:21:56.730] [test-akka.actor.default-dispatcher-17] [akka://test/] unhandled message from TestActor[akka://test/user/leader301]: AppendEntries [leaderId=leader301, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [INFO] [akkaDeadLetter][11/22/2024 18:21:56.730] [test-akka.actor.default-dispatcher-6] [akka://test/] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader301] to Actor[akka://test/] was unhandled. [9] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,730 PM [test-akka.actor.default-dispatcher-6] [INFO] LocalActorRefProvider$$anon$2 - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader301] to Actor[akka://test/] was unhandled. [9] dead letters encountered. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,747 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Persist data SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:56,747 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:56,747 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 06:21:56,747 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower303: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 06:21:56,747 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower302: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 06:21:56,747 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): sendAppendEntries: 2 is present for follower follower302 06:21:56,747 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Sending AppendEntries to follower follower302: AppendEntries [leaderId=leader301, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]] 06:21:56,747 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Persist data SimpleReplicatedLogEntry [index=3, term=1, payload=three] 06:21:56,747 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] [WARN] [11/22/2024 18:21:56.747] [test-akka.actor.default-dispatcher-12] [akka://test/] unhandled message from TestActor[akka://test/user/leader301]: AppendEntries [leaderId=leader301, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:56,748 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, isSendImmediate: true 06:21:56,748 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower303: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 06:21:56,748 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower302: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: -1 06:21:56,748 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): sendAppendEntries: 2 is present for follower follower302 06:21:56,748 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): handleAppendEntries: AppendEntries [leaderId=leader301, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]] 06:21:56,748 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Number of entries to be appended = 1 06:21:56,748 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:21:56,748 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Append entry to log two 06:21:56,748 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:56,748 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Log size is now 3 06:21:56,748 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Commit index set to 1 06:21:56,748 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower302, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:21:56,748 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower302: Lagging 0 entries behind leader leader301 and reached 1 (of expected -1) 06:21:56,748 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 2 06:21:56,748 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Setting last applied to 1 06:21:56,748 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Moving last applied index from 0 to 1 [INFO] [akkaDeadLetter][11/22/2024 18:21:56.748] [test-akka.actor.default-dispatcher-16] [akka://test/] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader301] to Actor[akka://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 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,748 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Applying state for log index 1 data one 06:21:56,748 PM [test-akka.actor.default-dispatcher-16] [INFO] LocalActorRefProvider$$anon$2 - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader301] to Actor[akka://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 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 06:21:56,748 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower302 updated: matchIndex: 2, nextIndex: 3 06:21:56,748 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: applyState called: one 06:21:56,748 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower302: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: -1 06:21:56,748 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): sendAppendEntries: 3 is present for follower follower302 06:21:56,748 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Sending AppendEntries to follower follower302: AppendEntries [leaderId=leader301, prevLogIndex=2, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=1, payload=three]]] 06:21:56,748 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:56,748 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Setting last applied to 2 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Moving last applied index from 1 to 2 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Applying state for log index 2 data two 06:21:56,749 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Persisting ApplyJournalEntries with index=1 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: applyState called: two 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Persisting ApplyJournalEntries with index=2 06:21:56,749 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): handleAppendEntries: AppendEntries [leaderId=leader301, prevLogIndex=2, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=1, payload=three]]] 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 06:21:56,749 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Number of entries to be appended = 1 06:21:56,749 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 06:21:56,749 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Append entry to log three 06:21:56,749 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=3, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=1, mandatoryTrim=false] 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: lastSequenceNumber prior to capture: 7 06:21:56,749 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Log size is now 4 06:21:56,749 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower302, logLastIndex=3, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: CaptureSnapshotReply received by actor 06:21:56,749 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower302: Lagging 0 entries behind leader leader301 and reached 1 (of expected -1) 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: 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=leader301, ServerConfigPayload=null] 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: log size 4 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 2 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 2 and term: 1 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower302 updated: matchIndex: 3, nextIndex: 4 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Setting last applied to 3 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Moving last applied index from 2 to 3 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Applying state for log index 3 data three 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: applyState called: three 06:21:56,749 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower302: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 2 06:21:56,750 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Persisting ApplyJournalEntries with index=3 06:21:56,750 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: SaveSnapshotSuccess received for snapshot, sequenceNr: 7 06:21:56,750 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Snapshot success - sequence number: 7 [WARN] [11/22/2024 18:21:56.750] [test-akka.actor.default-dispatcher-5] [akka://test/] unhandled message from TestActor[akka://test/user/leader301]: AppendEntries [leaderId=leader301, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:56,750 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 06:21:56,750 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: SnapshotComplete received 06:21:56,750 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Commit index set to 3 06:21:56,750 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower302: Lagging 0 entries behind leader leader301 and reached 3 (of expected -1) 06:21:56,750 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 1, lastIndex(): 3 06:21:56,750 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Setting last applied to 2 06:21:56,750 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Moving last applied index from 1 to 2 06:21:56,750 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Applying state for log index 2 data two 06:21:56,750 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: applyState called: two 06:21:56,750 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302 (Follower): Setting last applied to 3 06:21:56,750 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Moving last applied index from 2 to 3 06:21:56,750 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Applying state for log index 3 data three 06:21:56,750 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: applyState called: three 06:21:56,750 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower302: Persisting ApplyJournalEntries with index=3 06:21:56,750 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: handled a snapshot response 06:21:56,751 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: handled a journal response 06:21:56,810 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Persist data SimpleReplicatedLogEntry [index=4, term=1, payload=four] 06:21:56,810 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=four] 06:21:56,810 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, isSendImmediate: true 06:21:56,810 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower303: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: 2 06:21:56,810 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower302: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: 2 06:21:56,810 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): sendAppendEntries: 4 is present for follower follower302 06:21:56,810 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Sending AppendEntries to follower follower302: AppendEntries [leaderId=leader301, prevLogIndex=3, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=1, payload=four]]] 06:21:56,811 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Persist data SimpleReplicatedLogEntry [index=5, term=1, payload=five] 06:21:56,811 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=1, payload=five] 06:21:56,811 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Replicate message: identifier: MockIdentifier{value=five}, logIndex: 5, isSendImmediate: true 06:21:56,811 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower303: active: false, followerNextIndex: -1, leaderLastIndex: 5, leaderSnapShotIndex: 2 06:21:56,811 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower302: active: true, followerNextIndex: 4, leaderLastIndex: 5, leaderSnapShotIndex: 2 06:21:56,811 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): sendAppendEntries: 4 is present for follower follower302 [WARN] [11/22/2024 18:21:56.811] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower302] received dead letter from TestActor[akka://test/user/leader301]: AppendEntries [leaderId=leader301, 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] [11/22/2024 18:21:56.812] [test-akka.actor.default-dispatcher-17] [akka://test/] unhandled message from TestActor[akka://test/user/leader301]: AppendEntries [leaderId=leader301, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [11/22/2024 18:21:56.812] [test-akka.actor.default-dispatcher-17] [akka://test/] unhandled message from TestActor[akka://test/user/leader301]: AppendEntries [leaderId=leader301, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:56,812 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=four] 06:21:56,813 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: persist complete SimpleReplicatedLogEntry [index=5, term=1, payload=five] [WARN] [11/22/2024 18:21:56.850] [test-akka.actor.default-dispatcher-18] [akka://test/] unhandled message from TestActor[akka://test/user/leader301]: AppendEntries [leaderId=leader301, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:56,864 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Persist data SimpleReplicatedLogEntry [index=4, term=1, payload=newFour] 06:21:56,864 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=newFour] 06:21:56,864 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Replicate message: identifier: MockIdentifier{value=newFour}, logIndex: 4, isSendImmediate: true 06:21:56,865 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower303: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: 2 06:21:56,865 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower302: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: 2 06:21:56,865 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): sendAppendEntries: 4 is present for follower follower302 [WARN] [11/22/2024 18:21:56.865] [test-akka.actor.default-dispatcher-18] [akka://test/] unhandled message from TestActor[akka://test/user/leader301]: AppendEntries [leaderId=leader301, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:56,865 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=newFour] 06:21:56,969 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Persist data SimpleReplicatedLogEntry [index=5, term=1, payload=newFive] 06:21:56,969 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Append log entry and persist SimpleReplicatedLogEntry [index=5, term=1, payload=newFive] 06:21:56,969 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Replicate message: identifier: MockIdentifier{value=newFive}, logIndex: 5, isSendImmediate: true 06:21:56,969 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower303: active: false, followerNextIndex: -1, leaderLastIndex: 5, leaderSnapShotIndex: 2 06:21:56,969 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Checking sendAppendEntries for follower follower302: active: true, followerNextIndex: 4, leaderLastIndex: 5, leaderSnapShotIndex: 2 06:21:56,969 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): sendAppendEntries: 4 is present for follower follower302 06:21:56,969 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Sending AppendEntries to follower follower302: AppendEntries [leaderId=leader301, prevLogIndex=3, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=1, payload=newFour], SimpleReplicatedLogEntry [index=5, term=1, payload=newFive]]] [WARN] [11/22/2024 18:21:56.970] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower302] received dead letter from TestActor[akka://test/user/leader301]: AppendEntries [leaderId=leader301, prevLogIndex=3, prevLogTerm=1, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=1, payload=newFour], SimpleReplicatedLogEntry [index=5, term=1, payload=newFive]]] [WARN] [11/22/2024 18:21:56.970] [test-akka.actor.default-dispatcher-17] [akka://test/] unhandled message from TestActor[akka://test/user/leader301]: AppendEntries [leaderId=leader301, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:56,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): sendAppendEntries: 4 is present for follower follower302 06:21:56,970 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: persist complete SimpleReplicatedLogEntry [index=5, term=1, payload=newFive] [WARN] [11/22/2024 18:21:56.970] [test-akka.actor.default-dispatcher-12] [akka://test/] unhandled message from TestActor[akka://test/user/leader301]: AppendEntries [leaderId=leader301, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [11/22/2024 18:21:57.085] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader301]: org.opendaylight.controller.cluster.common.actor.Monitor@1e6b31ea 06:21:57,86 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader301 with journal batch size 1000 06:21:57,86 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: SnapshotOffer called. 06:21:57,86 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Moving last applied index from -1 to 2 06:21:57,86 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Set currentTerm=1, votedFor=leader301 06:21:57,87 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Recovery snapshot applied for leader301 in 122.4 μs: snapshotIndex=2, snapshotTerm=1, journal-size=1 06:21:57,89 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Received apply journal entries for recovery, applying to state: 3 to 2 06:21:57,89 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Moving last applied index from 2 to 2 06:21:57,89 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Received apply journal entries for recovery, applying to state: 3 to 3 06:21:57,89 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Moving last applied index from 2 to 3 06:21:57,89 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Received ReplicatedLogEntry for recovery: index: 4, size: 4 06:21:57,89 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Received ReplicatedLogEntry for recovery: index: 5, size: 4 06:21:57,89 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Received ReplicatedLogEntry for recovery: index: 4, size: 7 06:21:57,89 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Received ReplicatedLogEntry for recovery: index: 5, size: 7 06:21:57,90 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Recovery completed in 3.176 ms - Switching actor to Follower - last log index = 5, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 3 06:21:57,90 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower302-collector304#-1450462819] 06:21:57,90 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Follower): Received TimeoutNow - switching to Candidate 06:21:57,90 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Candidate): Election: Candidate has following voting peers: [] 06:21:57,90 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301: Set currentTerm=2, votedFor=leader301 06:21:57,90 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Candidate): Starting new election term 2 06:21:57,90 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:21:57,91 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Candidate): Received ElectionTimeout 06:21:57,91 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Leader): Election: Leader has following peers: [] 06:21:57,91 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader301 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:21:57,101 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower302] 06:21:57,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader301-collector305#-1696973178] 06:21:57,101 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader301] 06:21:57,101 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader301-collector306#-642404662] 06:21:57,102 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader301] [WARN] [11/22/2024 18:21:57.105] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower308]: org.opendaylight.controller.cluster.common.actor.Monitor@40f34d90 06:21:57,106 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower308 with journal batch size 1000 06:21:57,107 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [11/22/2024 18:21:57.108] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader307]: org.opendaylight.controller.cluster.common.actor.Monitor@3a93af0e 06:21:57,108 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader307 with journal batch size 1000 06:21:57,109 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:21:57,569 PM [test-akka.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:21:57,569 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.100:25520, Removed) 06:21:57,569 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Follower): Received ElectionTimeout - switching to Candidate 06:21:57,569 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Candidate): Election: Candidate has following voting peers: [follower308, follower309] 06:21:57,569 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Set currentTerm=1, votedFor=leader307 06:21:57,569 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Candidate): Starting new election term 1 06:21:57,570 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Candidate): Sending RequestVote [term=1, candidateId=leader307, lastLogIndex=-1, lastLogTerm=-1] to peer follower308 06:21:57,570 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Candidate): Sending RequestVote [term=1, candidateId=leader307, lastLogIndex=-1, lastLogTerm=-1] to peer follower309 06:21:57,570 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Follower) :- Switching from behavior Follower to Candidate, election term: 1 06:21:57,570 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 06:21:57,570 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Cluster state: [] 06:21:57,570 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Candidate in requestVote:RequestVote [term=1, candidateId=leader307, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 06:21:57,570 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Term 1 in "RequestVote [term=1, candidateId=leader307, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 06:21:57,570 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Set currentTerm=1, votedFor=null 06:21:57,570 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): In requestVote: RequestVote [term=1, candidateId=leader307, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 1, votedFor: null, lastIndex: -1, lastTerm: -1 06:21:57,570 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Set currentTerm=1, votedFor=leader307 06:21:57,570 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): requestVote returning: RequestVoteReply [term=1, voteGranted=true] [WARN] [11/22/2024 18:21:57.570] [test-akka.actor.default-dispatcher-11] [akka://test/] unhandled message from TestActor[akka://test/user/leader307]: RequestVote [term=1, candidateId=leader307, lastLogIndex=-1, lastLogTerm=-1] 06:21:57,570 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 06:21:57,571 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:21:57,571 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Election: Leader has following peers: [follower308, follower309] 06:21:57,571 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower308: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:21:57,571 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower309: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:21:57,571 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 06:21:57,571 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower308: Last sync leader does not match current leader leader307, need to catch up to -1 06:21:57,571 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower308 updated: matchIndex: -1, nextIndex: 0 06:21:57,571 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower308: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [11/22/2024 18:21:57.571] [test-akka.actor.default-dispatcher-18] [akka://test/] unhandled message from TestActor[akka://test/user/leader307]: AppendEntries [leaderId=leader307, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [11/22/2024 18:21:57.571] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower308] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@18948dbe 06:21:57,612 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:57,612 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:57,612 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 06:21:57,612 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower308: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 06:21:57,612 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): sendAppendEntries: 0 is present for follower follower308 06:21:57,612 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Sending AppendEntries to follower follower308: AppendEntries [leaderId=leader307, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]] 06:21:57,612 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower309: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 06:21:57,612 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): handleAppendEntries: AppendEntries [leaderId=leader307, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]] 06:21:57,612 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Number of entries to be appended = 1 06:21:57,612 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:21:57,612 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Append entry to log zero 06:21:57,612 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:57,613 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Log size is now 1 06:21:57,613 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower308, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:21:57,613 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower308: Lagging 0 entries behind leader leader307 and reached -1 (of expected -1) 06:21:57,613 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower308 updated: matchIndex: 0, nextIndex: 1 06:21:57,613 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower308: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [11/22/2024 18:21:57.613] [test-akka.actor.default-dispatcher-16] [akka://test/] unhandled message from TestActor[akka://test/user/leader307]: AppendEntries [leaderId=leader307, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:57,613 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:57,613 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 06:21:57,613 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Setting last applied to 0 06:21:57,613 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Moving last applied index from -1 to 0 06:21:57,613 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:57,613 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Applying state for log index 0 data zero 06:21:57,614 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: applyState called: zero [WARN] [11/22/2024 18:21:57.614] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower308] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@92a106 06:21:57,614 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Persisting ApplyJournalEntries with index=0 06:21:57,662 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Persist data SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:57,662 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:57,662 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower308: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): sendAppendEntries: 1 is present for follower follower308 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Sending AppendEntries to follower follower308: AppendEntries [leaderId=leader307, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]] 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower309: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): handleAppendEntries: AppendEntries [leaderId=leader307, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]] 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Number of entries to be appended = 1 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Append entry to log one 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Log size is now 2 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Commit index set to 0 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower308, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower308: Lagging 0 entries behind leader leader307 and reached 0 (of expected -1) 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Setting last applied to 0 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Moving last applied index from -1 to 0 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Applying state for log index 0 data zero [WARN] [11/22/2024 18:21:57.663] [test-akka.actor.default-dispatcher-6] [akka://test/] unhandled message from TestActor[akka://test/user/leader307]: AppendEntries [leaderId=leader307, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:57,663 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: applyState called: zero 06:21:57,664 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower308 updated: matchIndex: 1, nextIndex: 2 06:21:57,664 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower308: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:57,664 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:57,664 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 06:21:57,664 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Setting last applied to 1 06:21:57,664 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Moving last applied index from 0 to 1 06:21:57,664 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Applying state for log index 1 data one 06:21:57,664 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:57,664 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: applyState called: one 06:21:57,664 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Persisting ApplyJournalEntries with index=0 06:21:57,664 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Persisting ApplyJournalEntries with index=1 [WARN] [11/22/2024 18:21:57.690] [test-akka.actor.default-dispatcher-11] [akka://test/] unhandled message from TestActor[akka://test/user/leader307]: AppendEntries [leaderId=leader307, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:57,714 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Persist data SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:57,714 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:57,714 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower308: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): sendAppendEntries: 2 is present for follower follower308 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Sending AppendEntries to follower follower308: AppendEntries [leaderId=leader307, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]] 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower309: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Persist data SimpleReplicatedLogEntry [index=3, term=1, payload=three] 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, isSendImmediate: true 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower308: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: -1 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): sendAppendEntries: 2 is present for follower follower308 [WARN] [11/22/2024 18:21:57.715] [test-akka.actor.default-dispatcher-6] [akka://test/] unhandled message from TestActor[akka://test/user/leader307]: AppendEntries [leaderId=leader307, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower309: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Persist data SimpleReplicatedLogEntry [index=4, term=1, payload=four] 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=four] [WARN] [11/22/2024 18:21:57.715] [test-akka.actor.default-dispatcher-6] [akka://test/] unhandled message from TestActor[akka://test/user/leader307]: AppendEntries [leaderId=leader307, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, isSendImmediate: true 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower308: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): sendAppendEntries: 2 is present for follower follower308 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower309: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:21:57,715 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] [WARN] [11/22/2024 18:21:57.716] [test-akka.actor.default-dispatcher-11] [akka://test/] unhandled message from TestActor[akka://test/user/leader307]: AppendEntries [leaderId=leader307, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:57,716 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 06:21:57,716 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=3, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=3, mandatoryTrim=false] 06:21:57,716 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: lastSequenceNumber prior to capture: 7 06:21:57,716 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: CaptureSnapshotReply received by actor 06:21:57,716 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Persisting of snapshot done: Snapshot [lastIndex=3, lastTerm=1, lastAppliedIndex=1, lastAppliedTerm=1, unAppliedEntries size=3, state=MockSnapshotState [state=[zero, one]], electionTerm=1, electionVotedFor=leader307, ServerConfigPayload=null] 06:21:57,716 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: log size 5 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 1 06:21:57,716 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 06:21:57,716 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=four] 06:21:57,716 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: SaveSnapshotSuccess received for snapshot, sequenceNr: 7 06:21:57,716 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Snapshot success - sequence number: 7 06:21:57,716 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: SnapshotComplete received 06:21:57,717 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: handled a journal response 06:21:57,717 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: handled a snapshot response 06:21:57,810 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): sendAppendEntries: 2 is present for follower follower308 [WARN] [11/22/2024 18:21:57.810] [test-akka.actor.default-dispatcher-11] [akka://test/] unhandled message from TestActor[akka://test/user/leader307]: AppendEntries [leaderId=leader307, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:57,930 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): sendAppendEntries: 2 is present for follower follower308 06:21:57,930 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Sending AppendEntries to follower follower308: AppendEntries [leaderId=leader307, 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] [11/22/2024 18:21:57.930] [test-akka.actor.default-dispatcher-16] [akka://test/] unhandled message from TestActor[akka://test/user/leader307]: AppendEntries [leaderId=leader307, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:58,50 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): sendAppendEntries: 2 is present for follower follower308 06:21:58,50 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Sending AppendEntries to follower follower308: AppendEntries [leaderId=leader307, 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] [11/22/2024 18:21:58.050] [test-akka.actor.default-dispatcher-18] [akka://test/] unhandled message from TestActor[akka://test/user/leader307]: AppendEntries [leaderId=leader307, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:58,170 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower308: Lagging -1 entries behind leader leader307 and reached 0 (of expected -1) 06:21:58,170 PM [test-akka.actor.default-dispatcher-18] [WARN] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply [term=1, success=true, followerId=follower308, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], timeSinceLastActivity : 506, lastApplied : 1, commitIndex : 1 [WARN] [11/22/2024 18:21:58.170] [test-akka.actor.default-dispatcher-16] [akka://test/] unhandled message from TestActor[akka://test/user/leader307]: AppendEntries [leaderId=leader307, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:58,170 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): sendAppendEntries: 2 is present for follower follower308 06:21:58,170 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Sending AppendEntries to follower follower308: AppendEntries [leaderId=leader307, 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]]] 06:21:58,170 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): handleAppendEntries: AppendEntries [leaderId=leader307, 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]]] 06:21:58,170 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Number of entries to be appended = 3 06:21:58,170 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:21:58,170 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Append entry to log two 06:21:58,170 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Append entry to log three 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Append entry to log four 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=four] 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Log size is now 5 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Commit index set to 1 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower308, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower308: Lagging 0 entries behind leader leader307 and reached 1 (of expected -1) 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 4 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Setting last applied to 1 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Moving last applied index from 0 to 1 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Applying state for log index 1 data one 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: applyState called: one 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower308 updated: matchIndex: 4, nextIndex: 5 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 1 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Setting last applied to 2 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Moving last applied index from 1 to 2 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Applying state for log index 2 data two 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: applyState called: two 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Setting last applied to 3 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Moving last applied index from 2 to 3 06:21:58,171 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Applying state for log index 3 data three 06:21:58,172 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: applyState called: three 06:21:58,172 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Setting last applied to 4 06:21:58,172 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Moving last applied index from 3 to 4 06:21:58,172 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Applying state for log index 4 data four 06:21:58,172 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: applyState called: four 06:21:58,172 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Checking sendAppendEntries for follower follower308: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: 1 06:21:58,172 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Persisting ApplyJournalEntries with index=4 06:21:58,173 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:58,173 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 06:21:58,173 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=four] 06:21:58,173 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Persisting ApplyJournalEntries with index=1 06:21:58,173 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Commit index set to 4 06:21:58,173 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower308: Lagging 0 entries behind leader leader307 and reached 4 (of expected -1) 06:21:58,173 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 1, lastIndex(): 4 06:21:58,173 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Setting last applied to 2 06:21:58,173 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Moving last applied index from 1 to 2 06:21:58,174 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Applying state for log index 2 data two 06:21:58,174 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: applyState called: two 06:21:58,174 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Setting last applied to 3 06:21:58,174 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Moving last applied index from 2 to 3 06:21:58,174 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Applying state for log index 3 data three 06:21:58,174 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: applyState called: three 06:21:58,174 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308 (Follower): Setting last applied to 4 06:21:58,174 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Moving last applied index from 3 to 4 06:21:58,174 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Applying state for log index 4 data four 06:21:58,174 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: applyState called: four 06:21:58,174 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower308: Persisting ApplyJournalEntries with index=4 [WARN] [11/22/2024 18:21:58.233] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader307]: org.opendaylight.controller.cluster.common.actor.Monitor@367fa70 06:21:58,234 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader307 with journal batch size 1000 06:21:58,235 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: SnapshotOffer called. 06:21:58,235 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Moving last applied index from -1 to 1 06:21:58,235 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Set currentTerm=1, votedFor=leader307 06:21:58,235 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Recovery snapshot applied for leader307 in 119.3 μs: snapshotIndex=1, snapshotTerm=1, journal-size=3 06:21:58,238 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Received ReplicatedLogEntry for recovery: index: 4, size: 4 06:21:58,238 PM [test-akka.actor.default-dispatcher-18] [WARN] AbstractReplicatedLogImpl - leader307: 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:129) 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 akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:24) at akka.japi.pf.UnitCaseStatement.apply(CaseStatements.scala:20) at scala.PartialFunction.applyOrElse(PartialFunction.scala:214) at scala.PartialFunction.applyOrElse$(PartialFunction.scala:213) at akka.japi.pf.UnitCaseStatement.applyOrElse(CaseStatements.scala:20) at scala.PartialFunction$OrElse.apply(PartialFunction.scala:266) at akka.persistence.Eventsourced$$anon$2$$anonfun$1.applyOrElse(Eventsourced.scala:639) at akka.actor.Actor.aroundReceive(Actor.scala:537) at akka.actor.Actor.aroundReceive$(Actor.scala:535) at akka.persistence.AbstractPersistentActor.akka$persistence$Eventsourced$$super$aroundReceive(PersistentActor.scala:295) at akka.persistence.Eventsourced$$anon$3.stateReceive(Eventsourced.scala:756) at akka.persistence.Eventsourced.aroundReceive(Eventsourced.scala:245) at akka.persistence.Eventsourced.aroundReceive$(Eventsourced.scala:244) at akka.persistence.AbstractPersistentActor.aroundReceive(PersistentActor.scala:295) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:579) at akka.actor.ActorCell.invoke(ActorCell.scala:547) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:270) at akka.dispatch.Mailbox.run(Mailbox.scala:231) at akka.dispatch.Mailbox.exec(Mailbox.scala:243) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) 06:21:58,239 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Received apply journal entries for recovery, applying to state: 2 to 4 06:21:58,239 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Moving last applied index from 1 to 4 06:21:58,239 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Recovery completed in 4.085 ms - Switching actor to Follower - last log index = 4, last log term = 1, snapshot index = 1, snapshot term = 1, journal size = 3 06:21:58,239 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower308-collector310#-1124278267] 06:21:58,240 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Follower): Received TimeoutNow - switching to Candidate 06:21:58,240 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Candidate): Election: Candidate has following voting peers: [] 06:21:58,240 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307: Set currentTerm=2, votedFor=leader307 06:21:58,240 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Candidate): Starting new election term 2 06:21:58,240 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:21:58,241 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Candidate): Received ElectionTimeout 06:21:58,241 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Leader): Election: Leader has following peers: [] 06:21:58,241 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader307 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:21:58,251 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower308] 06:21:58,251 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader307-collector311#590912991] 06:21:58,251 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader307] 06:21:58,251 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader307-collector312#-1420904074] 06:21:58,251 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader307] [WARN] [11/22/2024 18:21:58.259] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower314]: org.opendaylight.controller.cluster.common.actor.Monitor@5c9725a9 06:21:58,260 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower314 with journal batch size 1000 06:21:58,263 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [11/22/2024 18:21:58.361] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader313]: org.opendaylight.controller.cluster.common.actor.Monitor@2d228d8f 06:21:58,362 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader313 with journal batch size 1000 06:21:58,363 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:21:58,800 PM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:21:58,800 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.100:25520, Removed) 06:21:58,800 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Follower): Received ElectionTimeout - switching to Candidate 06:21:58,800 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Candidate): Election: Candidate has following voting peers: [follower315, follower314] 06:21:58,800 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Set currentTerm=1, votedFor=leader313 06:21:58,801 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Candidate): Starting new election term 1 06:21:58,801 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Candidate): Sending RequestVote [term=1, candidateId=leader313, lastLogIndex=-1, lastLogTerm=-1] to peer follower315 06:21:58,801 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Candidate): Sending RequestVote [term=1, candidateId=leader313, lastLogIndex=-1, lastLogTerm=-1] to peer follower314 06:21:58,801 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 06:21:58,801 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Follower) :- Switching from behavior Follower to Candidate, election term: 1 06:21:58,801 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Cluster state: [] 06:21:58,801 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Candidate in requestVote:RequestVote [term=1, candidateId=leader313, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 06:21:58,801 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Term 1 in "RequestVote [term=1, candidateId=leader313, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 06:21:58,801 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: Set currentTerm=1, votedFor=null 06:21:58,801 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): In requestVote: RequestVote [term=1, candidateId=leader313, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 1, votedFor: null, lastIndex: -1, lastTerm: -1 06:21:58,801 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: Set currentTerm=1, votedFor=leader313 06:21:58,801 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): requestVote returning: RequestVoteReply [term=1, voteGranted=true] [WARN] [11/22/2024 18:21:58.801] [test-akka.actor.default-dispatcher-18] [akka://test/] unhandled message from TestActor[akka://test/user/leader313]: RequestVote [term=1, candidateId=leader313, lastLogIndex=-1, lastLogTerm=-1] 06:21:58,802 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 06:21:58,802 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:21:58,802 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Election: Leader has following peers: [follower315, follower314] 06:21:58,802 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Checking sendAppendEntries for follower follower315: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:21:58,802 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Checking sendAppendEntries for follower follower314: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:21:58,803 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 [WARN] [11/22/2024 18:21:58.802] [test-akka.actor.default-dispatcher-5] [akka://test/] unhandled message from TestActor[akka://test/user/leader313]: AppendEntries [leaderId=leader313, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:58,803 PM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower314: Last sync leader does not match current leader leader313, need to catch up to -1 [WARN] [11/22/2024 18:21:58.803] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower314] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@c5593d 06:21:58,803 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower314 updated: matchIndex: -1, nextIndex: 0 06:21:58,803 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Checking sendAppendEntries for follower follower314: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:21:58,815 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:58,815 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:58,815 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 06:21:58,815 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Checking sendAppendEntries for follower follower315: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 06:21:58,815 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Checking sendAppendEntries for follower follower314: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 06:21:58,815 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): sendAppendEntries: 0 is present for follower follower314 06:21:58,815 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Sending AppendEntries to follower follower314: AppendEntries [leaderId=leader313, 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] [11/22/2024 18:21:58.815] [test-akka.actor.default-dispatcher-18] [akka://test/] unhandled message from TestActor[akka://test/user/leader313]: AppendEntries [leaderId=leader313, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:58,815 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): handleAppendEntries: AppendEntries [leaderId=leader313, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]] 06:21:58,815 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Number of entries to be appended = 1 06:21:58,815 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:21:58,815 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Append entry to log zero 06:21:58,815 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:58,816 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Log size is now 1 06:21:58,816 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower314, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:21:58,816 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower314: Lagging 0 entries behind leader leader313 and reached -1 (of expected -1) 06:21:58,816 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower314 updated: matchIndex: 0, nextIndex: 1 06:21:58,816 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Checking sendAppendEntries for follower follower314: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 06:21:58,816 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:58,816 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 06:21:58,816 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Setting last applied to 0 06:21:58,816 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Moving last applied index from -1 to 0 06:21:58,816 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Applying state for log index 0 data zero 06:21:58,816 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: applyState called: zero 06:21:58,816 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Persisting ApplyJournalEntries with index=0 06:21:58,817 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] [WARN] [11/22/2024 18:21:58.817] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower314] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@18af1e8b 06:21:58,865 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Persist data SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:58,865 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:58,866 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 06:21:58,866 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Checking sendAppendEntries for follower follower315: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:58,866 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Checking sendAppendEntries for follower follower314: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:58,866 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): sendAppendEntries: 1 is present for follower follower314 06:21:58,866 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Sending AppendEntries to follower follower314: AppendEntries [leaderId=leader313, 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] [11/22/2024 18:21:58.866] [test-akka.actor.default-dispatcher-11] [akka://test/] unhandled message from TestActor[akka://test/user/leader313]: AppendEntries [leaderId=leader313, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:58,866 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): handleAppendEntries: AppendEntries [leaderId=leader313, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]] 06:21:58,866 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Number of entries to be appended = 1 06:21:58,866 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 06:21:58,866 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Append entry to log one 06:21:58,866 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:58,866 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Log size is now 2 06:21:58,866 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Commit index set to 0 06:21:58,866 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower314, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:21:58,867 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower314: Lagging 0 entries behind leader leader313 and reached 0 (of expected -1) 06:21:58,867 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 06:21:58,867 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Setting last applied to 0 06:21:58,867 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: Moving last applied index from -1 to 0 06:21:58,867 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: Applying state for log index 0 data zero 06:21:58,867 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower314 updated: matchIndex: 1, nextIndex: 2 06:21:58,867 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Checking sendAppendEntries for follower follower314: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:58,867 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: applyState called: zero 06:21:58,867 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:58,867 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 06:21:58,867 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Setting last applied to 1 06:21:58,867 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Moving last applied index from 0 to 1 06:21:58,867 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Applying state for log index 1 data one 06:21:58,867 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: applyState called: one 06:21:58,867 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Persisting ApplyJournalEntries with index=1 06:21:58,868 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:58,868 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: Persisting ApplyJournalEntries with index=0 [WARN] [11/22/2024 18:21:58.917] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower315]: org.opendaylight.controller.cluster.common.actor.Monitor@177737ad 06:21:58,918 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower315 with journal batch size 1000 06:21:58,919 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [11/22/2024 18:21:58.920] [test-akka.actor.default-dispatcher-18] [akka://test/] unhandled message from TestActor[akka://test/user/leader313]: AppendEntries [leaderId=leader313, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:59,18 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Peer address for peer follower315 set to akka://test/user/follower315 06:21:59,18 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Persist data SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:59,18 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:59,18 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Checking sendAppendEntries for follower follower315: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Checking sendAppendEntries for follower follower314: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): sendAppendEntries: 2 is present for follower follower314 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Sending AppendEntries to follower follower314: AppendEntries [leaderId=leader313, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]] 06:21:59,19 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Term 1 in "AppendEntries [leaderId=leader313, 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 06:21:59,19 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Set currentTerm=1, votedFor=null 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): handleAppendEntries: AppendEntries [leaderId=leader313, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]] 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Number of entries to be appended = 1 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Append entry to log two 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:59,19 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower315: Last sync leader does not match current leader leader313, need to catch up to -1 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Log size is now 3 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Commit index set to 1 06:21:59,19 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower315 updated: matchIndex: -1, nextIndex: 0 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower314, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower314: Lagging 0 entries behind leader leader313 and reached 1 (of expected -1) 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 2 06:21:59,19 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Checking sendAppendEntries for follower follower315: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Setting last applied to 1 06:21:59,19 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): sendAppendEntries: 0 is present for follower follower315 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: Moving last applied index from 0 to 1 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: Applying state for log index 1 data one 06:21:59,19 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Sending AppendEntries to follower follower315: AppendEntries [leaderId=leader313, 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]]] 06:21:59,19 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower314 updated: matchIndex: 2, nextIndex: 3 06:21:59,19 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Checking sendAppendEntries for follower follower314: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: -1 06:21:59,19 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: applyState called: one 06:21:59,20 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:59,20 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 06:21:59,20 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Setting last applied to 2 06:21:59,20 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Moving last applied index from 1 to 2 06:21:59,20 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Applying state for log index 2 data two 06:21:59,20 PM [test-akka.actor.default-dispatcher-18] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: applyState called: two 06:21:59,20 PM [test-akka.actor.default-dispatcher-18] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Persisting ApplyJournalEntries with index=2 06:21:59,20 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): handleAppendEntries: AppendEntries [leaderId=leader313, 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]]] 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Number of entries to be appended = 3 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Append entry to log zero 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] [WARN] [11/22/2024 18:21:59.020] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower315] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@66d10ab0 06:21:59,20 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: Persisting ApplyJournalEntries with index=1 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Append entry to log one 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Append entry to log two 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Log size is now 3 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Commit index set to 1 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower315, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower315: Lagging 0 entries behind leader leader313 and reached 1 (of expected -1) 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 2 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Setting last applied to 0 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Moving last applied index from -1 to 0 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Applying state for log index 0 data zero 06:21:59,20 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower315 updated: matchIndex: 2, nextIndex: 3 06:21:59,20 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: fakeSnapshot purging log to 1 for term 1 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: applyState called: zero 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Setting last applied to 1 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Moving last applied index from 0 to 1 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Applying state for log index 1 data one 06:21:59,20 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: applyState called: one 06:21:59,20 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Checking sendAppendEntries for follower follower315: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 06:21:59,21 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:59,21 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:59,21 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:59,21 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Persisting ApplyJournalEntries with index=1 06:21:59,22 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Commit index set to 2 06:21:59,22 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower315: Lagging 0 entries behind leader leader313 and reached 2 (of expected -1) 06:21:59,22 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:21:59,22 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Setting last applied to 2 06:21:59,22 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Moving last applied index from 1 to 2 06:21:59,22 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Applying state for log index 2 data two 06:21:59,22 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: applyState called: two 06:21:59,22 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: fakeSnapshot purging log to 1 for term 1 06:21:59,22 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Persisting ApplyJournalEntries with index=2 [WARN] [11/22/2024 18:21:59.022] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower315] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5f59a2b5 [WARN] [11/22/2024 18:21:59.082] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower315]: org.opendaylight.controller.cluster.common.actor.Monitor@547b2ba1 06:21:59,83 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower315 with journal batch size 1000 06:21:59,83 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Peer address for peer follower315 set to akka://test/user/follower315 06:21:59,84 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:21:59,160 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Term 1 in "AppendEntries [leaderId=leader313, 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 06:21:59,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Set currentTerm=1, votedFor=null 06:21:59,160 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): The followers log is empty and the senders prevLogIndex is 2 06:21:59,160 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=1, success=false, followerId=follower315, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:21:59,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower315: Last sync leader does not match current leader leader313, need to catch up to 2 06:21:59,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Commit index set to 2 06:21:59,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower314: Lagging 0 entries behind leader leader313 and reached 2 (of expected -1) 06:21:59,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 06:21:59,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314 (Follower): Setting last applied to 2 06:21:59,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: Moving last applied index from 1 to 2 06:21:59,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: Applying state for log index 2 data two 06:21:59,160 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: applyState called: two 06:21:59,160 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=1, success=false, followerId=follower315, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: 1, snapshotTerm: 1, replicatedToAllIndex: 1 06:21:59,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: fakeSnapshot purging log to 1 for term 1 06:21:59,160 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower315 updated: matchIndex: -1, nextIndex: 0 06:21:59,160 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower314: Persisting ApplyJournalEntries with index=2 06:21:59,161 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): follower follower315 appears to be behind the leader from the last snapshot - updated: matchIndex: -1, nextIndex: 0 06:21:59,161 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Checking sendAppendEntries for follower follower315: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: 1 06:21:59,161 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Initiating install snapshot to follower follower315: follower nextIndex: 0, leader snapshotIndex: 1, leader lastIndex: 2, leader log size: 1 06:21:59,161 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: 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 follower315 06:21:59,161 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: lastSequenceNumber prior to capture: 7 [WARN] [11/22/2024 18:21:59.161] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower315] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1a4dc104 06:21:59,161 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Cannot append entries because the replicatedToAllIndex 1 does not appear to be in the in-memory journal - lastIndex: -1, snapshotIndex: -1, snapshotTerm: -1 06:21:59,161 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=1, success=false, followerId=follower315, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:21:59,161 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: CaptureSnapshotReply received by actor 06:21:59,161 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: 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=leader313, ServerConfigPayload=null] 06:21:59,162 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 06:21:59,162 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): sendInstallSnapshot 06:21:59,162 PM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader313 (Leader): Snapshot 345 bytes, total chunks to send: 1 06:21:59,162 PM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader313 (Leader): Next chunk: total length=345, offset=0, size=345, hashCode=-1043722696 06:21:59,162 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): next snapshot chunk size for follower follower315: 345 06:21:59,162 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): InstallSnapshot sent to follower Vector(user, follower315), Chunk: 1/1 06:21:59,162 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): handleInstallSnapshot: InstallSnapshot [term=1, leaderId=leader313, lastIncludedIndex=2, lastIncludedTerm=1, datasize=345, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null] 06:21:59,162 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=1, success=false, followerId=follower315, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: 1, snapshotTerm: 1, replicatedToAllIndex: 1 06:21:59,162 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 06:21:59,162 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): follower follower315 appears to be behind the leader from the last snapshot - updated: matchIndex: -1, nextIndex: 0 06:21:59,162 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): Snapshot installed from leader: leader313 06:21:59,162 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: SaveSnapshotSuccess received for snapshot, sequenceNr: 7 06:21:59,162 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: Snapshot success - sequence number: 7 06:21:59,162 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: SnapshotComplete received 06:21:59,163 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: handled a snapshot response 06:21:59,163 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313: handled a journal response 06:21:59,163 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: 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] 06:21:59,163 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: 1 06:21:59,163 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: SaveSnapshotSuccess received for snapshot, sequenceNr: 1 06:21:59,163 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Snapshot success - sequence number: 1 06:21:59,163 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Moving last applied index from -1 to 2 06:21:59,163 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Set currentTerm=1, votedFor=null 06:21:59,163 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: applySnapshot called 06:21:59,164 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=follower315, chunkIndex=1, success=true] 06:21:59,164 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=follower315, chunkIndex=1, success=true] 06:21:59,164 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: SnapshotComplete received 06:21:59,164 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader313 (Leader): Snapshot successfully installed on follower follower315 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 06:21:59,164 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: handled a snapshot response 06:21:59,164 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: handled a journal response [WARN] [11/22/2024 18:21:59.196] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower315]: org.opendaylight.controller.cluster.common.actor.Monitor@3c3a3ea2 06:21:59,197 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower315 with journal batch size 1000 06:21:59,197 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: SnapshotOffer called. 06:21:59,197 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Moving last applied index from -1 to 2 06:21:59,197 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Set currentTerm=1, votedFor=null 06:21:59,197 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Recovery snapshot applied for follower315 in 90.55 μs: snapshotIndex=2, snapshotTerm=1, journal-size=0 06:21:59,199 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower315: Recovery completed in 1.525 ms - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = 2, snapshot term = 1, journal size = 0 06:21:59,280 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower314: Lagging 0 entries behind leader leader313 and reached 2 (of expected -1) 06:21:59,280 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower315: Last sync leader does not match current leader leader313, need to catch up to 2 [WARN] [11/22/2024 18:21:59.281] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower315] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@384e9f0f 06:21:59,297 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower314-collector316#-594632810] 06:21:59,307 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower314] 06:21:59,308 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader313-collector317#-1263045168] 06:21:59,308 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader313] 06:21:59,308 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower315-collector318#-1437865398] 06:21:59,308 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower315] 06:21:59,309 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower315-collector319#-605123701] 06:21:59,309 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower315] 06:21:59,309 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower315-collector320#-45340430] 06:21:59,309 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower315] [WARN] [11/22/2024 18:21:59.312] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower322]: org.opendaylight.controller.cluster.common.actor.Monitor@c9ad1c9 06:21:59,313 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower322 with journal batch size 1000 [WARN] [11/22/2024 18:21:59.314] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader321]: org.opendaylight.controller.cluster.common.actor.Monitor@63beebc2 06:21:59,315 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:21:59,315 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader321 with journal batch size 1000 06:21:59,321 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 06:21:59,800 PM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 06:21:59,800 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.170.100:25520, Removed) 06:21:59,800 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Follower): Received ElectionTimeout - switching to Candidate 06:21:59,800 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Candidate): Election: Candidate has following voting peers: [follower322, follower323] 06:21:59,800 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Set currentTerm=1, votedFor=leader321 06:21:59,800 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Candidate): Starting new election term 1 06:21:59,800 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Candidate): Sending RequestVote [term=1, candidateId=leader321, lastLogIndex=-1, lastLogTerm=-1] to peer follower322 06:21:59,800 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Candidate): Sending RequestVote [term=1, candidateId=leader321, lastLogIndex=-1, lastLogTerm=-1] to peer follower323 06:21:59,800 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Follower) :- Switching from behavior Follower to Candidate, election term: 1 06:21:59,800 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 06:21:59,800 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Cluster state: [] 06:21:59,800 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Candidate in requestVote:RequestVote [term=1, candidateId=leader321, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 06:21:59,800 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Term 1 in "RequestVote [term=1, candidateId=leader321, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 06:21:59,800 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Set currentTerm=1, votedFor=null 06:21:59,801 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): In requestVote: RequestVote [term=1, candidateId=leader321, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 1, votedFor: null, lastIndex: -1, lastTerm: -1 06:21:59,801 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Set currentTerm=1, votedFor=leader321 06:21:59,801 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): requestVote returning: RequestVoteReply [term=1, voteGranted=true] [WARN] [11/22/2024 18:21:59.801] [test-akka.actor.default-dispatcher-6] [akka://test/] unhandled message from TestActor[akka://test/user/leader321]: RequestVote [term=1, candidateId=leader321, lastLogIndex=-1, lastLogTerm=-1] 06:21:59,801 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Candidate): RaftRPC message received RequestVoteReply [term=1, voteGranted=true], my term is 1 06:21:59,801 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Candidate): handleRequestVoteReply: RequestVoteReply [term=1, voteGranted=true], current voteCount: 1 06:21:59,801 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Election: Leader has following peers: [follower322, follower323] 06:21:59,801 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower322: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:21:59,801 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower323: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 06:21:59,801 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Candidate) :- Switching from behavior Candidate to Leader, election term: 1 06:21:59,801 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower322: Last sync leader does not match current leader leader321, need to catch up to -1 06:21:59,802 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower322 updated: matchIndex: -1, nextIndex: 0 [WARN] [11/22/2024 18:21:59.802] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower322] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@26e7cff6 06:21:59,802 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower322: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [11/22/2024 18:21:59.802] [test-akka.actor.default-dispatcher-5] [akka://test/] unhandled message from TestActor[akka://test/user/leader321]: AppendEntries [leaderId=leader321, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:59,802 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:59,802 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:59,802 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 06:21:59,802 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower322: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 06:21:59,802 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): sendAppendEntries: 0 is present for follower follower322 06:21:59,802 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Sending AppendEntries to follower follower322: AppendEntries [leaderId=leader321, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]] 06:21:59,802 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower323: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 06:21:59,802 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): handleAppendEntries: AppendEntries [leaderId=leader321, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=zero]]] 06:21:59,802 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Number of entries to be appended = 1 06:21:59,802 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 06:21:59,802 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Append entry to log zero 06:21:59,802 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=zero] [WARN] [11/22/2024 18:21:59.802] [test-akka.actor.default-dispatcher-17] [akka://test/] unhandled message from TestActor[akka://test/user/leader321]: AppendEntries [leaderId=leader321, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:59,802 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Log size is now 1 06:21:59,802 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:59,802 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower322, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:21:59,802 PM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower322: Lagging 0 entries behind leader leader321 and reached -1 (of expected -1) 06:21:59,802 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower322 updated: matchIndex: 0, nextIndex: 1 06:21:59,802 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 06:21:59,803 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Setting last applied to 0 06:21:59,803 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Moving last applied index from -1 to 0 06:21:59,803 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Applying state for log index 0 data zero 06:21:59,803 PM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: applyState called: zero 06:21:59,803 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower322: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 06:21:59,803 PM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Persisting ApplyJournalEntries with index=0 06:21:59,803 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=zero] 06:21:59,803 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Commit index set to 0 06:21:59,803 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower322: Lagging 0 entries behind leader leader321 and reached 0 (of expected -1) 06:21:59,803 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 [WARN] [11/22/2024 18:21:59.803] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower322] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@206bfa60 06:21:59,803 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Setting last applied to 0 06:21:59,803 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Moving last applied index from -1 to 0 06:21:59,803 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Applying state for log index 0 data zero 06:21:59,803 PM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: applyState called: zero 06:21:59,803 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Persisting ApplyJournalEntries with index=0 06:21:59,853 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Persist data SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:59,853 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:59,853 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 06:21:59,853 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower322: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:59,853 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): sendAppendEntries: 1 is present for follower follower322 06:21:59,853 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Sending AppendEntries to follower follower322: AppendEntries [leaderId=leader321, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]] 06:21:59,853 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower323: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:59,853 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): handleAppendEntries: AppendEntries [leaderId=leader321, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=one]]] 06:21:59,853 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Number of entries to be appended = 1 06:21:59,853 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 06:21:59,853 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Append entry to log one 06:21:59,853 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:59,853 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Log size is now 2 06:21:59,853 PM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower322, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:21:59,853 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower322: Lagging 0 entries behind leader leader321 and reached 0 (of expected -1) [WARN] [11/22/2024 18:21:59.854] [test-akka.actor.default-dispatcher-11] [akka://test/] unhandled message from TestActor[akka://test/user/leader321]: AppendEntries [leaderId=leader321, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:59,854 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower322 updated: matchIndex: 1, nextIndex: 2 06:21:59,854 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower322: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 06:21:59,854 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:59,854 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=one] 06:21:59,854 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 06:21:59,854 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Setting last applied to 1 06:21:59,854 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Moving last applied index from 0 to 1 06:21:59,854 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Applying state for log index 1 data one 06:21:59,854 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: applyState called: one 06:21:59,854 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Persisting ApplyJournalEntries with index=1 06:21:59,904 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Persist data SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:59,904 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:21:59,904 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 06:21:59,904 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower322: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 06:21:59,905 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): sendAppendEntries: 2 is present for follower follower322 06:21:59,905 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Sending AppendEntries to follower follower322: AppendEntries [leaderId=leader321, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=two]]] 06:21:59,905 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower323: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 06:21:59,905 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Persist data SimpleReplicatedLogEntry [index=3, term=1, payload=three] 06:21:59,905 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 06:21:59,905 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Replicate message: identifier: MockIdentifier{value=three}, logIndex: 3, isSendImmediate: true 06:21:59,905 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower322: active: true, followerNextIndex: 2, leaderLastIndex: 3, leaderSnapShotIndex: -1 06:21:59,905 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): sendAppendEntries: 2 is present for follower follower322 06:21:59,905 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower323: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 06:21:59,906 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] [WARN] [11/22/2024 18:21:59.906] [test-akka.actor.default-dispatcher-16] [akka://test/] unhandled message from TestActor[akka://test/user/leader321]: AppendEntries [leaderId=leader321, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [11/22/2024 18:21:59.906] [test-akka.actor.default-dispatcher-16] [akka://test/] unhandled message from TestActor[akka://test/user/leader321]: AppendEntries [leaderId=leader321, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:21:59,907 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 06:21:59,907 PM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=1, lastIndex=3, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=2, mandatoryTrim=false] 06:21:59,907 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: lastSequenceNumber prior to capture: 7 [WARN] [11/22/2024 18:21:59.920] [test-akka.actor.default-dispatcher-11] [akka://test/] unhandled message from TestActor[akka://test/user/leader321]: AppendEntries [leaderId=leader321, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:22:00,60 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): sendAppendEntries: 2 is present for follower follower322 06:22:00,60 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Sending AppendEntries to follower follower322: AppendEntries [leaderId=leader321, 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] [11/22/2024 18:22:00.060] [test-akka.actor.default-dispatcher-17] [akka://test/] unhandled message from TestActor[akka://test/user/leader321]: AppendEntries [leaderId=leader321, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:22:00,180 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): sendAppendEntries: 2 is present for follower follower322 06:22:00,180 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Sending AppendEntries to follower follower322: AppendEntries [leaderId=leader321, 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] [11/22/2024 18:22:00.180] [test-akka.actor.default-dispatcher-16] [akka://test/] unhandled message from TestActor[akka://test/user/leader321]: AppendEntries [leaderId=leader321, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:22:00,207 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Persist data SimpleReplicatedLogEntry [index=4, term=1, payload=four] 06:22:00,207 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=four] 06:22:00,207 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Replicate message: identifier: MockIdentifier{value=four}, logIndex: 4, isSendImmediate: true 06:22:00,208 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower322: active: true, followerNextIndex: 2, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:22:00,208 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): sendAppendEntries: 2 is present for follower follower322 06:22:00,208 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower323: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 [WARN] [11/22/2024 18:22:00.208] [test-akka.actor.default-dispatcher-16] [akka://test/] unhandled message from TestActor[akka://test/user/leader321]: AppendEntries [leaderId=leader321, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:22:00,208 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=four] 06:22:00,300 PM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower322: Lagging -1 entries behind leader leader321 and reached 0 (of expected -1) 06:22:00,300 PM [test-akka.actor.default-dispatcher-16] [WARN] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader) : handleAppendEntriesReply delayed beyond election timeout, appendEntriesReply : AppendEntriesReply [term=1, success=true, followerId=follower322, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], timeSinceLastActivity : 446, lastApplied : 1, commitIndex : 1 06:22:00,300 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): sendAppendEntries: 2 is present for follower follower322 [WARN] [11/22/2024 18:22:00.300] [test-akka.actor.default-dispatcher-11] [akka://test/] unhandled message from TestActor[akka://test/user/leader321]: AppendEntries [leaderId=leader321, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 06:22:00,301 PM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Sending AppendEntries to follower follower322: AppendEntries [leaderId=leader321, 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]]] 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): handleAppendEntries: AppendEntries [leaderId=leader321, 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]]] 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Number of entries to be appended = 3 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Append entry to log two 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Append entry to log three 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=three] 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Append entry to log four 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=1, payload=four] 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Log size is now 5 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Commit index set to 1 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower322, logLastIndex=4, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower322: Lagging 0 entries behind leader leader321 and reached 1 (of expected -1) 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 4 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Setting last applied to 1 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Moving last applied index from 0 to 1 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Applying state for log index 1 data one 06:22:00,301 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower322 updated: matchIndex: 4, nextIndex: 5 06:22:00,301 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 1 06:22:00,301 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Setting last applied to 2 06:22:00,301 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Moving last applied index from 1 to 2 06:22:00,301 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Applying state for log index 2 data two 06:22:00,301 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: applyState called: one 06:22:00,301 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: applyState called: two 06:22:00,301 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Setting last applied to 3 06:22:00,301 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Moving last applied index from 2 to 3 06:22:00,301 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Applying state for log index 3 data three 06:22:00,301 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: applyState called: three 06:22:00,301 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Setting last applied to 4 06:22:00,301 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Moving last applied index from 3 to 4 06:22:00,301 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Applying state for log index 4 data four 06:22:00,302 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: applyState called: four 06:22:00,302 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Checking sendAppendEntries for follower follower322: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 06:22:00,302 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Persisting ApplyJournalEntries with index=4 06:22:00,302 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=two] 06:22:00,302 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=three] 06:22:00,302 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: persist complete SimpleReplicatedLogEntry [index=4, term=1, payload=four] 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Persisting ApplyJournalEntries with index=1 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Commit index set to 4 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower322: Lagging 0 entries behind leader leader321 and reached 4 (of expected -1) 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 1, lastIndex(): 4 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Setting last applied to 2 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Moving last applied index from 1 to 2 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Applying state for log index 2 data two 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: applyState called: two 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Setting last applied to 3 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Moving last applied index from 2 to 3 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Applying state for log index 3 data three 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: applyState called: three 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322 (Follower): Setting last applied to 4 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Moving last applied index from 3 to 4 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Applying state for log index 4 data four 06:22:00,303 PM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: applyState called: four 06:22:00,304 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower322: Persisting ApplyJournalEntries with index=4 06:22:00,308 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: CaptureSnapshotReply received by actor 06:22:00,309 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Persisting of snapshot done: Snapshot [lastIndex=3, lastTerm=1, lastAppliedIndex=1, lastAppliedTerm=1, unAppliedEntries size=2, state=MockSnapshotState [state=[zero, one]], electionTerm=1, electionVotedFor=leader321, ServerConfigPayload=null] 06:22:00,309 PM [test-akka.actor.default-dispatcher-11] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: log size 5 exceeds the snapshot batch count 4 - doing snapshotPreCommit with index 1 06:22:00,309 PM [test-akka.actor.default-dispatcher-11] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 06:22:00,309 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: SaveSnapshotSuccess received for snapshot, sequenceNr: 7 06:22:00,309 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Snapshot success - sequence number: 7 06:22:00,309 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: SnapshotComplete received 06:22:00,309 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: handled a journal response 06:22:00,309 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: handled a snapshot response [WARN] [11/22/2024 18:22:00.371] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader321]: org.opendaylight.controller.cluster.common.actor.Monitor@4f5caaa 06:22:00,372 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader321 with journal batch size 1000 06:22:00,373 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: SnapshotOffer called. 06:22:00,373 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Moving last applied index from -1 to 1 06:22:00,373 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Set currentTerm=1, votedFor=leader321 06:22:00,373 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Recovery snapshot applied for leader321 in 149.2 μs: snapshotIndex=1, snapshotTerm=1, journal-size=2 06:22:00,375 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Received ReplicatedLogEntry for recovery: index: 4, size: 4 06:22:00,375 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Received apply journal entries for recovery, applying to state: 2 to 4 06:22:00,375 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Moving last applied index from 1 to 4 06:22:00,375 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Recovery completed in 1.975 ms - Switching actor to Follower - last log index = 4, last log term = 1, snapshot index = 1, snapshot term = 1, journal size = 3 06:22:00,375 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower322-collector324#1897002618] 06:22:00,375 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Follower): Received TimeoutNow - switching to Candidate 06:22:00,375 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Candidate): Election: Candidate has following voting peers: [] 06:22:00,375 PM [test-akka.actor.default-dispatcher-15] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321: Set currentTerm=2, votedFor=leader321 06:22:00,375 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Candidate): Starting new election term 2 06:22:00,376 PM [test-akka.actor.default-dispatcher-15] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 06:22:00,383 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Candidate): Received ElectionTimeout 06:22:00,383 PM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Leader): Election: Leader has following peers: [] 06:22:00,383 PM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader321 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 06:22:00,386 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower322] 06:22:00,386 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader321-collector325#-1528919329] 06:22:00,386 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader321] 06:22:00,386 PM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader321-collector326#-817728681] 06:22:00,389 PM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader321] [INFO] [11/22/2024 18:22:00.390] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 06:22:00,391 PM [test-akka.actor.default-dispatcher-12] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [11/22/2024 18:22:00.392] [test-akka.actor.default-dispatcher-15] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.100:25520) [INFO] [11/22/2024 18:22:00.392] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.100:25520] - Exiting completed [INFO] [11/22/2024 18:22:00.392] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.100:25520] - Shutting down... 06:22:00,392 PM [test-akka.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [akka://test@10.30.170.100:25520] - Exiting completed [INFO] [11/22/2024 18:22:00.392] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.100:25520] - Successfully shut down 06:22:00,392 PM [test-akka.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [akka://test@10.30.170.100:25520] - Shutting down... 06:22:00,392 PM [test-akka.actor.default-dispatcher-15] [INFO] Cluster - Cluster Node [akka://test@10.30.170.100:25520] - Successfully shut down [INFO] [11/22/2024 18:22:00.394] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.100:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [11/22/2024 18:22:00.394] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.100:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 06:22:00,394 PM [test-akka.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 06:22:00,394 PM [test-akka.actor.default-dispatcher-15] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [11/22/2024 18:22:00.396] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.100:25520/system/remoting-terminator] Remoting shut down. 06:22:00,397 PM [test-akka.actor.default-dispatcher-11] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.