[DEBUG] [03/15/2024 10:19:22.818] [main] [EventStream(akka://test)] logger log1-TestEventListener started 10:19:22,819 AM [test-akka.actor.default-dispatcher-7] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/15/2024 10:19:22.819] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/15/2024 10:19:22.819] [main] [EventStream(akka://test)] Default Loggers started [INFO] [03/15/2024 10:19:22.833] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.50:25520] with UID [-7873902496643780788] 10:19:22,833 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.171.50:25520] with UID [-7873902496643780788] 10:19:22,833 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/15/2024 10:19:22.833] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/15/2024 10:19:22.836] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/15/2024 10:19:22.836] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Started up successfully 10:19:22,836 AM [test-akka.actor.default-dispatcher-10] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Registered cluster JMX MBean [akka:type=Cluster] 10:19:22,836 AM [test-akka.actor.default-dispatcher-10] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Started up successfully 10:19:22,842 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/15/2024 10:19:22.842] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 10:19:22,842 AM [test-akka.actor.default-dispatcher-7] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining [INFO] [03/15/2024 10:19:22.842] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 10:19:22,944 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithOperationInProgress starting [WARN] [03/15/2024 10:19:22.949] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server410]: org.opendaylight.controller.cluster.common.actor.Monitor@27777484 [INFO] [akkaDeadLetter][03/15/2024 10:19:22.949] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/new-server410] 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'. 10:19:22,950 AM [test-akka.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/new-server410] 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'. 10:19:22,953 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 10:19:22,955 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:22,957 AM [test-akka.actor.default-dispatcher-9] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 10:19:23,50 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:23,50 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:23,51 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 [WARN] [03/15/2024 10:19:23.051] [test-akka.actor.default-dispatcher-10] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader411]: org.opendaylight.controller.cluster.common.actor.Monitor@66c686ab [INFO] [akkaDeadLetter][03/15/2024 10:19:23.051] [test-akka.actor.default-dispatcher-10] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader411] 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'. 10:19:23,51 AM [test-akka.actor.default-dispatcher-10] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader411] 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'. 10:19:23,53 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:23,54 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 10:19:23,153 AM [main] [DEBUG] RaftActorServerConfigurationSupportTest - new-server2: Set currentTerm=1, votedFor=leader 10:19:23,168 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server410, votingMember=true], state: Idle 10:19:23,176 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server410, votingMember=true] 10:19:23,176 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:19:23,176 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: 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 new-server 10:19:23,176 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 10:19:23,178 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 10:19:23,178 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 10:19:23,178 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=1, electionVotedFor=, ServerConfigPayload=null] 10:19:23,178 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:19:23,178 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 10:19:23,178 AM [test-akka.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 171 bytes, total chunks to send: 1 10:19:23,178 AM [test-akka.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 10:19:23,178 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 171 10:19:23,178 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server410), Chunk: 1/1 10:19:23,178 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 10:19:23,178 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 10:19:23,227 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower408, votingMember=false], state: InstallingSnapshot 10:19:23,227 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower408, votingMember=false] 10:19:23,228 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Term 1 in "InstallSnapshot [term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null]" message is greater than follower's term 0 - updating term 10:19:23,228 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 10:19:23,228 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot: InstallSnapshot [term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null] 10:19:23,228 AM [test-akka.actor.default-dispatcher-10] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 10:19:23,228 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:19:23,228 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 10:19:23,230 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying snapshot on follower: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=1, electionVotedFor=null, ServerConfigPayload=null] 10:19:23,230 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 10:19:23,230 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 10:19:23,230 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to -1 10:19:23,230 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 10:19:23,230 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called 10:19:23,231 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] [WARN] [03/15/2024 10:19:23.231] [test-akka.actor.default-dispatcher-10] [akka://test/user/new-server410] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5f0db8d9 10:19:23,231 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 10:19:23,231 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 10:19:23,231 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 10:19:23,232 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 10:19:23,233 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 10:19:23,233 AM [test-akka.actor.default-dispatcher-9] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/new-server410] 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'. 10:19:23,234 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 10:19:23,234 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] [INFO] [akkaDeadLetter][03/15/2024 10:19:23.231] [test-akka.actor.default-dispatcher-10] [akka://test/user/new-server410] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/new-server410] 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'. 10:19:23,234 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:23,235 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=a6e5bf55-8135-47df-ac6c-ce43bf9f993f}, logIndex: 0, isSendImmediate: true 10:19:23,235 AM [test-akka.actor.default-dispatcher-10] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:23,235 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:23,235 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:19:23,235 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:23,236 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:23,236 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 10:19:23,236 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:19:23,236 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:23,236 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:23,237 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 10:19:23,237 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 1 10:19:23,237 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=new-server, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:23,237 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:19:23,237 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server410, votingMember=true] 10:19:23,238 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 10:19:23,238 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:23,238 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] [WARN] [03/15/2024 10:19:23.239] [test-akka.actor.default-dispatcher-16] [akka://test/user/new-server410] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5a9f865f 10:19:23,239 AM [test-akka.actor.default-dispatcher-7] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/new-server410] 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'. [INFO] [akkaDeadLetter][03/15/2024 10:19:23.239] [test-akka.actor.default-dispatcher-10] [akka://test/user/new-server410] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/new-server410] 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'. 10:19:23,240 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:23,241 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 10:19:23,241 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 10:19:23,241 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 10:19:23,241 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:23,241 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupport - leader: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] has been successfully replicated to a majority of followers 10:19:23,241 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower408, votingMember=false] 10:19:23,241 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: New follower is non-voting - directly persisting new server configuration 10:19:23,241 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 10:19:23,241 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:23,241 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:23,241 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=0e89c544-5adf-4d6d-9ebd-e48eccb3ee9c}, logIndex: 1, isSendImmediate: true 10:19:23,241 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:23,241 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 1 is present for follower new-server 10:19:23,241 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:23,242 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:23,242 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower408, votingMember=false] 10:19:23,242 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:23,242 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 10:19:23,242 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:19:23,242 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 10:19:23,242 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:23,242 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 10:19:23,242 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=new-server2, address=null, votingState=NON_VOTING]] 10:19:23,242 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 2 10:19:23,242 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 0 10:19:23,242 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=new-server, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:23,242 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:19:23,242 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 10:19:23,242 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 0 10:19:23,242 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to 0 10:19:23,242 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:23,242 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 10:19:23,242 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:23,243 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:23,243 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:23,243 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=0 10:19:23,243 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 10:19:23,243 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 1 10:19:23,243 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from 0 to 1 10:19:23,243 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 10:19:23,243 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupport - leader: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] has been successfully replicated to a majority of followers 10:19:23,244 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=1 10:19:23,245 AM [test-akka.actor.default-dispatcher-6] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.ReplicatedLog.lastIndex()" because the return value of "org.opendaylight.controller.cluster.raft.RaftActorContext.getReplicatedLog()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.ReplicatedLog.lastIndex()" because the return value of "org.opendaylight.controller.cluster.raft.RaftActorContext.getReplicatedLog()" is null at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.lastIndex(AbstractRaftActorBehavior.java:315) at org.opendaylight.controller.cluster.raft.behaviors.Follower.isOutOfSync(Follower.java:341) at org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:176) at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.appendEntries(AbstractRaftActorBehavior.java:142) at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.handleMessage(AbstractRaftActorBehavior.java:415) at org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:484) at org.opendaylight.controller.cluster.raft.utils.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at akka.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:332) at akka.actor.Actor.aroundReceive(Actor.scala:537) at akka.actor.Actor.aroundReceive$(Actor.scala:535) at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:220) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:579) at akka.actor.ActorCell.invoke(ActorCell.scala:547) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:270) at akka.dispatch.Mailbox.run(Mailbox.scala:231) at akka.dispatch.Mailbox.exec(Mailbox.scala:243) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) [ERROR] [03/15/2024 10:19:23.244] [test-akka.actor.internal-dispatcher-2] [akka://test/user/follower408] Cannot invoke "org.opendaylight.controller.cluster.raft.ReplicatedLog.lastIndex()" because the return value of "org.opendaylight.controller.cluster.raft.RaftActorContext.getReplicatedLog()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.ReplicatedLog.lastIndex()" because the return value of "org.opendaylight.controller.cluster.raft.RaftActorContext.getReplicatedLog()" is null at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.lastIndex(AbstractRaftActorBehavior.java:315) at org.opendaylight.controller.cluster.raft.behaviors.Follower.isOutOfSync(Follower.java:341) at org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:176) at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.appendEntries(AbstractRaftActorBehavior.java:142) at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.handleMessage(AbstractRaftActorBehavior.java:415) at org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:484) at org.opendaylight.controller.cluster.raft.utils.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at akka.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:332) at akka.actor.Actor.aroundReceive(Actor.scala:537) at akka.actor.Actor.aroundReceive$(Actor.scala:535) at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:220) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:579) at akka.actor.ActorCell.invoke(ActorCell.scala:547) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:270) at akka.dispatch.Mailbox.run(Mailbox.scala:231) at akka.dispatch.Mailbox.exec(Mailbox.scala:243) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) 10:19:23,413 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 1 10:19:23,413 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 10:19:23,414 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:19:23,414 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 1 10:19:23,414 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from 0 to 1 10:19:23,414 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 10:19:23,414 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=1 10:19:23,447 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithOperationInProgress ending 10:19:23,448 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower408] 10:19:23,459 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector409#2028478837] 10:19:23,459 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server410] 10:19:23,460 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader411] 10:19:23,460 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector412] 10:19:23,564 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerNonExistentServer starting [WARN] [03/15/2024 10:19:23.565] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader414]: org.opendaylight.controller.cluster.common.actor.Monitor@56a5e66e 10:19:23,565 AM [test-akka.actor.default-dispatcher-17] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader414] 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'. [INFO] [akkaDeadLetter][03/15/2024 10:19:23.565] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader414] 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'. 10:19:23,566 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:23,566 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:23,566 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 10:19:23,570 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:23,570 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower] 10:19:23,570 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:23,578 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - leader: onRemoveServer: RemoveServer{serverId='new-server'}, state: Idle 10:19:23,579 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerNonExistentServer ending 10:19:23,579 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower413] 10:19:23,590 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader414] 10:19:23,693 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerWithNoLeader starting [WARN] [03/15/2024 10:19:23.694] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader416]: org.opendaylight.controller.cluster.common.actor.Monitor@72ab43dd [INFO] [akkaDeadLetter][03/15/2024 10:19:23.695] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader416] 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'. 10:19:23,695 AM [test-akka.actor.default-dispatcher-17] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader416] 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'. 10:19:23,695 AM [test-akka.actor.default-dispatcher-10] [INFO] MockRaftActor - Starting recovery for leader with journal batch size 1000 10:19:23,700 AM [test-akka.actor.default-dispatcher-17] [INFO] MockRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:23,805 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 10:19:23,805 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - leader: No leader - returning NO_LEADER reply 10:19:23,805 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerWithNoLeader ending 10:19:23,806 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower415] 10:19:23,816 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader416] 10:19:23,919 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerLeader starting 10:19:23,921 AM [test-akka.actor.default-dispatcher-17] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader419] to Actor[akka://test/user/termination-monitor] was not delivered. [7] 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'. 10:19:23,921 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:23,921 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:23,922 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 [WARN] [03/15/2024 10:19:23.921] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader419]: org.opendaylight.controller.cluster.common.actor.Monitor@b15d602 [INFO] [akkaDeadLetter][03/15/2024 10:19:23.921] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/leader419] to Actor[akka://test/user/termination-monitor] was not delivered. [7] 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'. 10:19:23,928 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:23,929 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower] 10:19:23,929 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:23.929] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower418] received dead letter from TestActor[akka://test/user/leader419]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 10:19:23,929 AM [test-akka.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader419] to Actor[akka://test/user/follower418] was not delivered. [8] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/follower418] 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'. [INFO] [akkaDeadLetter][03/15/2024 10:19:23.929] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower418] Message [org.opendaylight.controller.cluster.raft.messages.AppendEntries] from TestActor[akka://test/user/leader419] to Actor[akka://test/user/follower418] was not delivered. [8] dead letters encountered. If this is not an expected behavior then Actor[akka://test/user/follower418] 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] [03/15/2024 10:19:24.024] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower418]: org.opendaylight.controller.cluster.common.actor.Monitor@66a8c75c 10:19:24,24 AM [test-akka.actor.default-dispatcher-7] [INFO] EmptyLocalActorRef - Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower418] 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'. [INFO] [akkaDeadLetter][03/15/2024 10:19:24.024] [test-akka.actor.default-dispatcher-9] [akka://test/user/termination-monitor] Message [org.opendaylight.controller.cluster.common.actor.Monitor] from TestActor[akka://test/user/follower418] 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'. 10:19:24,26 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower with journal batch size 1000 10:19:24,27 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:24,42 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Term 1 in "AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 10:19:24,42 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=1, votedFor=null 10:19:24,42 AM [test-akka.actor.default-dispatcher-9] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:19:24,42 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 10:19:24,43 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:24.043] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower418] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4f7e56bf [INFO] [akkaDeadLetter][03/15/2024 10:19:24.044] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower418] Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower418] was unhandled. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:24,44 AM [test-akka.actor.default-dispatcher-9] [INFO] TestActorRef - Message [org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus] to TestActor[akka://test/user/follower418] was unhandled. [10] dead letters encountered, no more dead letters will be logged in next [5.000 min]. This logging can be turned off or adjusted with configuration settings 'akka.log-dead-letters' and 'akka.log-dead-letters-during-shutdown'. 10:19:24,135 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 10:19:24,138 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true]] 10:19:24,138 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]]] 10:19:24,139 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]]] 10:19:24,139 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=fb467f69-1dcb-4dad-8974-886574ded224}, logIndex: 0, isSendImmediate: true 10:19:24,139 AM [test-akka.actor.default-dispatcher-9] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:24,139 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:24,139 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower 10:19:24,139 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]]]]] 10:19:24,139 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation RemoveServer{serverId='leader'} 10:19:24,140 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]]]]] 10:19:24,140 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Number of entries to be appended = 1 10:19:24,140 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:19:24,140 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]] 10:19:24,140 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]]] 10:19:24,140 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Updated server config: isVoting: true, peers: [] 10:19:24,140 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Log size is now 1 10:19:24,140 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:24,140 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:19:24,141 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 10:19:24,141 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:24,141 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]]] 10:19:24,141 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]]] 10:19:24,141 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 10:19:24,141 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 10:19:24,141 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 10:19:24,141 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]] 10:19:24,141 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupport - leader: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]] has been successfully replicated to a majority of followers [WARN] [03/15/2024 10:19:24.141] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower418] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@537ef696 10:19:24,142 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 [WARN] [03/15/2024 10:19:24.143] [test-akka.actor.default-dispatcher-17] [akka://test/user/leader419] unhandled message from TestActor[akka://test/user/leader419]: ServerRemoved [serverId=leader] 10:19:24,282 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Commit index set to 0 10:19:24,283 AM [test-akka.actor.default-dispatcher-9] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:19:24,283 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:19:24,283 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Setting last applied to 0 10:19:24,283 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Moving last applied index from -1 to 0 10:19:24,283 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]] 10:19:24,283 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Persisting ApplyJournalEntries with index=0 10:19:24,291 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerLeader ending 10:19:24,291 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower417] 10:19:24,302 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader419] 10:19:24,302 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector420] 10:19:24,303 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector421#1963943189] 10:19:24,303 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower418] 10:19:24,405 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot starting [WARN] [03/15/2024 10:19:24.408] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server424]: org.opendaylight.controller.cluster.common.actor.Monitor@629198b5 10:19:24,408 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 10:19:24,410 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:24,410 AM [test-akka.actor.default-dispatcher-9] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [03/15/2024 10:19:24.508] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader425]: org.opendaylight.controller.cluster.common.actor.Monitor@4e74ce5a 10:19:24,509 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:24,509 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:24,509 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 10:19:24,511 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:24,511 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 10:19:24,720 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server424, votingMember=true], state: Idle 10:19:24,720 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server424, votingMember=true] 10:19:24,720 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:19:24,721 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: 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 new-server 10:19:24,721 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 10:19:24,721 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 10:19:24,721 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 10:19:24,721 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=1, electionVotedFor=, ServerConfigPayload=null] 10:19:24,721 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:19:24,721 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 10:19:24,722 AM [test-akka.actor.default-dispatcher-9] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 171 bytes, total chunks to send: 1 10:19:24,722 AM [test-akka.actor.default-dispatcher-9] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 10:19:24,722 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 171 10:19:24,722 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server424), Chunk: 1/1 10:19:24,722 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 10:19:24,722 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Term 1 in "InstallSnapshot [term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null]" message is greater than follower's term 0 - updating term 10:19:24,722 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 10:19:24,722 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 10:19:24,722 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot: InstallSnapshot [term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null] 10:19:24,722 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 10:19:24,723 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:19:24,723 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 10:19:24,725 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying snapshot on follower: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=1, electionVotedFor=null, ServerConfigPayload=null] 10:19:24,725 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 [WARN] [03/15/2024 10:19:24.725] [test-akka.actor.default-dispatcher-9] [akka://test/user/new-server424] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@19d0fe61 10:19:24,725 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 10:19:24,725 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to -1 10:19:24,725 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 10:19:24,725 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called 10:19:24,725 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 10:19:24,725 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 10:19:24,725 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 10:19:24,725 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 10:19:24,725 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 10:19:24,771 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 10:19:24,771 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server new-server: not leader 10:19:26,332 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: handleInstallSnapshotTimeout for new server new-server 10:19:26,332 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server424, votingMember=true] 10:19:26,333 AM [test-akka.actor.default-dispatcher-17] [WARN] RaftActorServerConfigurationSupport - leader: Timeout occured for new server new-server while installing snapshot 10:19:26,333 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot ending 10:19:26,333 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower422] 10:19:26,344 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector423#-1870923783] 10:19:26,344 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server424] 10:19:26,345 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader425] 10:19:26,345 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector426] 10:19:26,347 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected starting 10:19:26,351 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node1 with journal batch size 1000 [WARN] [03/15/2024 10:19:26.351] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@25cc65d7 10:19:26,353 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=1, votedFor=node1 10:19:26,354 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 10:19:26,354 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 10:19:26,354 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 [WARN] [03/15/2024 10:19:26.451] [test-akka.actor.default-dispatcher-9] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@e275286 10:19:26,452 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node2 with journal batch size 1000 10:19:26,455 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=1, votedFor=node1 10:19:26,455 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 10:19:26,455 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 10:19:26,455 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 10:19:26,464 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 10:19:26,466 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 10:19:26,466 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node1: Sending local ElectionTimeout to start leader election 10:19:26,467 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 10:19:26,467 AM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:26,467 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Received TimeoutNow - switching to Candidate 10:19:26,467 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Election: Candidate has following voting peers: [node2] 10:19:26,467 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=2, votedFor=node1 10:19:26,467 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Starting new election term 2 10:19:26,468 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Sending RequestVote [term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1] to peer node2 10:19:26,468 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:19:26,519 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Received TimeoutNow - switching to Candidate 10:19:26,519 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Election: Candidate has following voting peers: [] 10:19:26,519 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=2, votedFor=node2 10:19:26,519 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Starting new election term 2 10:19:26,519 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:19:26,521 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Received ElectionTimeout 10:19:26,521 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Election: Leader has following peers: [node1] 10:19:26,521 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:26,521 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:19:26,521 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): RaftRPC message received AppendEntries [leaderId=node2, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]], my term is 2 10:19:26,521 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): handleAppendEntries: AppendEntries [leaderId=node2, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 10:19:26,521 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): New Leader node2 sent an AppendEntries to Candidate for term 2 - will switch to Follower 10:19:26,521 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 10:19:26,633 AM [test-akka.actor.default-dispatcher-9] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 10:19:26,633 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - node1: New leader node2 elected 10:19:26,633 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 10:19:26,633 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - node1: Forwarding ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] to new leader 10:19:26,633 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 10:19:26,633 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=akka://test/user/node2, votingState=VOTING]] 10:19:26,633 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: getLeaderAddress leaderId = node2 peerAddress = akka://test/user/node2 10:19:26,634 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:26,634 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - node1: Not leader - forwarding to leader ActorSelection[Anchor(akka://test/), Path(/user/node2)] 10:19:26,634 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 10:19:26,634 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 10:19:26,634 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=akka://test/user/node1, votingState=VOTING]] [WARN] [03/15/2024 10:19:26.634] [test-akka.actor.default-dispatcher-7] [akka://test/user/node1] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7ec56c33 10:19:26,634 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 10:19:26,634 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 10:19:26,634 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 10:19:26,635 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=bf59fc24-89a2-45a6-b174-3c53d06bbcc5}, logIndex: 1, isSendImmediate: true 10:19:26,635 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:26,635 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): sendAppendEntries: 1 is present for follower node1 10:19:26,635 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Sending AppendEntries to follower node1: AppendEntries [leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]]]] 10:19:26,635 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 10:19:26,635 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): handleAppendEntries: AppendEntries [leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=2, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]]]] 10:19:26,635 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Number of entries to be appended = 1 10:19:26,635 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:19:26,635 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 10:19:26,635 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=2, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 10:19:26,636 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=akka://test/user/node2, votingState=VOTING]] 10:19:26,636 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Log size is now 2 10:19:26,636 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): handleAppendEntries returning : AppendEntriesReply [term=2, success=true, followerId=node1, logLastIndex=1, logLastTerm=2, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:26,636 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) 10:19:26,636 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 1, nextIndex: 2 10:19:26,636 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 10:19:26,636 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:26,636 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 10:19:26,636 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Not updating commit index to 0 - retrieved log entry with index 0, term 1 does not match the current term 2 10:19:26,636 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: -1 10:19:26,636 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Setting last applied to 0 10:19:26,636 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from -1 to 0 10:19:26,637 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]] 10:19:26,637 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Setting last applied to 1 10:19:26,637 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from 0 to 1 10:19:26,637 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 10:19:26,637 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 10:19:26,637 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: fakeSnapshot purging log to 0 for term 2 10:19:26,637 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupport - node2: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] has been successfully replicated to a majority of followers [WARN] [03/15/2024 10:19:26.637] [test-akka.actor.default-dispatcher-17] [akka://test/user/node1] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5726405a 10:19:26,637 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Persisting ApplyJournalEntries with index=1 10:19:26,752 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Commit index set to 1 10:19:26,753 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 10:19:26,753 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 10:19:26,753 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Setting last applied to 0 10:19:26,753 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from -1 to 0 10:19:26,753 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]] 10:19:26,753 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Setting last applied to 1 10:19:26,753 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from 0 to 1 10:19:26,753 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 10:19:26,753 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: fakeSnapshot purging log to 0 for term 2 10:19:26,753 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Persisting ApplyJournalEntries with index=1 10:19:26,789 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected ending 10:19:26,789 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower427] 10:19:26,800 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector428#1484957467] 10:19:26,800 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node1] 10:19:26,801 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector429#-1765557228] 10:19:26,801 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node2] 10:19:26,904 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithInstallSnapshotTimeout starting [WARN] [03/15/2024 10:19:26.905] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server432]: org.opendaylight.controller.cluster.common.actor.Monitor@2d56971 10:19:26,906 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 [WARN] [03/15/2024 10:19:26.907] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader433]: org.opendaylight.controller.cluster.common.actor.Monitor@13c7f2a7 10:19:26,907 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:26,908 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:26,908 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 10:19:26,908 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:26,909 AM [test-akka.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 10:19:26,909 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:26,910 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 10:19:27,18 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server432, votingMember=true], state: Idle 10:19:27,18 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server432, votingMember=true] 10:19:27,18 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:19:27,18 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: 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 new-server 10:19:27,18 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 10:19:27,18 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 10:19:27,18 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=bogus] 10:19:27,19 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server bogus: server Id doesn't match 10:19:27,19 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 10:19:27,19 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=1, electionVotedFor=, ServerConfigPayload=null] 10:19:27,19 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:19:27,19 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 10:19:27,19 AM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 171 bytes, total chunks to send: 1 10:19:27,19 AM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 10:19:27,19 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 171 10:19:27,19 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server432), Chunk: 1/1 10:19:27,19 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 10:19:27,19 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 10:19:27,132 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Term 1 in "AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 10:19:27,132 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 10:19:27,133 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 10:19:27,133 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 [WARN] [03/15/2024 10:19:27.134] [test-akka.actor.default-dispatcher-7] [akka://test/user/new-server432] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7b85b568 10:19:27,232 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: handleInstallSnapshotTimeout for new server new-server 10:19:27,233 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server432, votingMember=true] 10:19:27,233 AM [test-akka.actor.default-dispatcher-17] [WARN] RaftActorServerConfigurationSupport - leader: Timeout occured for new server new-server while installing snapshot 10:19:27,233 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithInstallSnapshotTimeout ending 10:19:27,233 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower430] 10:19:27,244 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector431#-842907608] 10:19:27,244 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server432] 10:19:27,245 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader433] 10:19:27,246 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoExistingFollower starting 10:19:27,249 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 10:19:27,249 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 [WARN] [03/15/2024 10:19:27.249] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server436]: org.opendaylight.controller.cluster.common.actor.Monitor@2bf43964 [WARN] [03/15/2024 10:19:27.250] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader437]: org.opendaylight.controller.cluster.common.actor.Monitor@328bcb24 10:19:27,251 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 1 10:19:27,251 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:27,251 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 10:19:27,251 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:27,252 AM [test-akka.actor.default-dispatcher-16] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 10:19:27,253 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = 1, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 2 10:19:27,253 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 10:19:27,361 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server436, votingMember=true], state: Idle 10:19:27,362 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server436, votingMember=true] 10:19:27,362 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: 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 new-server 10:19:27,362 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 10:19:27,363 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 10:19:27,364 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 10:19:27,364 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting of snapshot done: Snapshot [lastIndex=1, lastTerm=1, lastAppliedIndex=1, lastAppliedTerm=1, unAppliedEntries size=0, state=MockSnapshotState [state=[0, 1]], electionTerm=1, electionVotedFor=, ServerConfigPayload=null] 10:19:27,364 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:19:27,364 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 10:19:27,364 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 324 bytes, total chunks to send: 1 10:19:27,364 AM [test-akka.actor.default-dispatcher-16] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=324, offset=0, size=324, hashCode=-1763937099 10:19:27,364 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 324 10:19:27,364 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server436), Chunk: 1/1 10:19:27,364 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 10:19:27,364 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Term 1 in "InstallSnapshot [term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=324, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null]" message is greater than follower's term 0 - updating term 10:19:27,364 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 10:19:27,364 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 10:19:27,365 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot: InstallSnapshot [term=1, leaderId=leader, lastIncludedIndex=1, lastIncludedTerm=1, datasize=324, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null] 10:19:27,365 AM [test-akka.actor.default-dispatcher-10] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to 1 10:19:27,365 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:19:27,365 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 10:19:27,367 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying snapshot on follower: Snapshot [lastIndex=1, lastTerm=1, lastAppliedIndex=1, lastAppliedTerm=1, unAppliedEntries size=0, state=MockSnapshotState [state=[0, 1]], electionTerm=1, electionVotedFor=null, ServerConfigPayload=null] 10:19:27,367 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 10:19:27,367 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 10:19:27,367 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to 1 10:19:27,367 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 10:19:27,367 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called [WARN] [03/15/2024 10:19:27.367] [test-akka.actor.default-dispatcher-16] [akka://test/user/new-server436] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@30f3cf18 10:19:27,367 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 10:19:27,367 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 10:19:27,367 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 10:19:27,367 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 1, nextIndex set to 2 10:19:27,367 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 10:19:27,367 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: fakeSnapshot purging log to 0 for term 1 10:19:27,367 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 10:19:27,368 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 10:19:27,368 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=2, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:27,368 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:27,368 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=a940b3a5-ecf1-44cb-b588-d45046540eec}, logIndex: 2, isSendImmediate: true 10:19:27,368 AM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:27,368 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 10:19:27,368 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 2 is present for follower new-server 10:19:27,368 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:27,368 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server436, votingMember=true] 10:19:27,369 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=1, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=2, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:27,369 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 10:19:27,369 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 10:19:27,369 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:27,369 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:27,369 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 10:19:27,369 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 1 10:19:27,369 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=new-server, logLastIndex=2, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:27,369 AM [test-akka.actor.default-dispatcher-10] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected 1) 10:19:27,369 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 2, nextIndex: 3 10:19:27,369 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 0 10:19:27,370 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:27,370 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 10:19:27,370 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 2 10:19:27,370 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from 1 to 2 10:19:27,370 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 2 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:27,370 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: fakeSnapshot purging log to 1 for term 1 10:19:27,370 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: persist complete SimpleReplicatedLogEntry [index=2, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:27,370 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupport - leader: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] has been successfully replicated to a majority of followers 10:19:27,370 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=2 [WARN] [03/15/2024 10:19:27.370] [test-akka.actor.default-dispatcher-16] [akka://test/user/new-server436] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@59d5b655 10:19:27,483 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 2 10:19:27,483 AM [test-akka.actor.default-dispatcher-10] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 10:19:27,483 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 10:19:27,483 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 2 10:19:27,483 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from 1 to 2 10:19:27,483 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying state for log index 2 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:27,483 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=2 10:19:27,517 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoExistingFollower ending 10:19:27,517 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower434] 10:19:27,528 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector435#-1072958542] 10:19:27,528 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server436] 10:19:27,529 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader437] 10:19:27,529 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector438] 10:19:27,631 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout starting 10:19:27,635 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node1 with journal batch size 1000 [WARN] [03/15/2024 10:19:27.635] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@39848b89 [WARN] [03/15/2024 10:19:27.636] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@7e99e14b 10:19:27,637 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node2 with journal batch size 1000 10:19:27,638 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=1, votedFor=node1 10:19:27,639 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 10:19:27,639 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING]] 10:19:27,639 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 10:19:27,641 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=1, votedFor=node1 10:19:27,641 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 10:19:27,641 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: false, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 10:19:27,641 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received ReplicatedLogEntry for recovery: index: 1, size: 1 10:19:27,641 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received apply journal entries for recovery, applying to state: 0 to 1 10:19:27,641 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from -1 to 1 10:19:27,642 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Recovery completed in 109.6 μs - Switching actor to Follower - last log index = 1, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 2 10:19:27,648 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 10:19:27,648 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 10:19:27,648 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: Sending local ElectionTimeout to start leader election 10:19:27,648 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 10:19:27,648 AM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:27,648 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Received TimeoutNow - switching to Candidate 10:19:27,648 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Election: Candidate has following voting peers: [node2] 10:19:27,648 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=2, votedFor=node1 10:19:27,648 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Starting new election term 2 10:19:27,648 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Sending RequestVote [term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1] to peer node2 10:19:27,648 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:19:27,649 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:19:27,649 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Cluster state: [] 10:19:27,649 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Candidate in requestVote:RequestVote [term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1] with higher term appears reachable, updating term. 10:19:27,649 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Term 2 in "RequestVote [term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1]" message is greater than follower's term 1 - updating term 10:19:27,649 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=2, votedFor=null 10:19:27,649 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): In requestVote: RequestVote [term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1] - currentTerm: 2, votedFor: null, lastIndex: 1, lastTerm: 1 10:19:27,649 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 10:19:27,649 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): RaftRPC message received RequestVoteReply [term=2, voteGranted=false], my term is 2 10:19:27,649 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): handleRequestVoteReply: RequestVoteReply [term=2, voteGranted=false], current voteCount: 1 10:19:27,962 AM [test-akka.actor.default-dispatcher-17] [WARN] RaftActorServerConfigurationSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 10:19:27,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=akka://test/user/node2, votingState=NON_VOTING]] 10:19:27,963 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 10:19:27,963 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node1: Found server ActorSelection[Anchor(akka://test/), Path(/user/node2)] to forward to 10:19:27,964 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]], state: Idle 10:19:27,964 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 10:19:27,964 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node2: Sending local ElectionTimeout to start leader election 10:19:27,964 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=VOTING]] 10:19:27,964 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Received TimeoutNow - switching to Candidate 10:19:27,964 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Election: Candidate has following voting peers: [node1] 10:19:27,964 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=3, votedFor=node2 10:19:27,964 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Starting new election term 3 10:19:27,965 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Sending RequestVote [term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1] to peer node1 10:19:27,965 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 10:19:27,965 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:19:27,965 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Cluster state: [] 10:19:27,965 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1] with higher term appears reachable, updating term. 10:19:27,965 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Term 3 in "RequestVote [term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1]" message is greater than follower's term 2 - updating term 10:19:27,965 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=3, votedFor=null 10:19:27,965 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): In requestVote: RequestVote [term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1] - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 10:19:27,965 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=3, votedFor=node2 10:19:27,965 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 10:19:27,966 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 10:19:27,966 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 10:19:27,966 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Election: Leader has following peers: [node1] 10:19:27,966 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:27,966 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 10:19:27,966 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node2: New leader node2 elected 10:19:27,966 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 10:19:27,966 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 10:19:27,966 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 10:19:27,967 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=c485df5e-51bc-4729-a580-42803d133563}, logIndex: 2, isSendImmediate: true 10:19:27,967 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 10:19:27,967 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]] 10:19:27,967 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 10:19:27,967 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 10:19:27,967 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: fakeSnapshot purging log to 0 for term 3 10:19:27,967 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 10:19:27,967 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): sendAppendEntries: 1 is present for follower node1 10:19:27,967 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) 10:19:27,968 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Sending AppendEntries to follower node1: AppendEntries [leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=2], SimpleReplicatedLogEntry [index=2, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]]]] [WARN] [03/15/2024 10:19:27.968] [test-akka.actor.default-dispatcher-9] [akka://test/user/node1] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2450c2e6 10:19:27,968 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): sendAppendEntries: 1 is present for follower node1 [WARN] [03/15/2024 10:19:27.968] [test-akka.actor.default-dispatcher-9] [akka://test/user/node1] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@42c037ba 10:19:27,968 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): handleAppendEntries: AppendEntries [leaderId=node2, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=0, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=2], SimpleReplicatedLogEntry [index=2, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]]]] 10:19:27,968 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Number of entries to be appended = 2 10:19:27,968 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:19:27,968 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Append entry to log 2 10:19:27,968 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=2] 10:19:27,968 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 10:19:27,968 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Append log entry and persist SimpleReplicatedLogEntry [index=2, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 10:19:27,968 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=akka://test/user/node2, votingState=VOTING]] 10:19:27,968 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Log size is now 3 10:19:27,968 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Commit index set to 1 10:19:27,968 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=node1, logLastIndex=2, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:27,968 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 10:19:27,968 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 2 10:19:27,969 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Setting last applied to 0 10:19:27,969 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from -1 to 0 10:19:27,969 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 2, nextIndex: 3 10:19:27,969 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=false]]] 10:19:27,969 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Setting last applied to 1 10:19:27,969 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from 0 to 1 10:19:27,969 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 0 10:19:27,969 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Applying state for log index 1 data 2 10:19:27,969 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: applyState called: 2 10:19:27,969 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: fakeSnapshot purging log to 0 for term 3 10:19:27,970 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=2] 10:19:27,970 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 10:19:27,970 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 10:19:27,971 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 10:19:27,971 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Setting last applied to 2 10:19:27,971 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from 1 to 2 10:19:27,971 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Applying state for log index 2 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 10:19:27,971 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: fakeSnapshot purging log to 1 for term 3 10:19:27,971 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Persisting ApplyJournalEntries with index=1 10:19:27,971 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupport - node2: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] has been successfully replicated to a majority of followers 10:19:27,971 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Persisting ApplyJournalEntries with index=2 10:19:28,18 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout ending 10:19:28,18 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower439] 10:19:28,29 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector440#-1548743830] 10:19:28,29 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node1] 10:19:28,29 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector441#-2075886450] 10:19:28,29 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node2] 10:19:28,30 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoConsensusReached starting [WARN] [03/15/2024 10:19:28.031] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server444]: org.opendaylight.controller.cluster.common.actor.Monitor@1b82c6ff 10:19:28,32 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 [WARN] [03/15/2024 10:19:28.032] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader445]: org.opendaylight.controller.cluster.common.actor.Monitor@a81f39b 10:19:28,33 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:28,33 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:28,33 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 10:19:28,35 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:28,35 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:28,35 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 10:19:28,35 AM [test-akka.actor.default-dispatcher-18] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 10:19:28,145 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server444, votingMember=true], state: Idle 10:19:28,145 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server444, votingMember=true] 10:19:28,146 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:19:28,146 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: 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 new-server 10:19:28,146 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 10:19:28,146 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 10:19:28,146 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 10:19:28,146 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=1, electionVotedFor=, ServerConfigPayload=null] 10:19:28,146 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:19:28,146 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 10:19:28,147 AM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 171 bytes, total chunks to send: 1 10:19:28,147 AM [test-akka.actor.default-dispatcher-17] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 10:19:28,147 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 171 10:19:28,147 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server444), Chunk: 1/1 10:19:28,147 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 10:19:28,147 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Term 1 in "InstallSnapshot [term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null]" message is greater than follower's term 0 - updating term 10:19:28,147 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 10:19:28,147 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 10:19:28,147 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot: InstallSnapshot [term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null] 10:19:28,147 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 10:19:28,147 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:19:28,147 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 10:19:28,149 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying snapshot on follower: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=1, electionVotedFor=null, ServerConfigPayload=null] 10:19:28,149 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 10:19:28,149 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 10:19:28,149 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to -1 10:19:28,149 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 10:19:28,149 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called [WARN] [03/15/2024 10:19:28.149] [test-akka.actor.default-dispatcher-17] [akka://test/user/new-server444] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@ef3ca00 10:19:28,149 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 10:19:28,149 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 10:19:28,149 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 10:19:28,149 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 10:19:28,150 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 10:19:28,196 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 10:19:28,196 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 10:19:28,196 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:28,196 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:28,196 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=46fd7637-75dd-4cbd-b0cf-db6d2a4d9407}, logIndex: 0, isSendImmediate: true 10:19:28,196 AM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:28,196 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:28,197 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:19:28,197 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:28,197 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server444, votingMember=true] 10:19:28,198 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:28,246 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 10:19:28,246 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 10:19:28,262 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:19:28,382 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:19:28,382 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:28,502 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:19:28,502 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:28,623 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:19:28,623 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:28,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:19:28,742 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:28,862 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:19:28,863 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:28,982 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:19:28,982 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:29,102 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:19:29,102 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:30,212 AM [test-akka.actor.default-dispatcher-18] [WARN] RaftActorServerConfigurationSupport - leader: Timeout occured while replicating the new server configuration for new-server 10:19:30,212 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 10:19:30,213 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 10:19:30,213 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 10:19:30,213 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoConsensusReached ending 10:19:30,213 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower442] 10:19:30,225 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector443#-1253342433] 10:19:30,225 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server444] 10:19:30,225 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader445] 10:19:30,226 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector446] 10:19:30,226 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-serverCollector447] 10:19:30,328 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerLeaderWithNoFollowers starting [WARN] [03/15/2024 10:19:30.330] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader449]: org.opendaylight.controller.cluster.common.actor.Monitor@1f749636 10:19:30,330 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:30,331 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:30,331 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 10:19:30,333 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:30,333 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 10:19:30,440 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 10:19:30,440 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerLeaderWithNoFollowers ending 10:19:30,440 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower448] 10:19:30,451 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader449] 10:19:30,553 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete starting [WARN] [03/15/2024 10:19:30.555] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server452]: org.opendaylight.controller.cluster.common.actor.Monitor@45b84a70 10:19:30,556 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 10:19:30,557 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:30,558 AM [test-akka.actor.default-dispatcher-18] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [03/15/2024 10:19:30.656] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader453]: org.opendaylight.controller.cluster.common.actor.Monitor@64ca0c31 10:19:30,656 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:30,656 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:30,657 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 10:19:30,658 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:30,659 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 10:19:30,857 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 10:19:30,857 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:19:30,857 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true] 10:19:30,857 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 10:19:30,857 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 10:19:30,858 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=1, electionVotedFor=, ServerConfigPayload=null] 10:19:30,858 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 10:19:30,858 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:19:30,867 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server452, votingMember=true], state: Idle 10:19:30,867 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server452, votingMember=true] 10:19:30,867 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - captureToInstall should not be called in state Persisting 10:19:30,867 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Snapshot already in progress - waiting for completion [WARN] [03/15/2024 10:19:30.868] [test-akka.actor.default-dispatcher-15] [akka://test/user/leader453] unhandled message from TestActor[akka://test/user/leader453]: org.opendaylight.controller.cluster.raft.base.messages.TimeoutNow@15452bff 10:19:30,868 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 10:19:30,868 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: handleInstallSnapshotTimeout for new server new-server 10:19:30,868 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server452, votingMember=true] 10:19:30,868 AM [test-akka.actor.default-dispatcher-18] [WARN] RaftActorServerConfigurationSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 10:19:30,868 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 10:19:30,869 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete ending 10:19:30,869 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower450] 10:19:30,879 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector451#-1971753966] 10:19:30,880 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server452] 10:19:30,880 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader453] 10:19:30,881 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector454] 10:19:30,983 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServersAsNonVoting starting [WARN] [03/15/2024 10:19:30.984] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server457]: org.opendaylight.controller.cluster.common.actor.Monitor@117aad8f 10:19:30,985 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 10:19:30,987 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:30,987 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:30,987 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 [WARN] [03/15/2024 10:19:30.987] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader458]: org.opendaylight.controller.cluster.common.actor.Monitor@4c9870b5 10:19:30,989 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:30,989 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:30,989 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 10:19:30,990 AM [test-akka.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 10:19:31,198 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server457, votingMember=false], state: Idle 10:19:31,198 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server457, votingMember=false] 10:19:31,198 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: New follower is non-voting - directly persisting new server configuration 10:19:31,198 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 10:19:31,198 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:31,198 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:31,199 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=503dfa2b-a9a3-4701-ab81-b7aada0dddc7}, logIndex: 0, isSendImmediate: true 10:19:31,199 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 10:19:31,199 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 10:19:31,199 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 10:19:31,199 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:31,199 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server457, votingMember=false] 10:19:31,199 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Term 1 in "AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 10:19:31,199 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 10:19:31,200 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 10:19:31,200 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupport - leader: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] has been successfully replicated to a majority of followers 10:19:31,200 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 10:19:31,200 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 10:19:31,200 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:31,200 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:19:31,200 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:31,201 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:31,201 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:31,201 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 [WARN] [03/15/2024 10:19:31.201] [test-akka.actor.default-dispatcher-6] [akka://test/user/new-server457] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3481d849 10:19:31,201 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:19:31,201 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 10:19:31,201 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:31,201 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 10:19:31,201 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 1 10:19:31,201 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 0 10:19:31,201 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=new-server, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:31,201 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:19:31,201 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:19:31,201 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 0 10:19:31,201 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to 0 10:19:31,202 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 10:19:31,202 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 10:19:31,202 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:31,202 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:31,203 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=0 [WARN] [03/15/2024 10:19:31.203] [test-akka.actor.default-dispatcher-15] [akka://test/user/new-server457] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3ab02426 10:19:31,313 AM [test-akka.actor.default-dispatcher-9] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:19:31,432 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:19:31,553 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:19:31,673 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:19:31,753 AM [main] [DEBUG] RaftActorServerConfigurationSupportTest - new-server2: Set currentTerm=1, votedFor=leader 10:19:31,754 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower455, votingMember=false], state: Idle 10:19:31,754 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower455, votingMember=false] 10:19:31,754 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: New follower is non-voting - directly persisting new server configuration 10:19:31,754 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 10:19:31,754 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:31,755 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:31,755 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=348536b1-a694-488a-b93a-3e7b9283fb93}, logIndex: 1, isSendImmediate: true 10:19:31,755 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 1 10:19:31,755 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from 0 to 1 10:19:31,755 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 10:19:31,755 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:31,755 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 1 is present for follower new-server 10:19:31,756 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:31,756 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:31,756 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower455, votingMember=false] 10:19:31,756 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:31,756 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 10:19:31,756 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:19:31,756 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 10:19:31,756 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:31,756 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupport - leader: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] has been successfully replicated to a majority of followers 10:19:31,756 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=1 10:19:31,756 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=new-server2, address=null, votingState=NON_VOTING]] 10:19:31,756 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 2 10:19:31,756 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 1 10:19:31,757 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=new-server, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:31,757 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 10:19:31,757 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:19:31,757 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 1 10:19:31,757 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from 0 to 1 10:19:31,757 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 10:19:31,757 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 10:19:31,757 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:31,757 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:31,758 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:31,758 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=1 10:19:31,758 AM [test-akka.actor.default-dispatcher-15] [ERROR] OneForOneStrategy - Cannot invoke "org.opendaylight.controller.cluster.raft.ReplicatedLog.lastIndex()" because the return value of "org.opendaylight.controller.cluster.raft.RaftActorContext.getReplicatedLog()" is null [ERROR] [03/15/2024 10:19:31.758] [test-akka.actor.internal-dispatcher-4] [akka://test/user/follower455] Cannot invoke "org.opendaylight.controller.cluster.raft.ReplicatedLog.lastIndex()" because the return value of "org.opendaylight.controller.cluster.raft.RaftActorContext.getReplicatedLog()" is null java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.ReplicatedLog.lastIndex()" because the return value of "org.opendaylight.controller.cluster.raft.RaftActorContext.getReplicatedLog()" is null at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.lastIndex(AbstractRaftActorBehavior.java:315) at org.opendaylight.controller.cluster.raft.behaviors.Follower.isOutOfSync(Follower.java:341) at org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:176) at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.appendEntries(AbstractRaftActorBehavior.java:142) at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.handleMessage(AbstractRaftActorBehavior.java:415) at org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:484) at org.opendaylight.controller.cluster.raft.utils.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at akka.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:332) at akka.actor.Actor.aroundReceive(Actor.scala:537) at akka.actor.Actor.aroundReceive$(Actor.scala:535) at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:220) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:579) at akka.actor.ActorCell.invoke(ActorCell.scala:547) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:270) at akka.dispatch.Mailbox.run(Mailbox.scala:231) at akka.dispatch.Mailbox.exec(Mailbox.scala:243) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) java.lang.NullPointerException: Cannot invoke "org.opendaylight.controller.cluster.raft.ReplicatedLog.lastIndex()" because the return value of "org.opendaylight.controller.cluster.raft.RaftActorContext.getReplicatedLog()" is null at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.lastIndex(AbstractRaftActorBehavior.java:315) at org.opendaylight.controller.cluster.raft.behaviors.Follower.isOutOfSync(Follower.java:341) at org.opendaylight.controller.cluster.raft.behaviors.Follower.handleAppendEntries(Follower.java:176) at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.appendEntries(AbstractRaftActorBehavior.java:142) at org.opendaylight.controller.cluster.raft.behaviors.AbstractRaftActorBehavior.handleMessage(AbstractRaftActorBehavior.java:415) at org.opendaylight.controller.cluster.raft.behaviors.Follower.handleMessage(Follower.java:484) at org.opendaylight.controller.cluster.raft.utils.ForwardMessageToBehaviorActor.onReceive(ForwardMessageToBehaviorActor.java:25) at akka.actor.UntypedAbstractActor$$anonfun$receive$1.applyOrElse(AbstractActor.scala:332) at akka.actor.Actor.aroundReceive(Actor.scala:537) at akka.actor.Actor.aroundReceive$(Actor.scala:535) at akka.actor.AbstractActor.aroundReceive(AbstractActor.scala:220) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:579) at akka.actor.ActorCell.invoke(ActorCell.scala:547) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:270) at akka.dispatch.Mailbox.run(Mailbox.scala:231) at akka.dispatch.Mailbox.exec(Mailbox.scala:243) at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182) at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655) at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622) at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165) 10:19:31,807 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServersAsNonVoting ending 10:19:31,807 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower455] 10:19:31,818 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector456#-5871688] 10:19:31,818 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server457] 10:19:31,819 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader458] 10:19:31,819 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector459] 10:19:31,821 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithPriorSnapshotInProgress starting [WARN] [03/15/2024 10:19:31.822] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server462]: org.opendaylight.controller.cluster.common.actor.Monitor@232688a1 10:19:31,823 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 [WARN] [03/15/2024 10:19:31.824] [test-akka.actor.default-dispatcher-9] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader463]: org.opendaylight.controller.cluster.common.actor.Monitor@48ce8d7b 10:19:31,824 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:31,825 AM [test-akka.actor.default-dispatcher-17] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 10:19:31,825 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:31,825 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:31,825 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 10:19:31,830 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:31,831 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 10:19:31,831 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 10:19:31,831 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:19:31,831 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true] 10:19:31,831 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 10:19:31,831 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 10:19:31,831 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=1, electionVotedFor=, ServerConfigPayload=null] 10:19:31,832 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 10:19:31,832 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:19:31,832 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 10:19:31,832 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 10:19:31,887 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server462, votingMember=true], state: Idle 10:19:31,887 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server462, votingMember=true] 10:19:31,887 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:19:31,888 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: 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 new-server 10:19:31,888 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 10:19:31,888 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 10:19:31,888 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - commit should not be called in state Creating 10:19:31,888 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 10:19:31,888 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=1, electionVotedFor=, ServerConfigPayload=null] 10:19:31,888 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:19:31,888 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 10:19:31,888 AM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 171 bytes, total chunks to send: 1 10:19:31,888 AM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 10:19:31,888 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 171 10:19:31,888 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server462), Chunk: 1/1 10:19:31,889 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 10:19:31,889 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Term 1 in "InstallSnapshot [term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null]" message is greater than follower's term 0 - updating term 10:19:31,889 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 10:19:31,889 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 10:19:31,889 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot: InstallSnapshot [term=1, leaderId=leader, lastIncludedIndex=-1, lastIncludedTerm=-1, datasize=171, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null] 10:19:31,889 AM [test-akka.actor.default-dispatcher-10] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 10:19:31,889 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:19:31,889 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 10:19:31,891 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying snapshot on follower: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=1, electionVotedFor=null, ServerConfigPayload=null] [WARN] [03/15/2024 10:19:31.891] [test-akka.actor.default-dispatcher-17] [akka://test/user/new-server462] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@70c49d92 10:19:31,891 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 10:19:31,891 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 10:19:31,891 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to -1 10:19:31,891 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 10:19:31,891 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called 10:19:31,892 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 10:19:31,892 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 10:19:31,892 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 10:19:31,892 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 10:19:31,892 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 10:19:31,892 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 10:19:31,892 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 10:19:31,892 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:31,892 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:31,892 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=0fcd665e-e945-47d8-858e-716f1c6fe528}, logIndex: 0, isSendImmediate: true 10:19:31,892 AM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:31,893 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:31,893 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 10:19:31,893 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:31,893 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server462, votingMember=true] 10:19:31,893 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:31,893 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 10:19:31,893 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:19:31,893 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:31,893 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:31,893 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 10:19:31,893 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 1 10:19:31,893 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=new-server, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:31,893 AM [test-akka.actor.default-dispatcher-9] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:19:31,893 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 10:19:31,893 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:31,894 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:31,894 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:31,894 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 10:19:31,894 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 10:19:31,894 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 10:19:31,894 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:31,894 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupport - leader: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] has been successfully replicated to a majority of followers 10:19:31,894 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 [WARN] [03/15/2024 10:19:31.894] [test-akka.actor.default-dispatcher-9] [akka://test/user/new-server462] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@b700e3f 10:19:31,944 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithPriorSnapshotInProgress ending 10:19:31,944 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower460] 10:19:31,955 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector461#2020779808] 10:19:31,955 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server462] 10:19:31,955 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader463] 10:19:31,956 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector464] 10:19:31,958 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeLeaderToNonVotingInSingleNode starting [WARN] [03/15/2024 10:19:31.959] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader466]: org.opendaylight.controller.cluster.common.actor.Monitor@385b60df 10:19:31,959 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:31,959 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:31,960 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 10:19:31,961 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:31,961 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 10:19:32,69 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 10:19:32,69 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 10:19:32,70 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning INVALID_REQUEST for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 10:19:32,70 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeLeaderToNonVotingInSingleNode ending 10:19:32,70 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower465] 10:19:32,81 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader466] 10:19:32,84 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeLeaderToNonVoting starting [WARN] [03/15/2024 10:19:32.085] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader470]: org.opendaylight.controller.cluster.common.actor.Monitor@ee95fc6 10:19:32,86 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:32,86 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:32,86 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 10:19:32,89 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:32,89 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower2, follower] 10:19:32,90 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:32,90 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:32.090] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower2469] received dead letter from TestActor[akka://test/user/leader470]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [03/15/2024 10:19:32.090] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower468] received dead letter from TestActor[akka://test/user/leader470]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [03/15/2024 10:19:32.191] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower468]: org.opendaylight.controller.cluster.common.actor.Monitor@33a1779a 10:19:32,192 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower with journal batch size 1000 10:19:32,193 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [03/15/2024 10:19:32.202] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower2469] received dead letter from TestActor[akka://test/user/leader470]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 10:19:32,202 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Term 1 in "AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 10:19:32,202 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=1, votedFor=null 10:19:32,203 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:19:32,203 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 10:19:32,203 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:32.204] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower468] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3f82c5de [WARN] [03/15/2024 10:19:32.292] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower2469]: org.opendaylight.controller.cluster.common.actor.Monitor@5df26d0d 10:19:32,293 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower2 with journal batch size 1000 10:19:32,294 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:32,323 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Term 1 in "AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 10:19:32,323 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Set currentTerm=1, votedFor=null 10:19:32,323 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 10:19:32,323 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:19:32,324 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 10:19:32,324 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:32.324] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower468] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7d77071c [WARN] [03/15/2024 10:19:32.325] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower2469] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4a2e9d39 10:19:32,403 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 10:19:32,403 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 10:19:32,403 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Updated server config: isVoting: false, peers: [PeerInfo [id=follower2, address=akka://test/user/follower2469, votingState=VOTING], PeerInfo [id=follower, address=akka://test/user/follower468, votingState=VOTING]] 10:19:32,403 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]] 10:19:32,403 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]] 10:19:32,403 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]] 10:19:32,404 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=36f48686-7cb4-4e47-a475-33a88d68ea19}, logIndex: 0, isSendImmediate: true 10:19:32,404 AM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:32,404 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:32,404 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower2 10:19:32,404 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]]]] 10:19:32,404 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:32,404 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower 10:19:32,404 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]]]] 10:19:32,404 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]]]] 10:19:32,404 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 10:19:32,404 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Number of entries to be appended = 1 10:19:32,404 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:19:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]]]] 10:19:32,405 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]] 10:19:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Number of entries to be appended = 1 10:19:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:19:32,405 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]] 10:19:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]] 10:19:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]] 10:19:32,405 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=akka://test/user/leader470, votingState=NON_VOTING], PeerInfo [id=follower, address=akka://test/user/follower468, votingState=VOTING]] 10:19:32,405 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Log size is now 1 10:19:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=akka://test/user/leader470, votingState=NON_VOTING], PeerInfo [id=follower2, address=akka://test/user/follower2469, votingState=VOTING]] 10:19:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Log size is now 1 10:19:32,405 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower2, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:32,405 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:19:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:19:32,405 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 10:19:32,405 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:32,405 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 10:19:32,405 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:32,406 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]] 10:19:32,406 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]] 10:19:32,406 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 10:19:32,406 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 10:19:32,406 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 10:19:32,406 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]] 10:19:32,407 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]] 10:19:32,407 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupport - leader: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]] has been successfully replicated to a majority of followers 10:19:32,407 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - Leader changed to non-voting - trying leadership transfer [WARN] [03/15/2024 10:19:32.407] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower2469] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@64f3a7ea 10:19:32,407 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Initiating leader transfer 10:19:32,408 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 10:19:32,408 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 10:19:32,409 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorLeadershipTransferCohort - leader: pauseLeader successfully completed - doing transfer 10:19:32,409 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Attempting to transfer leadership 10:19:32,409 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:32,409 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:32,409 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Commit index set to 0 10:19:32,409 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 10:19:32,409 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:19:32,409 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:19:32,409 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Setting last applied to 0 10:19:32,409 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Moving last applied index from -1 to 0 10:19:32,409 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Commit index set to 0 10:19:32,409 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]] 10:19:32,409 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:19:32,409 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:19:32,409 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Setting last applied to 0 10:19:32,409 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Moving last applied index from -1 to 0 10:19:32,409 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Persisting ApplyJournalEntries with index=0 10:19:32,409 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]] 10:19:32,410 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Persisting ApplyJournalEntries with index=0 10:19:32,410 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower2, matchIndex: 0, lastIndex: 0, isVoting: true 10:19:32,410 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Follower's log matches - sending ElectionTimeout 10:19:32,410 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:32,410 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:32,410 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Leader transfer complete 10:19:32,410 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:19:32,410 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader transfer complete - waiting for new leader 10:19:32,410 AM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:32,410 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Received TimeoutNow - switching to Candidate 10:19:32,410 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Candidate): Election: Candidate has following voting peers: [follower] 10:19:32,410 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Set currentTerm=2, votedFor=follower2 10:19:32,410 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Candidate): Starting new election term 2 10:19:32,410 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Candidate): Sending RequestVote [term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1] to peer follower 10:19:32,410 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:19:32,411 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:19:32,411 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:19:32,411 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Cluster state: [] 10:19:32,411 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Candidate in requestVote:RequestVote [term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1] with higher term appears reachable, updating term. 10:19:32,411 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Term 2 in "RequestVote [term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1]" message is greater than follower's term 1 - updating term 10:19:32,411 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=2, votedFor=null 10:19:32,411 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): In requestVote: RequestVote [term=2, candidateId=follower2, lastLogIndex=0, lastLogTerm=1] - currentTerm: 2, votedFor: null, lastIndex: 0, lastTerm: 1 10:19:32,411 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=2, votedFor=follower2 10:19:32,411 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): requestVote returning: RequestVoteReply [term=2, voteGranted=true] 10:19:32,414 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Candidate): RaftRPC message received RequestVoteReply [term=2, voteGranted=true], my term is 2 10:19:32,414 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Candidate): handleRequestVoteReply: RequestVoteReply [term=2, voteGranted=true], current voteCount: 1 10:19:32,414 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Leader): Election: Leader has following peers: [leader, follower] 10:19:32,414 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Leader): Checking sendAppendEntries for follower leader: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:32,415 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:32,415 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 10:19:32,415 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader follower2, need to catch up to -1 10:19:32,415 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Term 2 in "AppendEntries [leaderId=follower2, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than leader's term 1 - switching to Follower 10:19:32,415 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=2, votedFor=null 10:19:32,415 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader) :- Switching from behavior Leader to Follower, election term: 2 10:19:32,416 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 10:19:32,416 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:32.416] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower468] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@40828534 10:19:32,416 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader follower2 and reached 0 (of expected -1) [WARN] [03/15/2024 10:19:32.416] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower468] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3b039186 10:19:32,933 AM [test-akka.actor.default-dispatcher-10] [DEBUG] SyncStatusTracker - leader: Last sync leader does not match current leader follower2, need to catch up to -1 10:19:32,933 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader follower2 and reached 0 (of expected -1) 10:19:32,934 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Leader): handleAppendEntriesReply - FollowerLogInformation for leader updated: matchIndex: 0, nextIndex: 1 10:19:32,934 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader changed to follower2 10:19:32,934 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Leader): Checking sendAppendEntries for follower leader: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:32,934 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorLeadershipTransferCohort - leader: Successfully transferred leadership to follower2 in 526.1 ms 10:19:32,934 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: leader transfer succeeded after change to non-voting 10:19:32,935 AM [test-akka.actor.default-dispatcher-10] [DEBUG] SyncStatusTracker - leader: Lagging 0 entries behind leader follower2 and reached 0 (of expected -1) [WARN] [03/15/2024 10:19:32.934] [test-akka.actor.default-dispatcher-16] [akka://test/user/leader470] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7db1e8ba [WARN] [03/15/2024 10:19:32.935] [test-akka.actor.default-dispatcher-16] [akka://test/user/leader470] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4d70705f 10:19:32,958 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeLeaderToNonVoting ending 10:19:32,959 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower467] 10:19:32,970 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader470] 10:19:32,971 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector471] 10:19:32,971 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector472#1445830552] 10:19:32,972 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower468] 10:19:32,972 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector473#246386801] 10:19:32,972 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower2469] 10:19:33,75 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testOnApplyState starting [WARN] [03/15/2024 10:19:33.076] [test-akka.actor.default-dispatcher-10] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader475]: org.opendaylight.controller.cluster.common.actor.Monitor@1020c36d 10:19:33,77 AM [test-akka.actor.default-dispatcher-7] [INFO] MockRaftActor - Starting recovery for leader with journal batch size 1000 10:19:33,79 AM [test-akka.actor.default-dispatcher-16] [INFO] MockRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:33,176 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testOnApplyState ending 10:19:33,176 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower474] 10:19:33,186 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader475] 10:19:33,289 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServer starting [WARN] [03/15/2024 10:19:33.290] [test-akka.actor.default-dispatcher-10] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader479]: org.opendaylight.controller.cluster.common.actor.Monitor@1906039f 10:19:33,290 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:33,290 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:33,291 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 10:19:33,292 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:33,293 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower2, follower, downNode] 10:19:33,293 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:33,293 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:33.293] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower2478] received dead letter from TestActor[akka://test/user/leader479]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [03/15/2024 10:19:33.293] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower477] received dead letter from TestActor[akka://test/user/leader479]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 10:19:33,293 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:33.294] [test-akka.actor.default-dispatcher-7] [akka://test/] unhandled message from TestActor[akka://test/user/leader479]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [03/15/2024 10:19:33.413] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower2478] received dead letter from TestActor[akka://test/user/leader479]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [03/15/2024 10:19:33.413] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower477] received dead letter from TestActor[akka://test/user/leader479]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [03/15/2024 10:19:33.413] [test-akka.actor.default-dispatcher-17] [akka://test/] unhandled message from TestActor[akka://test/user/leader479]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [03/15/2024 10:19:33.492] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower477]: org.opendaylight.controller.cluster.common.actor.Monitor@4c008f1e 10:19:33,493 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower with journal batch size 1000 10:19:33,496 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [03/15/2024 10:19:33.533] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower2478] received dead letter from TestActor[akka://test/user/leader479]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 10:19:33,533 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Term 1 in "AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 10:19:33,533 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=1, votedFor=null 10:19:33,533 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:19:33,533 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 [WARN] [03/15/2024 10:19:33.533] [test-akka.actor.default-dispatcher-9] [akka://test/] unhandled message from TestActor[akka://test/user/leader479]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 10:19:33,533 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:33.534] [test-akka.actor.default-dispatcher-10] [akka://test/user/follower477] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@17f08eb8 [WARN] [03/15/2024 10:19:33.593] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower2478]: org.opendaylight.controller.cluster.common.actor.Monitor@7a30700c 10:19:33,594 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower2 with journal batch size 1000 10:19:33,596 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:33,607 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 10:19:33,607 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 10:19:33,607 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,607 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,607 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=12c6bf0d-8f75-4fff-b67e-d2e094e89922}, logIndex: 0, isSendImmediate: true 10:19:33,607 AM [test-akka.actor.default-dispatcher-10] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:33,607 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:33,607 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:33,607 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation RemoveServer{serverId='follower'} 10:19:33,608 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Term 1 in "AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 10:19:33,608 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Set currentTerm=1, votedFor=null 10:19:33,608 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [03/15/2024 10:19:33.608] [test-akka.actor.default-dispatcher-10] [akka://test/] unhandled message from TestActor[akka://test/user/leader479]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 10:19:33,608 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 10:19:33,608 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:33,608 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower2 10:19:33,608 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:33,609 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,609 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:33,609 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Number of entries to be appended = 1 10:19:33,609 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:19:33,609 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:33,609 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] [WARN] [03/15/2024 10:19:33.609] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower2478] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@39396384 10:19:33,609 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=akka://test/user/leader479, votingState=VOTING], PeerInfo [id=downNode, address=, votingState=VOTING]] 10:19:33,609 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Log size is now 1 10:19:33,609 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower2, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:33,609 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:19:33,610 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 10:19:33,610 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 10:19:33,610 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 10:19:33,610 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 10:19:33,610 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:33,611 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:33,611 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupport - leader: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] has been successfully replicated to a majority of followers 10:19:33,611 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,611 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 [WARN] [03/15/2024 10:19:33.611] [test-akka.actor.default-dispatcher-10] [akka://test/user/follower477] unhandled message from TestActor[akka://test/user/leader479]: ServerRemoved [serverId=follower] 10:19:33,611 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Commit index set to 0 [WARN] [03/15/2024 10:19:33.611] [test-akka.actor.default-dispatcher-10] [akka://test/user/follower2478] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5eb0672 10:19:33,611 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:19:33,611 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:19:33,611 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Setting last applied to 0 10:19:33,611 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Moving last applied index from -1 to 0 10:19:33,611 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:33,612 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Persisting ApplyJournalEntries with index=0 [WARN] [03/15/2024 10:19:33.653] [test-akka.actor.default-dispatcher-6] [akka://test/] unhandled message from TestActor[akka://test/user/leader479]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] 10:19:33,659 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServer ending 10:19:33,659 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower476] 10:19:33,670 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader479] 10:19:33,670 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector480] 10:19:33,671 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector481#1392391823] 10:19:33,671 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower477] 10:19:33,671 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector482#95013747] 10:19:33,672 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower2478] 10:19:33,675 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoLeader starting [WARN] [03/15/2024 10:19:33.677] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server485]: org.opendaylight.controller.cluster.common.actor.Monitor@16668a6e 10:19:33,678 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 [WARN] [03/15/2024 10:19:33.678] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader486]: org.opendaylight.controller.cluster.common.actor.Monitor@7a462dd 10:19:33,679 AM [test-akka.actor.default-dispatcher-7] [INFO] MockRaftActor - Starting recovery for leader with journal batch size 1000 10:19:33,680 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:33,680 AM [test-akka.actor.default-dispatcher-6] [INFO] MockRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:33,680 AM [test-akka.actor.default-dispatcher-9] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 10:19:33,789 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server485, votingMember=true], state: Idle 10:19:33,789 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: No leader - returning NO_LEADER reply 10:19:33,789 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoLeader ending 10:19:33,790 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower483] 10:19:33,800 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector484#-2126244792] 10:19:33,801 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server485] 10:19:33,801 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader486] 10:19:33,803 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeServersVotingStatus starting 10:19:33,804 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:33,804 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:33,805 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 [WARN] [03/15/2024 10:19:33.805] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader490]: org.opendaylight.controller.cluster.common.actor.Monitor@3b5b3d06 10:19:33,807 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:33,807 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower2, follower] 10:19:33,807 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:33,807 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:33.808] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower2489] received dead letter from TestActor[akka://test/user/leader490]: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]] [WARN] [03/15/2024 10:19:33.808] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower488]: org.opendaylight.controller.cluster.common.actor.Monitor@4a2c04af 10:19:33,809 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower with journal batch size 1000 10:19:33,810 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:33,811 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Term 1 in "AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 10:19:33,811 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=1, votedFor=null 10:19:33,811 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:19:33,811 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 10:19:33,811 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:33.812] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower488] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6e94f1cd [WARN] [03/15/2024 10:19:33.909] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower2489]: org.opendaylight.controller.cluster.common.actor.Monitor@521f765a 10:19:33,910 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower2 with journal batch size 1000 10:19:33,912 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:33,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]], state: Idle 10:19:33,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 10:19:33,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Updated server config: isVoting: true, peers: [PeerInfo [id=follower2, address=akka://test/user/follower2489, votingState=NON_VOTING], PeerInfo [id=follower, address=akka://test/user/follower488, votingState=NON_VOTING]] 10:19:33,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 10:19:33,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,921 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=f3cdf341-0c8d-47b1-822e-1da5ff7649fe}, logIndex: 0, isSendImmediate: true 10:19:33,922 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 10:19:33,922 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 10:19:33,922 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 10:19:33,922 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:33,922 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:33,922 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower 10:19:33,922 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Term 1 in "AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 10:19:33,922 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:33,922 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Set currentTerm=1, votedFor=null 10:19:33,922 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]] 10:19:33,922 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:33,922 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Number of entries to be appended = 1 10:19:33,922 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:19:33,922 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 10:19:33,922 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,922 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 10:19:33,922 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=akka://test/user/leader490, votingState=VOTING], PeerInfo [id=follower2, address=akka://test/user/follower2489, votingState=NON_VOTING]] 10:19:33,922 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Log size is now 1 10:19:33,922 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Commit index set to 0 10:19:33,922 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupport - leader: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] has been successfully replicated to a majority of followers 10:19:33,922 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 10:19:33,923 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower 10:19:33,923 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:33,923 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:19:33,923 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 10:19:33,923 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:19:33,923 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Setting last applied to 0 10:19:33,923 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Moving last applied index from -1 to 0 10:19:33,923 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 10:19:33,923 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:33,923 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower2 10:19:33,923 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:33,923 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 10:19:33,923 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:33,923 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 10:19:33,923 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,923 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,923 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:33,923 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Number of entries to be appended = 1 10:19:33,923 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 10:19:33,924 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 10:19:33,924 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,924 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower2 10:19:33,924 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=akka://test/user/leader490, votingState=VOTING], PeerInfo [id=follower, address=akka://test/user/follower488, votingState=NON_VOTING]] 10:19:33,924 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Log size is now 1 10:19:33,924 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Commit index set to 0 10:19:33,924 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower2, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:33,924 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 10:19:33,924 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 10:19:33,924 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Setting last applied to 0 10:19:33,924 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Moving last applied index from -1 to 0 10:19:33,924 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] [WARN] [03/15/2024 10:19:33.924] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower2489] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@53ba214e 10:19:33,924 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Persisting ApplyJournalEntries with index=0 10:19:33,924 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 10:19:33,924 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:33.924] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower488] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1127a773 10:19:33,924 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,924 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Persisting ApplyJournalEntries with index=0 [WARN] [03/15/2024 10:19:33.924] [test-akka.actor.default-dispatcher-9] [akka://test/user/follower2489] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1da9487c 10:19:33,973 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]], state: Idle 10:19:33,974 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 10:19:33,974 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Updated server config: isVoting: true, peers: [PeerInfo [id=follower2, address=akka://test/user/follower2489, votingState=NON_VOTING], PeerInfo [id=follower, address=akka://test/user/follower488, votingState=VOTING]] 10:19:33,974 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 10:19:33,974 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,974 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,974 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=7942d416-1ec1-460c-ba3a-4dfbd1c9b991}, logIndex: 1, isSendImmediate: true 10:19:33,974 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 1 10:19:33,974 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from 0 to 1 10:19:33,974 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:33,975 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:33,975 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 1 is present for follower follower2 10:19:33,975 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower follower2: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:33,975 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:33,975 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 1 is present for follower follower 10:19:33,975 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:33,975 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]] 10:19:33,975 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:33,975 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Number of entries to be appended = 1 10:19:33,975 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:19:33,975 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:33,975 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,975 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:33,975 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupport - leader: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] has been successfully replicated to a majority of followers 10:19:33,975 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=akka://test/user/leader490, votingState=VOTING], PeerInfo [id=follower, address=akka://test/user/follower488, votingState=VOTING]] 10:19:33,975 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Number of entries to be appended = 1 10:19:33,975 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Log size is now 2 10:19:33,975 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:19:33,975 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Commit index set to 1 10:19:33,975 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:33,975 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,975 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower2, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:33,975 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=1 10:19:33,976 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=akka://test/user/leader490, votingState=VOTING], PeerInfo [id=follower2, address=akka://test/user/follower2489, votingState=NON_VOTING]] 10:19:33,976 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 10:19:33,976 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Log size is now 2 10:19:33,976 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Commit index set to 1 10:19:33,976 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:19:33,976 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower, logLastIndex=1, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:33,976 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Setting last applied to 1 10:19:33,976 AM [test-akka.actor.default-dispatcher-9] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 10:19:33,976 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Moving last applied index from 0 to 1 10:19:33,976 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:19:33,976 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Setting last applied to 1 10:19:33,976 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Moving last applied index from 0 to 1 10:19:33,976 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:33,976 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:33,976 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 1, nextIndex: 2 10:19:33,976 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: fakeSnapshot purging log to 0 for term 1 10:19:33,976 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 10:19:33,976 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 10:19:33,976 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 10:19:33,976 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,976 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,977 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:33,977 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Persisting ApplyJournalEntries with index=1 10:19:33,977 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Persisting ApplyJournalEntries with index=1 10:19:34,27 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeServersVotingStatus ending 10:19:34,27 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower487] 10:19:34,38 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader490] 10:19:34,39 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector491] 10:19:34,39 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector492#-525928887] 10:19:34,39 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower488] 10:19:34,40 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector493#1240243201] 10:19:34,40 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower2489] 10:19:34,142 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithExistingFollower starting [WARN] [03/15/2024 10:19:34.144] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server496]: org.opendaylight.controller.cluster.common.actor.Monitor@41e8d5c2 10:19:34,145 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 10:19:34,145 AM [main] [DEBUG] RaftActorServerConfigurationSupportTest - follower: Set currentTerm=1, votedFor=leader 10:19:34,145 AM [main] [DEBUG] RaftActorServerConfigurationSupportTest - follower: Moving last applied index from -1 to 2 [WARN] [03/15/2024 10:19:34.147] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader497]: org.opendaylight.controller.cluster.common.actor.Monitor@606ed2f1 10:19:34,147 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 2 10:19:34,147 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor=leader 10:19:34,147 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:34,147 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 10:19:34,148 AM [test-akka.actor.default-dispatcher-15] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 10:19:34,150 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = 2, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 3 10:19:34,151 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower] 10:19:34,151 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 10:19:34,151 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 10:19:34,152 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 10:19:34,152 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: fakeSnapshot purging log to 1 for term 1 10:19:34,152 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 10:19:34,152 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 10:19:34,152 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest - follower: fakeSnapshot purging log to 1 for term 1 10:19:34,257 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server496, votingMember=true], state: Idle 10:19:34,257 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server496, votingMember=true] 10:19:34,258 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=2, lastAppliedTerm=1, lastIndex=2, lastTerm=1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=false] to install on new-server 10:19:34,258 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 10:19:34,258 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 10:19:34,258 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 10:19:34,258 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting of snapshot done: Snapshot [lastIndex=2, lastTerm=1, lastAppliedIndex=2, lastAppliedTerm=1, unAppliedEntries size=0, state=MockSnapshotState [state=[0, 1, 2]], electionTerm=1, electionVotedFor=leader, ServerConfigPayload=null] 10:19:34,258 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 10:19:34,258 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 10:19:34,258 AM [test-akka.actor.default-dispatcher-9] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 338 bytes, total chunks to send: 1 10:19:34,258 AM [test-akka.actor.default-dispatcher-9] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=338, offset=0, size=338, hashCode=1701166743 10:19:34,258 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 338 10:19:34,259 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server496), Chunk: 1/1 10:19:34,259 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 10:19:34,259 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Term 1 in "InstallSnapshot [term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=338, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null]" message is greater than follower's term 0 - updating term 10:19:34,259 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 10:19:34,259 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 10:19:34,259 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot: InstallSnapshot [term=1, leaderId=leader, lastIncludedIndex=2, lastIncludedTerm=1, datasize=338, Chunk=1/1, lastChunkHashCode=OptionalInt[-1], serverConfig=null] 10:19:34,259 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to 2 10:19:34,259 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 10:19:34,259 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 10:19:34,261 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying snapshot on follower: Snapshot [lastIndex=2, lastTerm=1, lastAppliedIndex=2, lastAppliedTerm=1, unAppliedEntries size=0, state=MockSnapshotState [state=[0, 1, 2]], electionTerm=1, electionVotedFor=null, ServerConfigPayload=null] 10:19:34,261 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 10:19:34,261 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 10:19:34,261 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to 2 10:19:34,261 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null [WARN] [03/15/2024 10:19:34.261] [test-akka.actor.default-dispatcher-7] [akka://test/user/new-server496] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@397d7d3e 10:19:34,261 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called 10:19:34,261 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 10:19:34,261 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 10:19:34,261 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 10:19:34,261 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to 2, nextIndex set to 3 10:19:34,261 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 10:19:34,262 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 10:19:34,262 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 10:19:34,262 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=3, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:34,262 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:34,262 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=51bb4ed9-6c9a-4b6d-9ff2-a1da641728ad}, logIndex: 3, isSendImmediate: true 10:19:34,262 AM [test-akka.actor.default-dispatcher-7] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:34,262 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 10:19:34,262 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 3 is present for follower follower 10:19:34,262 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower follower: AppendEntries [leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:34,263 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 10:19:34,263 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 3 is present for follower new-server 10:19:34,263 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Sending AppendEntries to follower new-server: AppendEntries [leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:34,263 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:34,263 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server496, votingMember=true] 10:19:34,263 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): Number of entries to be appended = 1 10:19:34,263 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 10:19:34,263 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:34,263 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries: AppendEntries [leaderId=leader, prevLogIndex=2, prevLogTerm=1, leaderCommit=2, replicatedToAllIndex=1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=3, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]]]] 10:19:34,263 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=, votingState=VOTING], PeerInfo [id=new-server, address=null, votingState=VOTING]] 10:19:34,263 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 10:19:34,263 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): Log size is now 2 10:19:34,263 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 10:19:34,263 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=follower, logLastIndex=3, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=0, raftVersion=5, recipientRaftVersion=5] 10:19:34,263 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:34,263 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 3 is present for follower follower 10:19:34,263 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 10:19:34,263 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Append log entry and persist SimpleReplicatedLogEntry [index=3, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:34,263 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 3, nextIndex: 4 10:19:34,263 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 10:19:34,263 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING], PeerInfo [id=follower, address=null, votingState=VOTING]] 10:19:34,263 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 1 10:19:34,263 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleAppendEntries returning : AppendEntriesReply [term=1, success=true, followerId=new-server, logLastIndex=3, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:34,263 AM [test-akka.actor.default-dispatcher-9] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 2) 10:19:34,263 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 3, nextIndex: 4 10:19:34,264 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 10:19:34,264 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] 10:19:34,264 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 10:19:34,264 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 3 10:19:34,264 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from 2 to 3 10:19:34,264 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 3 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:34,264 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: fakeSnapshot purging log to 2 for term 1 10:19:34,264 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupport - leader: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] has been successfully replicated to a majority of followers 10:19:34,264 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=3 10:19:34,265 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: persist complete SimpleReplicatedLogEntry [index=3, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] [WARN] [03/15/2024 10:19:34.265] [test-akka.actor.default-dispatcher-9] [akka://test/user/new-server496] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4fd0eb07 10:19:34,382 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): Commit index set to 3 10:19:34,383 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 3 (of expected -1) 10:19:34,383 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 3 10:19:34,383 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 10:19:34,383 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): Setting last applied to 3 10:19:34,383 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest - follower: Moving last applied index from 2 to 3 10:19:34,383 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 10:19:34,383 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 10:19:34,383 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 3 10:19:34,383 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from 2 to 3 10:19:34,383 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest - follower: fakeSnapshot purging log to 2 for term 1 10:19:34,383 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Applying state for log index 3 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 10:19:34,383 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=3 10:19:34,411 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithExistingFollower ending 10:19:34,411 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower494] 10:19:34,422 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector495#-2082828634] 10:19:34,423 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server496] 10:19:34,423 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader497] 10:19:34,423 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector498] 10:19:34,425 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerForwardedToLeader starting [WARN] [03/15/2024 10:19:34.427] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server501]: org.opendaylight.controller.cluster.common.actor.Monitor@446b244c 10:19:34,428 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 10:19:34,430 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 [WARN] [03/15/2024 10:19:34.430] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower503]: org.opendaylight.controller.cluster.common.actor.Monitor@a75c9ab 10:19:34,430 AM [test-akka.actor.default-dispatcher-9] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 10:19:34,430 AM [test-akka.actor.default-dispatcher-17] [INFO] MockRaftActor - Starting recovery for follower with journal batch size 1000 10:19:34,433 AM [test-akka.actor.default-dispatcher-9] [INFO] MockRaftActor - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:34,530 AM [test-akka.actor.default-dispatcher-17] [INFO] MockRaftActor - follower (Follower): Term 1 in "AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 10:19:34,530 AM [test-akka.actor.default-dispatcher-17] [DEBUG] MockRaftActor - follower: Set currentTerm=1, votedFor=null 10:19:34,531 AM [test-akka.actor.default-dispatcher-17] [INFO] MockRaftActor - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 10:19:34,531 AM [test-akka.actor.default-dispatcher-17] [INFO] MockRaftActor - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=1, success=false, followerId=follower, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:34,531 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [03/15/2024 10:19:34.532] [test-akka.actor.default-dispatcher-9] [akka://test/user/follower503] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@772f50da 10:19:34,541 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - follower: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server501, votingMember=true], state: Idle 10:19:34,541 AM [test-akka.actor.default-dispatcher-9] [DEBUG] MockRaftActor - follower: getLeaderAddress leaderId = leader peerAddress = akka://test/user/leader502 10:19:34,541 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(akka://test/), Path(/user/leader502)] 10:19:34,591 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerForwardedToLeader ending 10:19:34,591 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower499] 10:19:34,602 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector500#719735430] 10:19:34,603 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server501] 10:19:34,606 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader502#-1464821181] 10:19:34,606 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower503] 10:19:34,612 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerForwardToLeader starting [WARN] [03/15/2024 10:19:34.614] [test-akka.actor.default-dispatcher-9] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower506]: org.opendaylight.controller.cluster.common.actor.Monitor@35379da 10:19:34,615 AM [test-akka.actor.default-dispatcher-17] [INFO] MockRaftActor - Starting recovery for follower with journal batch size 1000 10:19:34,616 AM [test-akka.actor.default-dispatcher-9] [INFO] MockRaftActor - follower: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:34,617 AM [test-akka.actor.default-dispatcher-9] [INFO] MockRaftActor - follower (Follower): Term 1 in "AppendEntries [leaderId=leader, prevLogIndex=0, prevLogTerm=1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=0, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 10:19:34,617 AM [test-akka.actor.default-dispatcher-9] [DEBUG] MockRaftActor - follower: Set currentTerm=1, votedFor=null 10:19:34,617 AM [test-akka.actor.default-dispatcher-9] [INFO] MockRaftActor - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 10:19:34,617 AM [test-akka.actor.default-dispatcher-9] [INFO] MockRaftActor - follower (Follower): Follower is out-of-sync so sending negative reply: AppendEntriesReply [term=1, success=false, followerId=follower, logLastIndex=-1, logLastTerm=-1, forceInstallSnapshot=false, needsLeaderAddress=false, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:34,617 AM [test-akka.actor.default-dispatcher-9] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [03/15/2024 10:19:34.618] [test-akka.actor.default-dispatcher-9] [akka://test/user/follower506] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@11c19f6d 10:19:34,627 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - follower: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 10:19:34,627 AM [test-akka.actor.default-dispatcher-9] [DEBUG] MockRaftActor - follower: getLeaderAddress leaderId = leader peerAddress = akka://test/user/leader505 10:19:34,627 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(akka://test/), Path(/user/leader505)] 10:19:34,677 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerForwardToLeader ending 10:19:34,677 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower504] 10:19:34,688 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader505] 10:19:34,689 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower506] 10:19:34,690 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithExistingServer starting [WARN] [03/15/2024 10:19:34.691] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader508]: org.opendaylight.controller.cluster.common.actor.Monitor@936c7e3 10:19:34,692 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:34,692 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:34,692 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 10:19:34,694 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:34,694 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower] 10:19:34,694 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 10:19:34,703 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=follower, newServerAddress=akka://test/user/follower507, votingMember=true], state: Idle 10:19:34,703 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=follower, newServerAddress=akka://test/user/follower507, votingMember=true] 10:19:34,703 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning ALREADY_EXISTS for operation AddServer [newServerId=follower, newServerAddress=akka://test/user/follower507, votingMember=true] 10:19:34,703 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithExistingServer ending 10:19:34,703 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower507] 10:19:34,717 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader508] 10:19:34,720 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout starting [WARN] [03/15/2024 10:19:34.722] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@39ea752a 10:19:34,723 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node1 with journal batch size 1000 [WARN] [03/15/2024 10:19:34.724] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@1b1948de 10:19:34,724 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node2 with journal batch size 1000 10:19:34,726 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=1, votedFor=node1 10:19:34,726 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 10:19:34,726 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 10:19:34,726 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 10:19:34,727 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=1, votedFor=node1 10:19:34,727 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 10:19:34,727 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 10:19:34,727 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Recovery completed - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 10:19:34,735 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]], state: Idle 10:19:34,735 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 10:19:34,735 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node1: Sending local ElectionTimeout to start leader election 10:19:34,735 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 10:19:34,735 AM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:34,735 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Received TimeoutNow - switching to Candidate 10:19:34,735 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Election: Candidate has following voting peers: [node2] 10:19:34,735 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=2, votedFor=node1 10:19:34,735 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Starting new election term 2 10:19:34,736 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Sending RequestVote [term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1] to peer node2 10:19:34,736 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:19:34,852 AM [test-akka.actor.default-dispatcher-9] [WARN] RaftActorServerConfigurationSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 10:19:34,853 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=akka://test/user/node2, votingState=VOTING]] 10:19:34,853 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 10:19:34,853 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 10:19:34,853 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout ending 10:19:34,854 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower509] 10:19:34,865 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector510#1551238764] 10:19:34,865 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node1] 10:19:34,865 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector511#-1778858222] 10:19:34,865 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node2] 10:19:34,868 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeader starting [WARN] [03/15/2024 10:19:34.873] [test-akka.actor.default-dispatcher-9] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@d8b7144 10:19:34,873 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node1 with journal batch size 1000 10:19:34,876 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=1, votedFor=downNode1 10:19:34,876 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 163 10:19:34,877 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode2, address=null, votingState=VOTING], PeerInfo [id=downNode1, address=null, votingState=VOTING]] 10:19:34,877 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Received apply journal entries for recovery, applying to state: 0 to 0 10:19:34,877 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from -1 to 0 10:19:34,877 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Recovery completed in 50.29 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 10:19:34,877 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node2 with journal batch size 1000 [WARN] [03/15/2024 10:19:34.877] [test-akka.actor.default-dispatcher-16] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@5af68f00 10:19:34,881 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=1, votedFor=downNode2 10:19:34,881 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 163 10:19:34,881 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: false, peers: [PeerInfo [id=downNode2, address=null, votingState=VOTING], PeerInfo [id=downNode1, address=null, votingState=VOTING], PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 10:19:34,881 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received apply journal entries for recovery, applying to state: 0 to 0 10:19:34,881 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from -1 to 0 10:19:34,882 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Recovery completed in 77.88 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 10:19:34,987 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 10:19:34,987 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 10:19:34,987 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - node1: Sending local ElectionTimeout to start leader election 10:19:34,988 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING], PeerInfo [id=downNode2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode1, address=null, votingState=NON_VOTING]] 10:19:34,988 AM [test-akka.actor.default-dispatcher-10] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 10:19:34,988 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Received TimeoutNow - switching to Candidate 10:19:34,988 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Election: Candidate has following voting peers: [node2] 10:19:34,988 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=2, votedFor=node1 10:19:34,988 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Starting new election term 2 10:19:34,988 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 10:19:35,503 AM [test-akka.actor.default-dispatcher-10] [WARN] RaftActorServerConfigurationSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 10:19:35,503 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode2, address=null, votingState=VOTING], PeerInfo [id=downNode1, address=null, votingState=VOTING]] 10:19:35,503 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 10:19:35,503 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 10:19:35,504 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader downNode1, need to catch up to 0 [WARN] [03/15/2024 10:19:35.504] [test-akka.actor.default-dispatcher-10] [akka://test/deadLetters] received dead letter from TestActor[akka://test/user/node1]: AppendEntriesReply [term=2, success=true, followerId=node1, logLastIndex=0, logLastTerm=1, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] [WARN] [03/15/2024 10:19:35.504] [test-akka.actor.default-dispatcher-10] [akka://test/user/node1] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@344050a7 10:19:36,61 AM [main] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Peer address for peer node2 set to akka://test/user/node2 10:19:36,61 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 10:19:36,61 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 10:19:36,61 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - node1: Sending local ElectionTimeout to start leader election 10:19:36,62 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=akka://test/user/node2, votingState=VOTING], PeerInfo [id=downNode2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode1, address=null, votingState=NON_VOTING]] 10:19:36,62 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Received TimeoutNow - switching to Candidate 10:19:36,62 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Election: Candidate has following voting peers: [node2] 10:19:36,62 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=3, votedFor=node1 10:19:36,62 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Starting new election term 3 10:19:36,62 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Sending RequestVote [term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1] to peer node2 10:19:36,62 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 10:19:36,62 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 10:19:36,62 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Cluster state: [] 10:19:36,62 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1] with higher term appears reachable, updating term. 10:19:36,62 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Term 3 in "RequestVote [term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1]" message is greater than follower's term 1 - updating term 10:19:36,62 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=3, votedFor=null 10:19:36,63 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): In requestVote: RequestVote [term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1] - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 10:19:36,63 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=3, votedFor=node1 10:19:36,63 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 10:19:36,64 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 10:19:36,64 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 10:19:36,64 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Election: Leader has following peers: [node2, downNode2, downNode1] 10:19:36,64 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 10:19:36,64 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 10:19:36,64 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - node2: Last sync leader does not match current leader node1, need to catch up to -1 10:19:36,64 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - node1: New leader node1 elected 10:19:36,64 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - node1: New server configuration : [ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]] 10:19:36,64 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Persist data SimpleReplicatedLogEntry [index=1, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]]] 10:19:36,64 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]]] [WARN] [03/15/2024 10:19:36.064] [test-akka.actor.default-dispatcher-17] [akka://test/user/node2] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@226a32b9 10:19:36,65 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=b265863f-b445-41be-813a-cee0033c4eda}, logIndex: 1, isSendImmediate: true 10:19:36,65 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:36,65 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupport - node1: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 10:19:36,65 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - node2: Lagging -1 entries behind leader node1 and reached 0 (of expected -1) 10:19:36,65 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 0, nextIndex: 1 10:19:36,65 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:36,65 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): sendAppendEntries: 1 is present for follower node2 [WARN] [03/15/2024 10:19:36.065] [test-akka.actor.default-dispatcher-7] [akka://test/user/node2] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3f6f2167 10:19:36,65 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Sending AppendEntries to follower node2: AppendEntries [leaderId=node1, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]]]]] 10:19:36,65 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): handleAppendEntries: AppendEntries [leaderId=node1, prevLogIndex=0, prevLogTerm=1, leaderCommit=0, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=5, leaderRaftVersion=5, leaderAddress=null, entries=[SimpleReplicatedLogEntry [index=1, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]]]]] 10:19:36,65 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): sendAppendEntries: 1 is present for follower node2 10:19:36,65 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Number of entries to be appended = 1 10:19:36,65 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 10:19:36,66 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]] 10:19:36,66 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]]] 10:19:36,66 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]]] 10:19:36,66 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=downNode2, address=null, votingState=NON_VOTING], PeerInfo [id=downNode1, address=null, votingState=NON_VOTING], PeerInfo [id=node1, address=null, votingState=VOTING]] 10:19:36,66 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Log size is now 2 10:19:36,66 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): handleAppendEntries returning : AppendEntriesReply [term=3, success=true, followerId=node2, logLastIndex=1, logLastTerm=3, forceInstallSnapshot=false, needsLeaderAddress=true, payloadVersion=5, raftVersion=5, recipientRaftVersion=5] 10:19:36,66 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 0 (of expected -1) 10:19:36,66 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 1, nextIndex: 2 10:19:36,66 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 10:19:36,66 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Setting last applied to 1 10:19:36,66 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from 0 to 1 10:19:36,66 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]] 10:19:36,66 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 10:19:36,66 AM [test-akka.actor.default-dispatcher-10] [INFO] RaftActorServerConfigurationSupport - node1: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]] has been successfully replicated to a majority of followers 10:19:36,66 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Persisting ApplyJournalEntries with index=1 10:19:36,67 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: persist complete SimpleReplicatedLogEntry [index=1, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]]] 10:19:36,67 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Commit index set to 1 10:19:36,67 AM [test-akka.actor.default-dispatcher-10] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 10:19:36,67 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 10:19:36,67 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Setting last applied to 1 10:19:36,67 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from 0 to 1 10:19:36,67 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node2, isVoting=true], ServerInfo[peerId=downNode2, isVoting=false], ServerInfo[peerId=downNode1, isVoting=false], ServerInfo[peerId=node1, isVoting=true]]] 10:19:36,67 AM [test-akka.actor.default-dispatcher-10] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Persisting ApplyJournalEntries with index=1 10:19:36,117 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeader ending 10:19:36,117 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower512] 10:19:36,128 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector513#-28184639] 10:19:36,129 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node1] 10:19:36,129 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector514#-577428157] 10:19:36,129 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node2] 10:19:36,232 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithPriorSnapshotCompleteTimeout starting [WARN] [03/15/2024 10:19:36.234] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server517]: org.opendaylight.controller.cluster.common.actor.Monitor@223b3b82 10:19:36,235 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 10:19:36,246 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:36,246 AM [test-akka.actor.default-dispatcher-9] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [03/15/2024 10:19:36.335] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader518]: org.opendaylight.controller.cluster.common.actor.Monitor@628cbb15 10:19:36,335 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 10:19:36,335 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 10:19:36,335 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 10:19:36,337 AM [test-akka.actor.default-dispatcher-9] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Recovery completed - Switching actor to Follower - last log index = -1, last log term = -1, snapshot index = -1, snapshot term = -1, journal size = 0 10:19:36,337 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 10:19:36,435 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 10:19:36,435 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 10:19:36,435 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Initiating snapshot capture CaptureSnapshot [lastAppliedIndex=-1, lastAppliedTerm=-1, lastIndex=-1, lastTerm=-1, installSnapshotInitiated=, replicatedToAllIndex=-1, replicatedToAllTerm=-1, unAppliedEntries size=0, mandatoryTrim=true] 10:19:36,435 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 10:19:36,435 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 10:19:36,435 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting of snapshot done: Snapshot [lastIndex=-1, lastTerm=-1, lastAppliedIndex=-1, lastAppliedTerm=-1, unAppliedEntries size=0, state=MockSnapshotState [state=[]], electionTerm=1, electionVotedFor=, ServerConfigPayload=null] 10:19:36,435 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 10:19:36,435 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 10:19:36,445 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server517, votingMember=true], state: Idle 10:19:36,445 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server517, votingMember=true] 10:19:36,445 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - captureToInstall should not be called in state Persisting 10:19:36,445 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Snapshot already in progress - waiting for completion 10:19:36,563 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Term 1 in "AppendEntries [leaderId=leader, prevLogIndex=-1, prevLogTerm=-1, leaderCommit=-1, replicatedToAllIndex=-1, payloadVersion=5, recipientRaftVersion=4, leaderRaftVersion=5, leaderAddress=null, entries=[]]" message is greater than follower's term 0 - updating term 10:19:36,563 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 10:19:36,563 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 10:19:36,563 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 10:19:36,563 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/15/2024 10:19:36.564] [test-akka.actor.default-dispatcher-9] [akka://test/user/new-server517] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@f013c29 10:19:36,662 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: handleInstallSnapshotTimeout for new server new-server 10:19:36,662 AM [test-akka.actor.default-dispatcher-9] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server517, votingMember=true] 10:19:36,662 AM [test-akka.actor.default-dispatcher-9] [WARN] RaftActorServerConfigurationSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 10:19:36,662 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithPriorSnapshotCompleteTimeout ending 10:19:36,662 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower515] 10:19:36,673 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector516#-278824848] 10:19:36,674 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server517] 10:19:36,674 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader518] [INFO] [03/15/2024 10:19:36.675] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 10:19:36,675 AM [test-akka.actor.default-dispatcher-7] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/15/2024 10:19:36.677] [test-akka.actor.default-dispatcher-7] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.171.50:25520) [INFO] [03/15/2024 10:19:36.678] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Exiting completed 10:19:36,680 AM [test-akka.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Exiting completed [INFO] [03/15/2024 10:19:36.678] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Shutting down... 10:19:36,681 AM [test-akka.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Shutting down... [INFO] [03/15/2024 10:19:36.678] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.171.50:25520] - Successfully shut down 10:19:36,681 AM [test-akka.actor.default-dispatcher-9] [INFO] Cluster - Cluster Node [akka://test@10.30.171.50:25520] - Successfully shut down [INFO] [03/15/2024 10:19:36.681] [test-akka.remote.default-remote-dispatcher-11] [akka://test@10.30.171.50:25520/system/remoting-terminator] Shutting down remote daemon. [INFO] [03/15/2024 10:19:36.681] [test-akka.remote.default-remote-dispatcher-11] [akka://test@10.30.171.50:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. 10:19:36,683 AM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 10:19:36,683 AM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/15/2024 10:19:36.684] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.171.50:25520/system/remoting-terminator] Remoting shut down. 10:19:36,684 AM [test-akka.actor.default-dispatcher-7] [INFO] RemoteActorRefProvider$RemotingTerminator - Remoting shut down. [DEBUG] [03/15/2024 10:19:36.684] [test-akka.actor.internal-dispatcher-3] [EventStream] shutting down: StandardOutLogger