[DEBUG] [08/19/2024 01:10:49.511] [main] [EventStream(akka://test)] logger log1-TestEventListener started 01:10:49,511 AM [test-akka.actor.default-dispatcher-5] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [08/19/2024 01:10:49.512] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [08/19/2024 01:10:49.512] [main] [EventStream(akka://test)] Default Loggers started [INFO] [08/19/2024 01:10:49.528] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.178:25520] with UID [-7880836670346509683] 01:10:49,528 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.178:25520] with UID [-7880836670346509683] 01:10:49,528 AM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.171.178:25520] - Starting up, Akka version [2.6.21] ... [INFO] [08/19/2024 01:10:49.528] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.178:25520] - Starting up, Akka version [2.6.21] ... 01:10:49,531 AM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.171.178:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [08/19/2024 01:10:49.531] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.178:25520] - Registered cluster JMX MBean [akka:type=Cluster] 01:10:49,531 AM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.171.178:25520] - Started up successfully [INFO] [08/19/2024 01:10:49.531] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.178:25520] - Started up successfully 01:10:49,533 AM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.171.178:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 01:10:49,533 AM [test-akka.actor.default-dispatcher-8] [INFO] Cluster - Cluster Node [akka://test@10.30.171.178:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [08/19/2024 01:10:49.533] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.178:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [08/19/2024 01:10:49.533] [test-akka.actor.internal-dispatcher-2] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.178:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 01:10:49,544 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerLeaderStateChanges [WARN] [08/19/2024 01:10:49.547] [test-akka.actor.default-dispatcher-8] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower84]: org.opendaylight.controller.cluster.common.actor.Monitor@5e1e24d4 [INFO] [akkaDeadLetter][08/19/2024 01:10:49.547] [test-akka.actor.default-dispatcher-8] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower84] 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'. 01:10:49,549 AM [test-akka.actor.default-dispatcher-8] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower84] 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'. 01:10:49,549 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower84 with journal batch size 1000 [WARN] [08/19/2024 01:10:49.550] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader83]: org.opendaylight.controller.cluster.common.actor.Monitor@7aa9c302 [INFO] [akkaDeadLetter][08/19/2024 01:10:49.550] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader83] 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'. 01:10:49,551 AM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader83] 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'. 01:10:49,551 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader83 with journal batch size 1000 01:10:49,554 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower84: Set currentTerm=1, votedFor=leader83 01:10:49,554 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower84: Received ReplicatedLogEntry for recovery: index: 0, size: 141 01:10:49,554 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower84: Updated server config: isVoting: false, peers: [PeerInfo [id=leader83, address=akka://test/user/leader83, votingState=VOTING]] 01:10:49,554 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower84: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:10:49,555 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83: Set currentTerm=1, votedFor=leader83 01:10:49,555 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83: Received ReplicatedLogEntry for recovery: index: 0, size: 141 01:10:49,555 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83: Updated server config: isVoting: true, peers: [PeerInfo [id=follower84, address=akka://test/user/follower84, votingState=NON_VOTING]] 01:10:49,555 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader83: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:10:50,10 AM [test-akka.actor.default-dispatcher-8] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:10:50,10 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.178:25520, Removed) 01:10:50,10 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Follower): Received ElectionTimeout - switching to Candidate 01:10:50,10 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Candidate): Election: Candidate has following voting peers: [] 01:10:50,10 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83: Set currentTerm=2, votedFor=leader83 01:10:50,11 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Candidate): Starting new election term 2 01:10:50,11 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:10:50,12 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Candidate): Received ElectionTimeout 01:10:50,12 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Leader): Election: Leader has following peers: [follower84] 01:10:50,12 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Leader): Checking sendAppendEntries for follower follower84: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:10:50,13 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:10:50,13 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower84 (Follower): Term 2 in "AppendEntries [leaderId=leader83, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 01:10:50,13 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower84: Set currentTerm=2, votedFor=null 01:10:50,13 AM [test-akka.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower84: Last sync leader does not match current leader leader83, need to catch up to -1 01:10:50,13 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower84 updated: matchIndex: -1, nextIndex: 0 01:10:50,13 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader83 (Leader): Checking sendAppendEntries for follower follower84: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:10:50,14 AM [test-akka.actor.default-dispatcher-8] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower84] 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'. [WARN] [08/19/2024 01:10:50.014] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower84] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2b37c2e3 [INFO] [akkaDeadLetter][08/19/2024 01:10:50.014] [test-akka.actor.default-dispatcher-8] [akka://test/user/follower84] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower84] 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'. 01:10:50,64 AM [test-akka.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:10:50,370 AM [test-akka.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower84: Lagging 0 entries behind leader leader83 and reached -1 (of expected -1) 01:10:50,371 AM [test-akka.actor.default-dispatcher-13] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower84] 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] [08/19/2024 01:10:50.371] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower84] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@660ecd2f [INFO] [akkaDeadLetter][08/19/2024 01:10:50.371] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower84] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower84] 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'. 01:10:50,418 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/roleChangeNotifier86#-1365793829] 01:10:50,431 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower84-collector87#-599997631] 01:10:50,431 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower84] 01:10:50,432 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader83-collector88#-1421116998] 01:10:50,433 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader83] 01:10:50,434 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart starting [WARN] [08/19/2024 01:10:50.436] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower90]: org.opendaylight.controller.cluster.common.actor.Monitor@32eaf685 [INFO] [akkaDeadLetter][08/19/2024 01:10:50.437] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower90] to Actor[akka://test/user/termination-monitor] was not delivered. [5] 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'. 01:10:50,437 AM [test-akka.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower90] to Actor[akka://test/user/termination-monitor] was not delivered. [5] 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'. 01:10:50,438 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower90 with journal batch size 1000 01:10:50,440 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Set currentTerm=1, votedFor=leader89 01:10:50,440 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Received ReplicatedLogEntry for recovery: index: 0, size: 141 01:10:50,440 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Updated server config: isVoting: false, peers: [PeerInfo [id=leader89, address=akka://test/user/leader89, votingState=VOTING]] 01:10:50,440 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:10:50,441 AM [test-akka.actor.default-dispatcher-12] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader89] to Actor[akka://test/user/termination-monitor] was not delivered. [6] 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'. [WARN] [08/19/2024 01:10:50.441] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader89]: org.opendaylight.controller.cluster.common.actor.Monitor@1167925f [INFO] [akkaDeadLetter][08/19/2024 01:10:50.441] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader89] to Actor[akka://test/user/termination-monitor] was not delivered. [6] 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'. 01:10:50,442 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader89 with journal batch size 1000 01:10:50,443 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Set currentTerm=1, votedFor=leader89 01:10:50,443 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Received ReplicatedLogEntry for recovery: index: 0, size: 141 01:10:50,443 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Updated server config: isVoting: true, peers: [PeerInfo [id=follower90, address=akka://test/user/follower90, votingState=NON_VOTING]] 01:10:50,443 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:10:50,950 AM [test-akka.actor.default-dispatcher-5] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:10:50,950 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.178:25520, Removed) 01:10:50,950 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower): Received ElectionTimeout - switching to Candidate 01:10:50,950 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Election: Candidate has following voting peers: [] 01:10:50,950 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Set currentTerm=2, votedFor=leader89 01:10:50,951 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Starting new election term 2 01:10:50,951 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:10:50,952 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Received ElectionTimeout 01:10:50,952 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Election: Leader has following peers: [follower90] 01:10:50,952 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:10:50,952 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:10:50,952 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Term 2 in "AppendEntries [leaderId=leader89, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 01:10:50,952 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Set currentTerm=2, votedFor=null 01:10:50,952 AM [test-akka.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower90: Last sync leader does not match current leader leader89, need to catch up to -1 01:10:50,953 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower90 updated: matchIndex: -1, nextIndex: 0 01:10:50,953 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/19/2024 01:10:50.954] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower90] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2fa52d19 [INFO] [akkaDeadLetter][08/19/2024 01:10:50.954] [test-akka.actor.default-dispatcher-8] [akka://test/user/follower90] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower90] 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'. 01:10:50,954 AM [test-akka.actor.default-dispatcher-8] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower90] 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'. 01:10:50,998 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:50,998 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:50,998 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 01:10:50,998 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Setting last applied to 0 01:10:50,998 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Moving last applied index from -1 to 0 01:10:50,998 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Applying state for log index 0 data zero 01:10:50,998 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: applyState called: zero 01:10:50,998 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:10:50,998 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): sendAppendEntries: 0 is present for follower follower90 01:10:50,998 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Sending AppendEntries to follower follower90: AppendEntries [leaderId=leader89, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 01:10:50,999 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries: AppendEntries [leaderId=leader89, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 01:10:50,999 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Number of entries to be appended = 1 01:10:50,999 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:10:50,999 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Append entry to log zero 01:10:50,999 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:50,999 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:50,999 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Log size is now 1 01:10:50,999 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Commit index set to 0 01:10:50,999 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower90, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:50,999 AM [test-akka.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower90: Lagging 0 entries behind leader leader89 and reached 0 (of expected -1) 01:10:50,999 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:10:50,999 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Setting last applied to 0 01:10:50,999 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Moving last applied index from -1 to 0 01:10:50,999 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Applying state for log index 0 data zero 01:10:50,999 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting ApplyJournalEntries with index=0 01:10:50,999 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: applyState called: zero 01:10:51,0 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower90 updated: matchIndex: 0, nextIndex: 1 01:10:51,0 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Persisting ApplyJournalEntries with index=0 01:10:51,0 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [08/19/2024 01:10:51.000] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower90] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@14745feb [INFO] [akkaDeadLetter][08/19/2024 01:10:51.000] [test-akka.actor.default-dispatcher-8] [akka://test/user/follower90] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower90] 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'. 01:10:51,0 AM [test-akka.actor.default-dispatcher-8] [INFO] TestActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower90] 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'. 01:10:51,0 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:51,0 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:51,0 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:51,0 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 01:10:51,0 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Setting last applied to 1 01:10:51,1 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Moving last applied index from 0 to 1 01:10:51,1 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Applying state for log index 1 data one 01:10:51,1 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: applyState called: one 01:10:51,1 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:10:51,1 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): sendAppendEntries: 1 is present for follower follower90 01:10:51,1 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Sending AppendEntries to follower follower90: AppendEntries [leaderId=leader89, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 01:10:51,1 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting ApplyJournalEntries with index=1 01:10:51,1 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:51,1 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: fakeSnapshot purging log to 0 for term 2 01:10:51,1 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:10:51,1 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries: AppendEntries [leaderId=leader89, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 01:10:51,1 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:10:51,1 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Number of entries to be appended = 1 01:10:51,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:10:51,1 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 01:10:51,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Append entry to log one 01:10:51,2 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Setting last applied to 2 01:10:51,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:51,2 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Moving last applied index from 1 to 2 01:10:51,2 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Applying state for log index 2 data two 01:10:51,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:51,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Log size is now 2 01:10:51,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Commit index set to 1 01:10:51,2 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: applyState called: two 01:10:51,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower90, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:51,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower90: Lagging 0 entries behind leader leader89 and reached 1 (of expected -1) 01:10:51,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:10:51,2 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:10:51,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Setting last applied to 1 01:10:51,2 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): sendAppendEntries: 1 is present for follower follower90 01:10:51,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Moving last applied index from 0 to 1 01:10:51,2 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Applying state for log index 1 data one 01:10:51,2 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Sending AppendEntries to follower follower90: AppendEntries [leaderId=leader89, prevLogIndex=0, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one], SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 01:10:51,2 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting ApplyJournalEntries with index=2 01:10:51,2 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower90 updated: matchIndex: 1, nextIndex: 2 01:10:51,2 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: fakeSnapshot purging log to 1 for term 2 01:10:51,2 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:10:51,2 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): sendAppendEntries: 2 is present for follower follower90 01:10:51,2 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: applyState called: one 01:10:51,2 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Sending AppendEntries to follower follower90: AppendEntries [leaderId=leader89, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 01:10:51,3 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries: AppendEntries [leaderId=leader89, prevLogIndex=0, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one], SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Number of entries to be appended = 2 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Append entry to log two 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Log size is now 3 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Commit index set to 2 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower90, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower90: Lagging 0 entries behind leader leader89 and reached 2 (of expected -1) 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Setting last applied to 2 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Moving last applied index from 1 to 2 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Applying state for log index 2 data two 01:10:51,3 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower90 updated: matchIndex: 2, nextIndex: 3 01:10:51,3 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: applyState called: two 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: fakeSnapshot purging log to 0 for term 2 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Persisting ApplyJournalEntries with index=1 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries: AppendEntries [leaderId=leader89, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Number of entries to be appended = 1 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): matchEntry SimpleReplicatedLogEntry [index=2, term=2, payload=two] is present: existingEntryTerm: 2 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): After cleanup, lastIndex: 2, entries to be added from: 1 01:10:51,3 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Log size is now 2 01:10:51,4 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower90, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:51,4 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower90: Lagging 0 entries behind leader leader89 and reached 2 (of expected -1) 01:10:51,4 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: fakeSnapshot purging log to 1 for term 2 01:10:51,4 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Persisting ApplyJournalEntries with index=2 [WARN] [08/19/2024 01:10:51.061] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader89]: org.opendaylight.controller.cluster.common.actor.Monitor@52a81b70 [INFO] [akkaDeadLetter][08/19/2024 01:10:51.062] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader89] to Actor[akka://test/user/termination-monitor] was not delivered. [9] 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'. 01:10:51,62 AM [test-akka.actor.default-dispatcher-6] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader89] to Actor[akka://test/user/termination-monitor] was not delivered. [9] 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'. 01:10:51,62 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader89 with journal batch size 1000 01:10:51,64 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Set currentTerm=1, votedFor=leader89 01:10:51,64 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Received ReplicatedLogEntry for recovery: index: 0, size: 141 01:10:51,64 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Updated server config: isVoting: true, peers: [PeerInfo [id=follower90, address=akka://test/user/follower90, votingState=NON_VOTING]] 01:10:51,64 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Set currentTerm=2, votedFor=leader89 01:10:51,65 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:10:51,521 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.178:25520, Removed) 01:10:51,521 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower): Received ElectionTimeout - switching to Candidate 01:10:51,521 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Election: Candidate has following voting peers: [] 01:10:51,521 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Set currentTerm=3, votedFor=leader89 01:10:51,521 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Starting new election term 3 01:10:51,521 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:10:51,523 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate): Received ElectionTimeout 01:10:51,523 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Election: Leader has following peers: [follower90] 01:10:51,523 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:10:51,523 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:10:51,566 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:51,566 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:51,566 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 01:10:51,566 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Setting last applied to 0 01:10:51,566 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Moving last applied index from -1 to 0 01:10:51,566 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Applying state for log index 0 data zero-1 01:10:51,566 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: applyState called: zero-1 01:10:51,566 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:10:51,567 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting ApplyJournalEntries with index=0 01:10:51,567 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:51,567 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:10:51,567 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:10:51,567 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 01:10:51,567 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Setting last applied to 1 01:10:51,567 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Moving last applied index from 0 to 1 01:10:51,567 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Applying state for log index 1 data one-1 01:10:51,567 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: applyState called: one-1 01:10:51,567 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Checking sendAppendEntries for follower follower90: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:10:51,567 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting ApplyJournalEntries with index=1 01:10:51,567 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:10:51,640 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Term 3 in "AppendEntries [leaderId=leader89, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 01:10:51,640 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Set currentTerm=3, votedFor=null 01:10:51,641 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower90: Lagging -3 entries behind leader leader89 and reached 2 (of expected -1) 01:10:51,641 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleAppendEntriesReply: follower follower90 lastIndex 2 is ahead of our lastIndex 1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 01:10:51,641 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=1, lastAppliedTerm=3, lastIndex=1, lastTerm=3, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on follower90 01:10:51,641 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: lastSequenceNumber prior to capture: -1 01:10:51,643 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: CaptureSnapshotReply received by actor 01:10:51,643 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Persisting of snapshot done: Snapshot [lastIndex=1, lastTerm=3, lastAppliedIndex=1, lastAppliedTerm=3, unAppliedEntries size=0, state=MockSnapshotState [state=[zero-1, one-1]], electionTerm=3, electionVotedFor=leader89, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower90, isVoting=false], ServerInfo[peerId=leader89, isVoting=true]]]] 01:10:51,645 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:10:51,646 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): sendInstallSnapshot 01:10:51,647 AM [test-akka.actor.default-dispatcher-8] [DEBUG] LeaderInstallSnapshotState - leader89 (Leader): Snapshot 333 bytes, total chunks to send: 1 01:10:51,647 AM [test-akka.actor.default-dispatcher-8] [DEBUG] LeaderInstallSnapshotState - leader89 (Leader): Next chunk: total length=333, offset=0, size=333, hashCode=878051978 01:10:51,647 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): next snapshot chunk size for follower follower90: 333 01:10:51,647 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): InstallSnapshot sent to follower Vector(user, follower90), Chunk: 1/1 01:10:51,647 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: Snapshot success - sequence number: -1 01:10:51,647 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: SnapshotComplete received 01:10:51,647 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader89, lastIncludedIndex=1, lastIncludedTerm=3, datasize=333, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower90, isVoting=false], ServerInfo[peerId=leader89, isVoting=true]]]] 01:10:51,655 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower90: Lagging -1 entries behind leader leader89 and reached 2 (of expected -1) 01:10:51,655 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:10:51,655 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): Snapshot installed from leader: leader89 01:10:51,659 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Applying snapshot on follower: Snapshot [lastIndex=1, lastTerm=3, lastAppliedIndex=1, lastAppliedTerm=3, unAppliedEntries size=0, state=MockSnapshotState [state=[zero-1, one-1]], electionTerm=3, electionVotedFor=null, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower90, isVoting=false], ServerInfo[peerId=leader89, isVoting=true]]]] 01:10:51,659 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 01:10:51,660 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Snapshot success - sequence number: -1 01:10:51,660 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Moving last applied index from 2 to 1 01:10:51,660 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Set currentTerm=3, votedFor=null 01:10:51,660 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: Updated server config: isVoting: false, peers: [PeerInfo [id=leader89, address=akka://test/user/leader89, votingState=VOTING]] 01:10:51,660 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: applySnapshot called 01:10:51,660 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower90, chunkIndex=1, success=true] 01:10:51,662 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower90: SnapshotComplete received 01:10:51,662 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower90, chunkIndex=1, success=true] 01:10:51,662 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader89 (Leader): Snapshot successfully installed on follower follower90 (last chunk 1) - matchIndex set to 1, nextIndex set to 2 01:10:51,662 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader89: fakeSnapshot purging log to 0 for term 3 01:10:51,667 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithLessLeaderLogEntriesAfterNonPersistentLeaderRestart ending 01:10:51,667 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower90-collector92#-490655665] 01:10:51,678 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower90] 01:10:51,679 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader89-collector93#912144633] 01:10:51,679 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader89] 01:10:51,680 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader89-collector94#-427986702] 01:10:51,680 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader89] 01:10:51,682 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart starting 01:10:51,684 AM [test-akka.actor.default-dispatcher-5] [INFO] EmptyLocalActorRef - akkaDeadLetter Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower96] to Actor[akka://test/user/termination-monitor] was not delivered. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. 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'. [WARN] [08/19/2024 01:10:51.684] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower96]: org.opendaylight.controller.cluster.common.actor.Monitor@5c9702fc [INFO] [akkaDeadLetter][08/19/2024 01:10:51.684] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower96] to Actor[akka://test/user/termination-monitor] was not delivered. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. 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'. 01:10:51,685 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower96 with journal batch size 1000 [WARN] [08/19/2024 01:10:51.686] [test-akka.actor.default-dispatcher-5] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader95]: org.opendaylight.controller.cluster.common.actor.Monitor@6254ff0 01:10:51,686 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Set currentTerm=1, votedFor=leader95 01:10:51,686 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Received ReplicatedLogEntry for recovery: index: 0, size: 141 01:10:51,686 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Updated server config: isVoting: false, peers: [PeerInfo [id=leader95, address=akka://test/user/leader95, votingState=VOTING]] 01:10:51,686 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:10:51,687 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader95 with journal batch size 1000 01:10:51,688 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Set currentTerm=1, votedFor=leader95 01:10:51,689 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Received ReplicatedLogEntry for recovery: index: 0, size: 141 01:10:51,689 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Updated server config: isVoting: true, peers: [PeerInfo [id=follower96, address=akka://test/user/follower96, votingState=NON_VOTING]] 01:10:51,689 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:10:52,200 AM [test-akka.actor.default-dispatcher-8] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:10:52,201 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.178:25520, Removed) 01:10:52,201 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower): Received ElectionTimeout - switching to Candidate 01:10:52,201 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Election: Candidate has following voting peers: [] 01:10:52,201 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Set currentTerm=2, votedFor=leader95 01:10:52,201 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Starting new election term 2 01:10:52,201 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:10:52,202 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Received ElectionTimeout 01:10:52,203 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Election: Leader has following peers: [follower96] 01:10:52,203 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:10:52,203 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:10:52,203 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Term 2 in "AppendEntries [leaderId=leader95, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 01:10:52,203 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Set currentTerm=2, votedFor=null 01:10:52,203 AM [test-akka.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower96: Last sync leader does not match current leader leader95, need to catch up to -1 01:10:52,204 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower96 updated: matchIndex: -1, nextIndex: 0 01:10:52,204 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/19/2024 01:10:52.204] [test-akka.actor.default-dispatcher-13] [akka://test/user/follower96] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@641eadd 01:10:52,242 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:52,242 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:52,242 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 01:10:52,243 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Setting last applied to 0 01:10:52,243 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Moving last applied index from -1 to 0 01:10:52,243 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Applying state for log index 0 data zero 01:10:52,243 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: applyState called: zero 01:10:52,243 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:10:52,243 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 0 is present for follower follower96 01:10:52,243 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Sending AppendEntries to follower follower96: AppendEntries [leaderId=leader95, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 01:10:52,243 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persisting ApplyJournalEntries with index=0 01:10:52,243 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries: AppendEntries [leaderId=leader95, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 01:10:52,243 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:52,243 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Number of entries to be appended = 1 01:10:52,243 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:10:52,243 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Append entry to log zero 01:10:52,243 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:52,243 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:52,243 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:52,243 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Log size is now 1 01:10:52,243 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:52,243 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Commit index set to 0 01:10:52,243 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 01:10:52,243 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower96, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:52,243 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Setting last applied to 1 01:10:52,244 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Moving last applied index from 0 to 1 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower96: Lagging 0 entries behind leader leader95 and reached 0 (of expected -1) 01:10:52,244 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Applying state for log index 1 data one 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Setting last applied to 0 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Moving last applied index from -1 to 0 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Applying state for log index 0 data zero 01:10:52,244 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: applyState called: one 01:10:52,244 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: applyState called: zero 01:10:52,244 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 0 is present for follower follower96 01:10:52,244 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Sending AppendEntries to follower follower96: AppendEntries [leaderId=leader95, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Persisting ApplyJournalEntries with index=0 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries: AppendEntries [leaderId=leader95, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Number of entries to be appended = 2 01:10:52,244 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower96 updated: matchIndex: 0, nextIndex: 1 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Append entry to log one 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Log size is now 2 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Commit index set to 1 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower96, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:52,244 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: fakeSnapshot purging log to 0 for term 2 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower96: Lagging 0 entries behind leader leader95 and reached 1 (of expected -1) 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Setting last applied to 1 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Moving last applied index from 0 to 1 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Applying state for log index 1 data one 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: applyState called: one 01:10:52,244 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:10:52,244 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 1 is present for follower follower96 01:10:52,244 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Persisting ApplyJournalEntries with index=1 01:10:52,244 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Sending AppendEntries to follower follower96: AppendEntries [leaderId=leader95, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 01:10:52,245 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries: AppendEntries [leaderId=leader95, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 01:10:52,245 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persisting ApplyJournalEntries with index=1 01:10:52,245 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Number of entries to be appended = 1 01:10:52,245 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 01:10:52,245 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:10:52,245 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Log size is now 2 01:10:52,245 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower96, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:52,245 AM [test-akka.actor.default-dispatcher-13] [DEBUG] SyncStatusTracker - follower96: Lagging 0 entries behind leader leader95 and reached 1 (of expected -1) 01:10:52,245 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: fakeSnapshot purging log to 0 for term 2 [WARN] [08/19/2024 01:10:52.245] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower96] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@79fef61a 01:10:52,245 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:52,245 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower96 updated: matchIndex: 1, nextIndex: 2 01:10:52,245 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:10:52,245 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:10:52,245 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:10:52,245 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 01:10:52,245 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Setting last applied to 2 01:10:52,245 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Moving last applied index from 1 to 2 01:10:52,245 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Applying state for log index 2 data two 01:10:52,246 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: applyState called: two 01:10:52,246 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:10:52,246 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 2 is present for follower follower96 01:10:52,246 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Sending AppendEntries to follower follower96: AppendEntries [leaderId=leader95, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 01:10:52,246 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persisting ApplyJournalEntries with index=2 01:10:52,246 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:10:52,246 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: fakeSnapshot purging log to 1 for term 2 01:10:52,246 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries: AppendEntries [leaderId=leader95, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 01:10:52,246 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Number of entries to be appended = 1 01:10:52,246 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:10:52,246 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Append entry to log two 01:10:52,246 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:10:52,246 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:10:52,246 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Log size is now 2 01:10:52,246 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Commit index set to 2 01:10:52,246 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower96, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:52,246 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower96: Lagging 0 entries behind leader leader95 and reached 2 (of expected -1) 01:10:52,247 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:10:52,247 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Setting last applied to 2 01:10:52,247 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Moving last applied index from 1 to 2 01:10:52,247 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Applying state for log index 2 data two 01:10:52,247 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower96 updated: matchIndex: 2, nextIndex: 3 01:10:52,247 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:10:52,247 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: applyState called: two 01:10:52,247 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Persisting ApplyJournalEntries with index=2 [WARN] [08/19/2024 01:10:52.306] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader95]: org.opendaylight.controller.cluster.common.actor.Monitor@2fa0ea2d 01:10:52,306 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader95 with journal batch size 1000 01:10:52,309 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Set currentTerm=1, votedFor=leader95 01:10:52,309 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Received ReplicatedLogEntry for recovery: index: 0, size: 141 01:10:52,309 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Updated server config: isVoting: true, peers: [PeerInfo [id=follower96, address=akka://test/user/follower96, votingState=NON_VOTING]] 01:10:52,310 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Set currentTerm=2, votedFor=leader95 01:10:52,310 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:10:52,730 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.178:25520, Removed) 01:10:52,730 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower): Received ElectionTimeout - switching to Candidate 01:10:52,730 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Election: Candidate has following voting peers: [] 01:10:52,730 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Set currentTerm=3, votedFor=leader95 01:10:52,730 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Starting new election term 3 01:10:52,730 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:10:52,731 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate): Received ElectionTimeout 01:10:52,732 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Election: Leader has following peers: [follower96] 01:10:52,732 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:10:52,732 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:10:52,732 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Term 3 in "AppendEntries [leaderId=leader95, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 01:10:52,732 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Set currentTerm=3, votedFor=null 01:10:52,732 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower96: Lagging -3 entries behind leader leader95 and reached 2 (of expected -1) 01:10:52,733 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply: follower follower96 lastIndex 2 is ahead of our lastIndex -1 (snapshotIndex -1, snapshotTerm -1) - forcing install snaphot 01:10:52,733 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 01:10:52,733 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on follower96 01:10:52,733 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: lastSequenceNumber prior to capture: -1 01:10:52,734 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: CaptureSnapshotReply received by actor 01:10:52,734 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=3, electionVotedFor=leader95, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower96, isVoting=false], ServerInfo[peerId=leader95, isVoting=true]]]] 01:10:52,734 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:10:52,734 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendInstallSnapshot 01:10:52,734 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader95 (Leader): Snapshot 171 bytes, total chunks to send: 1 01:10:52,734 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader95 (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 01:10:52,734 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): next snapshot chunk size for follower follower96: 171 01:10:52,734 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader95, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower96, isVoting=false], ServerInfo[peerId=leader95, isVoting=true]]]] 01:10:52,734 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower96: Lagging -3 entries behind leader leader95 and reached 2 (of expected -1) 01:10:52,734 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:10:52,734 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Snapshot installed from leader: leader95 01:10:52,735 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Applying snapshot on follower: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=3, electionVotedFor=null, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower96, isVoting=false], ServerInfo[peerId=leader95, isVoting=true]]]] 01:10:52,735 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): InstallSnapshot sent to follower Vector(user, follower96), Chunk: 1/1 01:10:52,735 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 01:10:52,735 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Snapshot success - sequence number: -1 01:10:52,735 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Moving last applied index from 2 to -1 01:10:52,735 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Snapshot success - sequence number: -1 01:10:52,735 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Set currentTerm=3, votedFor=null 01:10:52,735 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: SnapshotComplete received 01:10:52,735 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Updated server config: isVoting: false, peers: [PeerInfo [id=leader95, address=akka://test/user/leader95, votingState=VOTING]] 01:10:52,735 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: applySnapshot called 01:10:52,735 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower96, chunkIndex=1, success=true] 01:10:52,735 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: SnapshotComplete received 01:10:52,735 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower96, chunkIndex=1, success=true] 01:10:52,735 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Snapshot successfully installed on follower follower96 (last chunk 1) - matchIndex set to -1, nextIndex set to 0 01:10:52,764 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:52,764 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:52,764 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 01:10:52,764 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Setting last applied to 0 01:10:52,764 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Moving last applied index from -1 to 0 01:10:52,764 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Applying state for log index 0 data zero-1 01:10:52,764 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: applyState called: zero-1 01:10:52,764 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:10:52,764 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): sendAppendEntries: 0 is present for follower follower96 01:10:52,764 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Sending AppendEntries to follower follower96: AppendEntries [leaderId=leader95, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 01:10:52,764 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: Persisting ApplyJournalEntries with index=0 01:10:52,764 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries: AppendEntries [leaderId=leader95, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Number of entries to be appended = 1 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Append entry to log zero-1 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Log size is now 1 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Commit index set to 0 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower96, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower96: Lagging 0 entries behind leader leader95 and reached 0 (of expected -1) 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96 (Follower): Setting last applied to 0 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Moving last applied index from -1 to 0 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Applying state for log index 0 data zero-1 01:10:52,765 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower96 updated: matchIndex: 0, nextIndex: 1 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: applyState called: zero-1 01:10:52,765 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader95 (Leader): Checking sendAppendEntries for follower follower96: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:10:52,765 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower96: Persisting ApplyJournalEntries with index=0 01:10:52,814 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithEmptyLeaderLogAfterNonPersistentLeaderRestart ending 01:10:52,815 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower96-collector98#481296551] 01:10:52,826 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower96] 01:10:52,827 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader95-collector99#-531756142] 01:10:52,828 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader95] 01:10:52,828 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader95-collector100#-1195916795] 01:10:52,828 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader95] 01:10:52,830 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart starting [WARN] [08/19/2024 01:10:52.833] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower102]: org.opendaylight.controller.cluster.common.actor.Monitor@1de46c48 01:10:52,833 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower102 with journal batch size 1000 [WARN] [08/19/2024 01:10:52.835] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader101]: org.opendaylight.controller.cluster.common.actor.Monitor@5f91f581 01:10:52,835 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Set currentTerm=1, votedFor=leader101 01:10:52,836 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:10:52,836 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader101 with journal batch size 1000 01:10:52,836 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Updated server config: isVoting: false, peers: [PeerInfo [id=leader101, address=akka://test/user/leader101, votingState=VOTING]] 01:10:52,836 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:10:52,838 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Set currentTerm=1, votedFor=leader101 01:10:52,838 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:10:52,838 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Updated server config: isVoting: true, peers: [PeerInfo [id=follower102, address=akka://test/user/follower102, votingState=NON_VOTING]] 01:10:52,838 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:10:53,280 AM [test-akka.actor.default-dispatcher-16] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:10:53,281 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.178:25520, Removed) 01:10:53,281 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower): Received ElectionTimeout - switching to Candidate 01:10:53,281 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Election: Candidate has following voting peers: [] 01:10:53,281 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Set currentTerm=2, votedFor=leader101 01:10:53,281 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Starting new election term 2 01:10:53,281 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:10:53,282 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Received ElectionTimeout 01:10:53,282 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Election: Leader has following peers: [follower102] 01:10:53,282 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:10:53,282 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:10:53,282 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Term 2 in "AppendEntries [leaderId=leader101, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 01:10:53,283 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Set currentTerm=2, votedFor=null 01:10:53,283 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower102: Last sync leader does not match current leader leader101, need to catch up to -1 01:10:53,283 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower102 updated: matchIndex: -1, nextIndex: 0 01:10:53,283 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/19/2024 01:10:53.284] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower102] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1e4d9832 01:10:53,293 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:53,293 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:53,293 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 01:10:53,293 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Setting last applied to 0 01:10:53,293 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Moving last applied index from -1 to 0 01:10:53,293 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Applying state for log index 0 data zero 01:10:53,293 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: applyState called: zero 01:10:53,293 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:10:53,293 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): sendAppendEntries: 0 is present for follower follower102 01:10:53,294 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Sending AppendEntries to follower follower102: AppendEntries [leaderId=leader101, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 01:10:53,294 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting ApplyJournalEntries with index=0 01:10:53,294 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:53,294 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleAppendEntries: AppendEntries [leaderId=leader101, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 01:10:53,294 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Number of entries to be appended = 1 01:10:53,294 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:10:53,294 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:53,294 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Append entry to log zero 01:10:53,294 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:53,294 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:53,294 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:53,294 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 01:10:53,294 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Setting last applied to 1 01:10:53,294 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Moving last applied index from 0 to 1 01:10:53,294 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Log size is now 1 01:10:53,294 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Applying state for log index 1 data one 01:10:53,294 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Commit index set to 0 01:10:53,294 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower102, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:53,294 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: applyState called: one 01:10:53,294 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower102: Lagging 0 entries behind leader leader101 and reached 0 (of expected -1) 01:10:53,294 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:10:53,294 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Setting last applied to 0 01:10:53,294 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Moving last applied index from -1 to 0 01:10:53,294 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:10:53,294 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Applying state for log index 0 data zero 01:10:53,294 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): sendAppendEntries: 0 is present for follower follower102 01:10:53,294 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Sending AppendEntries to follower follower102: AppendEntries [leaderId=leader101, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 01:10:53,294 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: applyState called: zero 01:10:53,295 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower102 updated: matchIndex: 0, nextIndex: 1 01:10:53,295 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: fakeSnapshot purging log to 0 for term 2 01:10:53,295 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleAppendEntries: AppendEntries [leaderId=leader101, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 01:10:53,295 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): sendAppendEntries: 1 is present for follower follower102 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Number of entries to be appended = 2 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 01:10:53,295 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Sending AppendEntries to follower follower102: AppendEntries [leaderId=leader101, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Append entry to log one 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Log size is now 2 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Commit index set to 1 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower102, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower102: Lagging 0 entries behind leader leader101 and reached 1 (of expected -1) 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Setting last applied to 1 01:10:53,295 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting ApplyJournalEntries with index=1 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Moving last applied index from 0 to 1 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Applying state for log index 1 data one 01:10:53,295 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: applyState called: one 01:10:53,295 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower102 updated: matchIndex: 1, nextIndex: 2 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Persisting ApplyJournalEntries with index=0 01:10:53,295 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleAppendEntries: AppendEntries [leaderId=leader101, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Number of entries to be appended = 1 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Log size is now 2 01:10:53,295 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower102, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:53,296 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower102: Lagging 0 entries behind leader leader101 and reached 1 (of expected -1) 01:10:53,296 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: fakeSnapshot purging log to 0 for term 2 01:10:53,296 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Persisting ApplyJournalEntries with index=1 [WARN] [08/19/2024 01:10:53.296] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower102] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2ff2ecf8 [WARN] [08/19/2024 01:10:53.357] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader101]: org.opendaylight.controller.cluster.common.actor.Monitor@2bb3d28 01:10:53,358 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader101 with journal batch size 1000 01:10:53,360 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Set currentTerm=1, votedFor=leader101 01:10:53,360 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:10:53,361 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Updated server config: isVoting: true, peers: [PeerInfo [id=follower102, address=akka://test/user/follower102, votingState=NON_VOTING]] 01:10:53,361 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Set currentTerm=2, votedFor=leader101 01:10:53,361 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:10:53,870 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.178:25520, Removed) 01:10:53,870 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower): Received ElectionTimeout - switching to Candidate 01:10:53,870 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Election: Candidate has following voting peers: [] 01:10:53,870 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Set currentTerm=3, votedFor=leader101 01:10:53,870 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Starting new election term 3 01:10:53,870 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:10:53,872 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate): Received ElectionTimeout 01:10:53,872 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Election: Leader has following peers: [follower102] 01:10:53,872 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:10:53,872 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:10:53,915 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:53,915 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:53,915 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 01:10:53,916 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Setting last applied to 0 01:10:53,916 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Moving last applied index from -1 to 0 01:10:53,916 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Applying state for log index 0 data zero-1 01:10:53,916 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: applyState called: zero-1 01:10:53,916 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:10:53,916 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting ApplyJournalEntries with index=0 01:10:53,916 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:53,916 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:10:53,916 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:10:53,916 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 01:10:53,916 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Setting last applied to 1 01:10:53,916 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Moving last applied index from 0 to 1 01:10:53,916 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Applying state for log index 1 data one-1 01:10:53,916 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: applyState called: one-1 01:10:53,917 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:10:53,917 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting ApplyJournalEntries with index=1 01:10:53,917 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:10:53,917 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:10:53,917 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:10:53,917 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 01:10:53,917 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Setting last applied to 2 01:10:53,917 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Moving last applied index from 1 to 2 01:10:53,917 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Applying state for log index 2 data two-1 01:10:53,917 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: applyState called: two-1 01:10:53,917 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:10:53,918 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting ApplyJournalEntries with index=2 01:10:53,918 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:10:53,990 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Term 3 in "AppendEntries [leaderId=leader101, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 01:10:53,990 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Set currentTerm=3, votedFor=null 01:10:53,990 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower102: Lagging -2 entries behind leader leader101 and reached 1 (of expected -1) 01:10:53,991 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleAppendEntriesReply: follower follower102 last log term 2 for index 1 conflicts with the leader's 3 - set the follower's next index to 0 01:10:53,991 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Checking sendAppendEntries for follower follower102: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:10:53,991 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): sendAppendEntries: 0 is present for follower follower102 01:10:53,991 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Sending AppendEntries to follower follower102: AppendEntries [leaderId=leader101, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 01:10:53,991 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleAppendEntries: AppendEntries [leaderId=leader101, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 01:10:53,992 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Number of entries to be appended = 3 01:10:53,992 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: 2 01:10:53,992 AM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:10:53,992 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Removing entries from log starting at 0, commitIndex: 1, lastApplied: 1 01:10:53,992 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Could not remove entries - sending reply to force snapshot 01:10:53,992 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower102: Lagging 1 entries behind leader leader101 and reached 1 (of expected -1) 01:10:53,992 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower102, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 01:10:53,992 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=3, lastIndex=2, lastTerm=3, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on follower102 01:10:53,992 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: lastSequenceNumber prior to capture: -1 01:10:53,992 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: CaptureSnapshotReply received by actor 01:10:53,992 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Persisting of snapshot done: Snapshot [lastIndex=2, lastTerm=3, lastAppliedIndex=2, lastAppliedTerm=3, unAppliedEntries size=0, state=MockSnapshotState [state=[zero-1, one-1, two-1]], electionTerm=3, electionVotedFor=leader101, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower102, isVoting=false], ServerInfo[peerId=leader101, isVoting=true]]]] 01:10:53,993 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:10:53,993 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): sendInstallSnapshot 01:10:53,993 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader101 (Leader): Snapshot 351 bytes, total chunks to send: 1 01:10:53,993 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader101 (Leader): Next chunk: total length=351, offset=0, size=351, hashCode=236499276 01:10:53,993 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): next snapshot chunk size for follower follower102: 351 01:10:53,993 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): InstallSnapshot sent to follower Vector(user, follower102), Chunk: 1/1 01:10:53,993 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: Snapshot success - sequence number: -1 01:10:53,993 AM [test-akka.actor.default-dispatcher-6] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: SnapshotComplete received 01:10:53,993 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader101, lastIncludedIndex=2, lastIncludedTerm=3, datasize=351, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower102, isVoting=false], ServerInfo[peerId=leader101, isVoting=true]]]] 01:10:53,993 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower102: Lagging 1 entries behind leader leader101 and reached 1 (of expected -1) 01:10:53,993 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:10:53,993 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): Snapshot installed from leader: leader101 01:10:53,994 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Applying snapshot on follower: Snapshot [lastIndex=2, lastTerm=3, lastAppliedIndex=2, lastAppliedTerm=3, unAppliedEntries size=0, state=MockSnapshotState [state=[zero-1, one-1, two-1]], electionTerm=3, electionVotedFor=null, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower102, isVoting=false], ServerInfo[peerId=leader101, isVoting=true]]]] 01:10:53,994 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 01:10:53,994 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Snapshot success - sequence number: -1 01:10:53,994 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Moving last applied index from 1 to 2 01:10:53,994 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Set currentTerm=3, votedFor=null 01:10:53,994 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: Updated server config: isVoting: false, peers: [PeerInfo [id=leader101, address=akka://test/user/leader101, votingState=VOTING]] 01:10:53,994 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: applySnapshot called 01:10:53,994 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower102, chunkIndex=1, success=true] 01:10:53,994 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower102: SnapshotComplete received 01:10:53,994 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower102, chunkIndex=1, success=true] 01:10:53,994 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader101 (Leader): Snapshot successfully installed on follower follower102 (last chunk 1) - matchIndex set to 2, nextIndex set to 3 01:10:53,994 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader101: fakeSnapshot purging log to 1 for term 3 01:10:54,16 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithOneMoreLeaderLogEntryAfterNonPersistentLeaderRestart ending 01:10:54,16 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower102-collector104#-1290596828] 01:10:54,28 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower102] 01:10:54,28 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader101-collector105#-932417627] 01:10:54,28 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader101] 01:10:54,29 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader101-collector106#-1779474565] 01:10:54,29 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader101] 01:10:54,30 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart starting 01:10:54,33 AM [test-akka.actor.default-dispatcher-6] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower108 with journal batch size 1000 [WARN] [08/19/2024 01:10:54.033] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower108]: org.opendaylight.controller.cluster.common.actor.Monitor@47383044 [WARN] [08/19/2024 01:10:54.035] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader107]: org.opendaylight.controller.cluster.common.actor.Monitor@610f41b9 01:10:54,35 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Set currentTerm=1, votedFor=leader107 01:10:54,35 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader107 with journal batch size 1000 01:10:54,36 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:10:54,36 AM [test-akka.actor.default-dispatcher-12] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Updated server config: isVoting: false, peers: [PeerInfo [id=leader107, address=akka://test/user/leader107, votingState=VOTING]] 01:10:54,36 AM [test-akka.actor.default-dispatcher-12] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:10:54,37 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Set currentTerm=1, votedFor=leader107 01:10:54,38 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Received ReplicatedLogEntry for recovery: index: 0, size: 143 01:10:54,38 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Updated server config: isVoting: true, peers: [PeerInfo [id=follower108, address=akka://test/user/follower108, votingState=NON_VOTING]] 01:10:54,38 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:10:54,510 AM [test-akka.actor.default-dispatcher-8] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:10:54,510 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.178:25520, Removed) 01:10:54,510 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower): Received ElectionTimeout - switching to Candidate 01:10:54,510 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Election: Candidate has following voting peers: [] 01:10:54,510 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Set currentTerm=2, votedFor=leader107 01:10:54,510 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Starting new election term 2 01:10:54,510 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 01:10:54,512 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Received ElectionTimeout 01:10:54,512 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Election: Leader has following peers: [follower108] 01:10:54,512 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:10:54,512 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 01:10:54,512 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Term 2 in "AppendEntries [leaderId=leader107, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 1 - updating term 01:10:54,512 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Set currentTerm=2, votedFor=null 01:10:54,512 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower108 updated: matchIndex: -1, nextIndex: 0 01:10:54,513 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:10:54,513 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower108: Last sync leader does not match current leader leader107, need to catch up to -1 [WARN] [08/19/2024 01:10:54.513] [test-akka.actor.default-dispatcher-8] [akka://test/user/follower108] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3dd96be9 01:10:54,543 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:54,543 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:54,543 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=zero}, logIndex: 0, isSendImmediate: true 01:10:54,543 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 0 01:10:54,543 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from -1 to 0 01:10:54,543 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 0 data zero 01:10:54,543 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: zero 01:10:54,543 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:10:54,543 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 0 is present for follower follower108 01:10:54,543 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower108: AppendEntries [leaderId=leader107, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 01:10:54,543 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=0 01:10:54,543 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero]]] 01:10:54,543 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:54,543 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 1 01:10:54,543 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:10:54,543 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Append entry to log zero 01:10:54,543 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:54,543 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: persist complete SimpleReplicatedLogEntry [index=0, term=2, payload=zero] 01:10:54,543 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Log size is now 1 01:10:54,543 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:54,543 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Commit index set to 0 01:10:54,543 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:54,543 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower108, logLastIndex=0, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:54,543 AM [test-akka.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 0 (of expected -1) 01:10:54,543 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=one}, logIndex: 1, isSendImmediate: true 01:10:54,543 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 01:10:54,543 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Setting last applied to 0 01:10:54,543 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 1 01:10:54,543 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Moving last applied index from -1 to 0 01:10:54,543 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 0 to 1 01:10:54,543 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Applying state for log index 0 data zero 01:10:54,543 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 1 data one 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: applyState called: zero 01:10:54,544 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: one 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Persisting ApplyJournalEntries with index=0 01:10:54,544 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:10:54,544 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 0 is present for follower follower108 [WARN] [08/19/2024 01:10:54.544] [test-akka.actor.default-dispatcher-8] [akka://test/user/follower108] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@617e9b68 01:10:54,544 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower108: AppendEntries [leaderId=leader107, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=2, payload=zero], SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 01:10:54,544 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower108 updated: matchIndex: 0, nextIndex: 1 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 2 01:10:54,544 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: fakeSnapshot purging log to 0 for term 2 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=2, payload=zero] is present: existingEntryTerm: 2 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Append entry to log one 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:54,544 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Log size is now 2 01:10:54,544 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 1 is present for follower follower108 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Commit index set to 1 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower108, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 1 (of expected -1) 01:10:54,544 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower108: AppendEntries [leaderId=leader107, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Setting last applied to 1 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Moving last applied index from 0 to 1 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Applying state for log index 1 data one 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: applyState called: one 01:10:54,544 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=1 01:10:54,544 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=one] 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, prevLogIndex=0, prevLogTerm=2, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=one]]] 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 1 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=2, payload=one] is present: existingEntryTerm: 2 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): After cleanup, lastIndex: 1, entries to be added from: 1 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Log size is now 2 01:10:54,544 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower108 updated: matchIndex: 1, nextIndex: 2 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower108, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 1 (of expected -1) 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: fakeSnapshot purging log to 0 for term 2 01:10:54,544 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 01:10:54,544 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Persisting ApplyJournalEntries with index=1 01:10:54,545 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:10:54,545 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:10:54,545 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=two}, logIndex: 2, isSendImmediate: true 01:10:54,545 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 2 01:10:54,545 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 1 to 2 01:10:54,545 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 2 data two 01:10:54,545 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: two 01:10:54,545 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 01:10:54,545 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 2 is present for follower follower108 01:10:54,545 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower108: AppendEntries [leaderId=leader107, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 01:10:54,545 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=2 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: fakeSnapshot purging log to 1 for term 2 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, prevLogIndex=1, prevLogTerm=2, leaderCommit=2, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=2, payload=two]]] 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 1 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Append entry to log two 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: persist complete SimpleReplicatedLogEntry [index=2, term=2, payload=two] 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Log size is now 2 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Commit index set to 2 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=follower108, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 2 (of expected -1) 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Setting last applied to 2 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Moving last applied index from 1 to 2 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Applying state for log index 2 data two 01:10:54,546 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower108 updated: matchIndex: 2, nextIndex: 3 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: applyState called: two 01:10:54,546 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Persisting ApplyJournalEntries with index=2 01:10:54,546 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 01:10:54,750 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower108: Lagging 0 entries behind leader leader107 and reached 2 (of expected -1) 01:10:54,750 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: fakeSnapshot purging log to 1 for term 2 [WARN] [08/19/2024 01:10:54.809] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower109]: org.opendaylight.controller.cluster.common.actor.Monitor@ac0298d 01:10:54,809 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for follower109 with journal batch size 1000 01:10:54,812 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Received ReplicatedLogEntry for recovery: index: 0, size: 174 01:10:54,812 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Updated server config: isVoting: true, peers: [PeerInfo [id=leader107, address=akka://test/user/leader107, votingState=VOTING], PeerInfo [id=follower108, address=akka://test/user/follower108, votingState=NON_VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 01:10:54,812 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [08/19/2024 01:10:54.814] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader107]: org.opendaylight.controller.cluster.common.actor.Monitor@16ee5625 01:10:54,814 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - Starting recovery for leader107 with journal batch size 1000 01:10:54,816 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Set currentTerm=2, votedFor=leader107 01:10:54,816 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Received ReplicatedLogEntry for recovery: index: 0, size: 174 01:10:54,816 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Updated server config: isVoting: true, peers: [PeerInfo [id=follower109, address=akka://test/user/follower109, votingState=VOTING], PeerInfo [id=follower108, address=akka://test/user/follower108, votingState=NON_VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 01:10:54,816 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 01:10:55,240 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower): Checking if this node is isolated in the cluster unreachable set [],all members [] self member: Member(akka://test@10.30.171.178:25520, Removed) 01:10:55,241 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower): Received ElectionTimeout - switching to Candidate 01:10:55,241 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Election: Candidate has following voting peers: [follower109] 01:10:55,241 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Set currentTerm=3, votedFor=leader107 01:10:55,241 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Starting new election term 3 01:10:55,241 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): Sending RequestVote [term=3, candidateId=leader107, lastLogIndex=-1, lastLogTerm=-1] to peer follower109 01:10:55,241 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 01:10:55,241 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 01:10:55,241 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Cluster state: [] 01:10:55,241 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=leader107, lastLogIndex=-1, lastLogTerm=-1] with higher term appears reachable, updating term. 01:10:55,241 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Term 3 in "RequestVote [term=3, candidateId=leader107, lastLogIndex=-1, lastLogTerm=-1]" message is greater than follower's term 0 - updating term 01:10:55,241 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Set currentTerm=3, votedFor=null 01:10:55,242 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): In requestVote: RequestVote [term=3, candidateId=leader107, lastLogIndex=-1, lastLogTerm=-1] - currentTerm: 3, votedFor: null, lastIndex: -1, lastTerm: -1 01:10:55,242 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Set currentTerm=3, votedFor=leader107 01:10:55,242 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 01:10:55,243 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 01:10:55,243 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 01:10:55,244 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Election: Leader has following peers: [follower109, follower108, downPeer] 01:10:55,244 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:10:55,244 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 01:10:55,244 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 01:10:55,244 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower109: Last sync leader does not match current leader leader107, need to catch up to -1 01:10:55,244 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: -1, nextIndex: 0 01:10:55,244 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [08/19/2024 01:10:55.244] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower109] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@116e39ac 01:10:55,270 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:55,270 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:55,270 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=zero-1}, logIndex: 0, isSendImmediate: true 01:10:55,270 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:10:55,270 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 0 is present for follower follower109 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower109: AppendEntries [leaderId=leader107, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:10:55,271 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1]]] 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=one-1}, logIndex: 1, isSendImmediate: true 01:10:55,271 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 1 01:10:55,271 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 0 is present for follower follower109 01:10:55,271 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log zero-1 01:10:55,271 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: 1, leaderSnapShotIndex: -1 01:10:55,271 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] 01:10:55,271 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 1 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:10:55,271 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower109, logLastIndex=0, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:10:55,271 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached -1 (of expected -1) 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=two-1}, logIndex: 2, isSendImmediate: true 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 0, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 0 is present for follower follower109 01:10:55,271 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 0, nextIndex: 1 [WARN] [08/19/2024 01:10:55.271] [test-akka.actor.default-dispatcher-5] [akka://test/user/follower109] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3803474d 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 0 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from -1 to 0 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 0 data zero-1 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: zero-1 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 1 is present for follower follower109 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower109: AppendEntries [leaderId=leader107, prevLogIndex=0, prevLogTerm=3, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=0 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 01:10:55,272 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, prevLogIndex=0, prevLogTerm=3, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1]]] 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 01:10:55,272 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 2 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=three-1}, logIndex: 3, isSendImmediate: true 01:10:55,272 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 01:10:55,272 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log one-1 01:10:55,272 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 1, leaderLastIndex: 3, leaderSnapShotIndex: -1 01:10:55,272 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 1 is present for follower follower109 01:10:55,272 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log two-1 01:10:55,272 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: 3, leaderSnapShotIndex: -1 01:10:55,272 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:10:55,273 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=two-1] 01:10:55,273 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 3 01:10:55,273 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 0 01:10:55,273 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower109, logLastIndex=2, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:55,273 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 01:10:55,273 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 0 (of expected -1) 01:10:55,273 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 2 01:10:55,273 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 0 01:10:55,273 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from -1 to 0 01:10:55,273 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 0 data zero-1 01:10:55,273 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 2, nextIndex: 3 01:10:55,273 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 0 01:10:55,273 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 1 01:10:55,273 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 0 to 1 01:10:55,273 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 1 data one-1 01:10:55,273 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: one-1 01:10:55,273 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: zero-1 01:10:55,273 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 2 01:10:55,273 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 1 to 2 01:10:55,273 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 2 data two-1 01:10:55,273 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=0 01:10:55,273 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: two-1 01:10:55,273 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: -1 01:10:55,273 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 3 is present for follower follower109 01:10:55,273 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower109: AppendEntries [leaderId=leader107, prevLogIndex=2, prevLogTerm=3, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=3, payload=three-1]]] 01:10:55,273 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=2 01:10:55,273 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persist data SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 01:10:55,273 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, prevLogIndex=2, prevLogTerm=3, leaderCommit=2, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=3, payload=three-1]]] 01:10:55,273 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 01:10:55,273 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 1 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 01:10:55,274 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Replicate message: identifier: MockIdentifier{value=four-1}, logIndex: 4, isSendImmediate: true 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log three-1 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=3, term=3, payload=three-1] 01:10:55,274 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 3, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:10:55,274 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 3 is present for follower follower109 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 4 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 2 01:10:55,274 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: false, followerNextIndex: -1, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower109, logLastIndex=3, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 2 (of expected -1) 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 0, lastIndex(): 3 01:10:55,274 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 3, nextIndex: 4 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 1 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from 0 to 1 01:10:55,274 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 1 data one-1 01:10:55,274 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 3 01:10:55,274 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 2 to 3 01:10:55,274 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 3 data three-1 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: one-1 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 2 01:10:55,274 AM [test-akka.actor.default-dispatcher-13] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: three-1 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from 1 to 2 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 2 data two-1 01:10:55,274 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 4, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:10:55,274 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 4 is present for follower follower109 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: two-1 01:10:55,274 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower109: AppendEntries [leaderId=leader107, prevLogIndex=3, prevLogTerm=3, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=2 01:10:55,274 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, prevLogIndex=3, prevLogTerm=3, leaderCommit=3, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Number of entries to be appended = 1 01:10:55,274 AM [test-akka.actor.default-dispatcher-13] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=3 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): After cleanup, lastIndex: 3, entries to be added from: 0 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Append entry to log four-1 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Append log entry and persist SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: persist complete SimpleReplicatedLogEntry [index=4, term=3, payload=four-1] 01:10:55,274 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Log size is now 5 01:10:55,275 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 3 01:10:55,275 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=follower109, logLastIndex=4, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:55,275 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 3 (of expected -1) 01:10:55,275 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 4 01:10:55,275 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 3 01:10:55,275 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from 2 to 3 01:10:55,275 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 3 data three-1 01:10:55,275 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower109 updated: matchIndex: 4, nextIndex: 5 01:10:55,275 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Applying to log - commitIndex: 4, lastAppliedIndex: 3 01:10:55,275 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Setting last applied to 4 01:10:55,275 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: three-1 01:10:55,275 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Moving last applied index from 3 to 4 01:10:55,275 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Applying state for log index 4 data four-1 01:10:55,275 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=3 01:10:55,275 AM [test-akka.actor.default-dispatcher-16] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: applyState called: four-1 01:10:55,275 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower109: active: true, followerNextIndex: 5, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:10:55,275 AM [test-akka.actor.default-dispatcher-16] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting ApplyJournalEntries with index=4 01:10:55,275 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Commit index set to 4 01:10:55,275 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower109: Lagging 0 entries behind leader leader107 and reached 4 (of expected -1) 01:10:55,275 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 4, context.getLastApplied(): 3, lastIndex(): 4 01:10:55,275 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109 (Follower): Setting last applied to 4 01:10:55,275 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Moving last applied index from 3 to 4 01:10:55,275 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Applying state for log index 4 data four-1 01:10:55,275 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: applyState called: four-1 01:10:55,275 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower109: Persisting ApplyJournalEntries with index=4 01:10:55,360 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Term 3 in "AppendEntries [leaderId=leader107, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 2 - updating term 01:10:55,360 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Set currentTerm=3, votedFor=null 01:10:55,361 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower108: Lagging -3 entries behind leader leader107 and reached 2 (of expected -1) 01:10:55,361 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply: follower follower108 last log term 2 for index 2 conflicts with the leader's 3 - set the follower's next index to 1 01:10:55,361 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 1, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:10:55,361 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 1 is present for follower follower108 01:10:55,361 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower108: AppendEntries [leaderId=leader107, prevLogIndex=0, prevLogTerm=3, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 01:10:55,361 AM [test-akka.actor.default-dispatcher-17] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, prevLogIndex=0, prevLogTerm=3, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 01:10:55,362 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): The prevLogIndex 0 was found in the log but the term 2 is not equal to the append entries prevLogTerm 3 - lastIndex: 2, snapshotIndex: 1, snapshotTerm: 2 01:10:55,362 AM [test-akka.actor.default-dispatcher-17] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=3, success=false, followerId=follower108, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 01:10:55,362 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower108: Lagging 2 entries behind leader leader107 and reached 2 (of expected -1) 01:10:55,362 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower108, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 01:10:55,362 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): follower follower108 last log term 2 conflicts with the leader's 3 - dec next index to 0 01:10:55,362 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Checking sendAppendEntries for follower follower108: active: true, followerNextIndex: 0, leaderLastIndex: 4, leaderSnapShotIndex: -1 01:10:55,362 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendAppendEntries: 0 is present for follower follower108 01:10:55,362 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Sending AppendEntries to follower follower108: AppendEntries [leaderId=leader107, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 01:10:55,362 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleAppendEntries: AppendEntries [leaderId=leader107, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=4, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1], SimpleReplicatedLogEntry [index=1, term=3, payload=one-1], SimpleReplicatedLogEntry [index=2, term=3, payload=two-1], SimpleReplicatedLogEntry [index=3, term=3, payload=three-1], SimpleReplicatedLogEntry [index=4, term=3, payload=four-1]]] 01:10:55,363 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Number of entries to be appended = 5 01:10:55,363 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=3, payload=zero-1] is present: existingEntryTerm: -1 01:10:55,363 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): matchEntry SimpleReplicatedLogEntry [index=1, term=3, payload=one-1] is present: existingEntryTerm: 2 01:10:55,363 AM [test-akka.actor.default-dispatcher-8] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 01:10:55,363 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Removing entries from log starting at 1, commitIndex: 2, lastApplied: 2 01:10:55,363 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Could not remove entries - sending reply to force snapshot 01:10:55,363 AM [test-akka.actor.default-dispatcher-8] [DEBUG] SyncStatusTracker - follower108: Lagging 2 entries behind leader leader107 and reached 2 (of expected -1) 01:10:55,363 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleAppendEntriesReply - received unsuccessful reply: AppendEntriesReply [term=3, success=false, followerId=follower108, logLastIndex=2, logLastTerm=2, forceInstallSnapshot=true, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5], leader snapshotIndex: -1, snapshotTerm: -1, replicatedToAllIndex: -1 01:10:55,363 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=4, lastAppliedTerm=3, lastIndex=4, lastTerm=3, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on follower108 01:10:55,363 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: lastSequenceNumber prior to capture: -1 01:10:55,363 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: CaptureSnapshotReply received by actor 01:10:55,363 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Persisting of snapshot done: Snapshot [lastIndex=4, lastTerm=3, lastAppliedIndex=4, lastAppliedTerm=3, unAppliedEntries size=0, state=MockSnapshotState [state=[zero-1, one-1, two-1, three-1, four-1]], electionTerm=3, electionVotedFor=leader107, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower109, isVoting=true], ServerInfo[peerId=follower108, isVoting=false], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=leader107, isVoting=true]]]] 01:10:55,364 AM [test-akka.actor.default-dispatcher-8] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 01:10:55,364 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): sendInstallSnapshot 01:10:55,364 AM [test-akka.actor.default-dispatcher-8] [DEBUG] LeaderInstallSnapshotState - leader107 (Leader): Snapshot 390 bytes, total chunks to send: 1 01:10:55,364 AM [test-akka.actor.default-dispatcher-8] [DEBUG] LeaderInstallSnapshotState - leader107 (Leader): Next chunk: total length=390, offset=0, size=390, hashCode=-929342248 01:10:55,364 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): next snapshot chunk size for follower follower108: 390 01:10:55,364 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): InstallSnapshot sent to follower Vector(user, follower108), Chunk: 1/1 01:10:55,364 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: Snapshot success - sequence number: -1 01:10:55,364 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleInstallSnapshot: InstallSnapshot [term=3, leaderId=leader107, lastIncludedIndex=4, lastIncludedTerm=3, datasize=390, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower109, isVoting=true], ServerInfo[peerId=follower108, isVoting=false], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=leader107, isVoting=true]]]] 01:10:55,364 AM [test-akka.actor.default-dispatcher-8] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107: SnapshotComplete received 01:10:55,364 AM [test-akka.actor.default-dispatcher-5] [DEBUG] SyncStatusTracker - follower108: Lagging 2 entries behind leader leader107 and reached 2 (of expected -1) 01:10:55,364 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 01:10:55,364 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): Snapshot installed from leader: leader107 01:10:55,365 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Applying snapshot on follower: Snapshot [lastIndex=4, lastTerm=3, lastAppliedIndex=4, lastAppliedTerm=3, unAppliedEntries size=0, state=MockSnapshotState [state=[zero-1, one-1, two-1, three-1, four-1]], electionTerm=3, electionVotedFor=null, ServerConfigPayload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower109, isVoting=true], ServerInfo[peerId=follower108, isVoting=false], ServerInfo[peerId=downPeer, isVoting=false], ServerInfo[peerId=leader107, isVoting=true]]]] 01:10:55,365 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 01:10:55,365 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Snapshot success - sequence number: -1 01:10:55,365 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Moving last applied index from 2 to 4 01:10:55,365 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Set currentTerm=3, votedFor=null 01:10:55,365 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: Updated server config: isVoting: false, peers: [PeerInfo [id=follower109, address=null, votingState=VOTING], PeerInfo [id=leader107, address=akka://test/user/leader107, votingState=VOTING], PeerInfo [id=downPeer, address=null, votingState=NON_VOTING]] 01:10:55,365 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: applySnapshot called 01:10:55,365 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108 (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=3, followerId=follower108, chunkIndex=1, success=true] 01:10:55,365 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - follower108: SnapshotComplete received 01:10:55,366 AM [test-akka.actor.default-dispatcher-5] [DEBUG] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=3, followerId=follower108, chunkIndex=1, success=true] 01:10:55,366 AM [test-akka.actor.default-dispatcher-5] [INFO] AbstractRaftActorIntegrationTest$TestRaftActor - leader107 (Leader): Snapshot successfully installed on follower follower108 (last chunk 1) - matchIndex set to 4, nextIndex set to 5 01:10:55,371 AM [main] [INFO] NonVotingFollowerIntegrationTest - testFollowerResyncWithMoreLeaderLogEntriesAndDownPeerAfterNonPersistentLeaderRestart ending 01:10:55,371 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower108-collector110#-1668636287] 01:10:55,383 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower108] 01:10:55,383 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader107-collector111#-1641888635] 01:10:55,383 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader107] 01:10:55,384 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/follower109-collector112#1444727001] 01:10:55,384 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower109] 01:10:55,384 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader107-collector113#-675529452] 01:10:55,385 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader107] [INFO] [08/19/2024 01:10:55.386] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 01:10:55,386 AM [test-akka.actor.default-dispatcher-8] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [08/19/2024 01:10:55.387] [test-akka.actor.default-dispatcher-5] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.178:25520) [INFO] [08/19/2024 01:10:55.388] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.178:25520] - Exiting completed [INFO] [08/19/2024 01:10:55.388] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.178:25520] - Shutting down... 01:10:55,388 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.178:25520] - Exiting completed 01:10:55,388 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.178:25520] - Shutting down... 01:10:55,388 AM [test-akka.actor.default-dispatcher-5] [INFO] Cluster - Cluster Node [akka://test@10.30.171.178:25520] - Successfully shut down [INFO] [08/19/2024 01:10:55.388] [test-akka.actor.internal-dispatcher-4] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.178:25520] - Successfully shut down [INFO] [08/19/2024 01:10:55.390] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.178:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [08/19/2024 01:10:55.390] [test-akka.remote.default-remote-dispatcher-7] [akka://test@10.30.171.178:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 01:10:55,390 AM [test-akka.actor.default-dispatcher-17] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 01:10:55,390 AM [test-akka.actor.default-dispatcher-17] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [08/19/2024 01:10:55.392] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.171.178:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [08/19/2024 01:10:55.392] [test-akka.actor.internal-dispatcher-11] [EventStream] shutting down: StandardOutLogger 01:10:55,392 AM [test-akka.actor.default-dispatcher-5] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down.