[DEBUG] [03/25/2024 08:38:21.474] [main] [EventStream(akka://test)] logger log1-TestEventListener started 08:38:21,481 AM [test-akka.actor.default-dispatcher-6] [INFO] Slf4jLogger - Slf4jLogger started [DEBUG] [03/25/2024 08:38:21.482] [main] [EventStream(akka://test)] logger log2-Slf4jLogger started [DEBUG] [03/25/2024 08:38:21.482] [main] [EventStream(akka://test)] Default Loggers started 08:38:21,498 AM [test-akka.actor.default-dispatcher-6] [INFO] ArteryTransport - Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.141:25520] with UID [5172851767978989228] [INFO] [03/25/2024 08:38:21.497] [main] [ArteryTransport(akka://test)] Remoting started with transport [Artery tcp]; listening on address [akka://test@10.30.170.141:25520] with UID [5172851767978989228] 08:38:21,498 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - Starting up, Akka version [2.6.21] ... [INFO] [03/25/2024 08:38:21.498] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - Starting up, Akka version [2.6.21] ... 08:38:21,502 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - Registered cluster JMX MBean [akka:type=Cluster] 08:38:21,502 AM [test-akka.actor.default-dispatcher-6] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - Started up successfully [INFO] [03/25/2024 08:38:21.501] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - Registered cluster JMX MBean [akka:type=Cluster] [INFO] [03/25/2024 08:38:21.501] [main] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - Started up successfully [INFO] [03/25/2024 08:38:21.503] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing [INFO] [03/25/2024 08:38:21.503] [test-akka.actor.internal-dispatcher-3] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 08:38:21,509 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - No downing-provider-class configured, manual cluster downing required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#downing 08:38:21,509 AM [test-akka.actor.default-dispatcher-11] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - No seed-nodes configured, manual cluster join required, see https://doc.akka.io/docs/akka/current/typed/cluster.html#joining 08:38:21,613 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithOperationInProgress starting [WARN] [03/25/2024 08:38:21.618] [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@2cd68474 [INFO] [akkaDeadLetter][03/25/2024 08:38:21.619] [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'. 08:38:21,621 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'. 08:38:21,622 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 08:38:21,625 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:21,625 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= [WARN] [03/25/2024 08:38:21.625] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader411]: org.opendaylight.controller.cluster.common.actor.Monitor@1d308922 [INFO] [akkaDeadLetter][03/25/2024 08:38:21.625] [test-akka.actor.default-dispatcher-11] [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'. 08:38:21,625 AM [test-akka.actor.default-dispatcher-7] [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'. 08:38:21,626 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:21,629 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 08:38:21,629 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 08:38:21,629 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 08:38:21,630 AM [test-akka.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 08:38:21,731 AM [main] [DEBUG] RaftActorServerConfigurationSupportTest - new-server2: Set currentTerm=1, votedFor=leader 08:38:21,746 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server410, votingMember=true], state: Idle 08:38:21,756 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server410, votingMember=true] 08:38:21,756 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:38:21,756 AM [test-akka.actor.default-dispatcher-6] [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 08:38:21,756 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 08:38:21,758 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 08:38:21,758 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 08:38:21,758 AM [test-akka.actor.default-dispatcher-6] [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] 08:38:21,758 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:38:21,758 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 08:38:21,758 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 171 bytes, total chunks to send: 1 08:38:21,758 AM [test-akka.actor.default-dispatcher-6] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 08:38:21,758 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 171 08:38:21,758 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server410), Chunk: 1/1 08:38:21,758 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 08:38:21,759 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 08:38:21,805 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower408, votingMember=false], state: InstallingSnapshot 08:38:21,805 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower408, votingMember=false] 08:38:21,806 AM [test-akka.actor.default-dispatcher-16] [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 08:38:21,806 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 08:38:21,806 AM [test-akka.actor.default-dispatcher-16] [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] 08:38:21,806 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 08:38:21,806 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:38:21,806 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 08:38:21,809 AM [test-akka.actor.default-dispatcher-16] [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] 08:38:21,809 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 [WARN] [03/25/2024 08:38:21.809] [test-akka.actor.default-dispatcher-12] [akka://test/user/new-server410] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1afa6e88 08:38:21,809 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 [INFO] [akkaDeadLetter][03/25/2024 08:38:21.809] [test-akka.actor.default-dispatcher-6] [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'. 08:38:21,809 AM [test-akka.actor.default-dispatcher-6] [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'. 08:38:21,809 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to -1 08:38:21,809 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 08:38:21,809 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called 08:38:21,809 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 08:38:21,810 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 08:38:21,810 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 08:38:21,810 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 08:38:21,810 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 08:38:21,811 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:38:21,813 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:38:21,813 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]]]] 08:38:21,813 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]]]] 08:38:21,814 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=7fbc7f2b-e8e8-41e6-a90c-ea3f6d3cf614}, logIndex: 0, isSendImmediate: true 08:38:21,814 AM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:38:21,814 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 08:38:21,814 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:38:21,814 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]]]]]] 08:38:21,816 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server410, votingMember=true] 08:38:21,817 AM [test-akka.actor.default-dispatcher-15] [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]]]]]] 08:38:21,817 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 08:38:21,817 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:38:21,817 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 08:38:21,817 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=true], ServerInfo[peerId=leader, isVoting=true]]]] 08:38:21,817 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:38:21,817 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 1 08:38:21,817 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] 08:38:21,817 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:38:21,818 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 08:38:21,818 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:21,818 AM [test-akka.actor.default-dispatcher-12] [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]]]] 08:38:21,818 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:38:21,818 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 08:38:21,818 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 08:38:21,818 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 08:38:21,819 AM [test-akka.actor.default-dispatcher-12] [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 08:38:21,819 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower408, votingMember=false] 08:38:21,819 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: New follower is non-voting - directly persisting new server configuration 08:38:21,819 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 08:38:21,819 AM [test-akka.actor.default-dispatcher-12] [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]]]] 08:38:21,819 AM [test-akka.actor.default-dispatcher-12] [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]]]] 08:38:21,819 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=9f787a92-8752-4b83-9d17-a1c37e3aaa35}, logIndex: 1, isSendImmediate: true 08:38:21,819 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:38:21,819 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 1 is present for follower new-server 08:38:21,819 AM [test-akka.actor.default-dispatcher-12] [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]]]]]] 08:38:21,819 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:38:21,819 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower408, votingMember=false] 08:38:21,820 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 [ERROR] [03/25/2024 08:38:21.820] [test-akka.actor.internal-dispatcher-4] [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) 08:38:21,820 AM [test-akka.actor.default-dispatcher-7] [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) 08:38:21,821 AM [test-akka.actor.default-dispatcher-17] [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]]]] 08:38:21,822 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]]]]]] 08:38:21,822 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 08:38:21,822 AM [test-akka.actor.default-dispatcher-12] [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]]]] 08:38:21,822 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:38:21,822 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]]] [WARN] [03/25/2024 08:38:21.822] [test-akka.actor.default-dispatcher-12] [akka://test/user/new-server410] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@69d5cd49 08:38:21,822 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]]]] 08:38:21,822 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]] 08:38:21,822 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 2 08:38:21,822 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 0 08:38:21,822 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] [INFO] [akkaDeadLetter][03/25/2024 08:38:21.822] [test-akka.actor.default-dispatcher-11] [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'. 08:38:21,822 AM [test-akka.actor.default-dispatcher-11] [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'. 08:38:21,822 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 08:38:21,822 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 08:38:21,822 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 1 08:38:21,822 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from 0 to 1 08:38:21,823 AM [test-akka.actor.default-dispatcher-11] [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]]] 08:38:21,823 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:38:21,823 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:38:21,823 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 1 08:38:21,823 AM [test-akka.actor.default-dispatcher-11] [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 08:38:21,823 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 0 08:38:21,823 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to 0 08:38:21,823 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=1 08:38:21,823 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]]] 08:38:21,830 AM [test-akka.actor.default-dispatcher-12] [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]]]] 08:38:21,830 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 1 08:38:21,830 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:38:21,830 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:38:21,830 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 1 08:38:21,830 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from 0 to 1 08:38:21,830 AM [test-akka.actor.default-dispatcher-12] [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]]] 08:38:21,831 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=0 08:38:21,831 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=1 08:38:21,875 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithOperationInProgress ending 08:38:21,875 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower408] 08:38:21,886 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector409#1226581654] 08:38:21,887 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server410] 08:38:21,887 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader411] 08:38:21,887 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector412] 08:38:21,890 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerNonExistentServer starting [WARN] [03/25/2024 08:38:21.892] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader414]: org.opendaylight.controller.cluster.common.actor.Monitor@4586ef16 [INFO] [akkaDeadLetter][03/25/2024 08:38:21.892] [test-akka.actor.default-dispatcher-18] [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'. 08:38:21,892 AM [test-akka.actor.default-dispatcher-18] [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'. 08:38:21,892 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:21,892 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 08:38:21,893 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:21,894 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 08:38:21,895 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower] 08:38:21,895 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 08:38:21,905 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onRemoveServer: RemoveServer{serverId='new-server'}, state: Idle 08:38:21,906 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerNonExistentServer ending 08:38:21,906 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower413] 08:38:21,917 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader414] 08:38:22,21 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerWithNoLeader starting 08:38:22,23 AM [test-akka.actor.default-dispatcher-17] [INFO] MockRaftActor - Starting recovery for leader with journal batch size 1000 [WARN] [03/25/2024 08:38:22.023] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader416]: org.opendaylight.controller.cluster.common.actor.Monitor@5febd436 [INFO] [akkaDeadLetter][03/25/2024 08:38:22.024] [test-akka.actor.default-dispatcher-17] [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'. 08:38:22,24 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'. 08:38:22,25 AM [test-akka.actor.default-dispatcher-18] [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 08:38:22,36 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 08:38:22,36 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: No leader - returning NO_LEADER reply 08:38:22,37 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerWithNoLeader ending 08:38:22,37 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower415] 08:38:22,48 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader416] 08:38:22,49 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerLeader starting [WARN] [03/25/2024 08:38:22.050] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader419]: org.opendaylight.controller.cluster.common.actor.Monitor@35c77b20 [INFO] [akkaDeadLetter][03/25/2024 08:38:22.050] [test-akka.actor.default-dispatcher-12] [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'. 08:38:22,50 AM [test-akka.actor.default-dispatcher-12] [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'. 08:38:22,52 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:22,52 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 08:38:22,52 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:22,54 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 08:38:22,54 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower] 08:38:22,54 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/25/2024 08:38:22.055] [test-akka.actor.default-dispatcher-18] [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=[]] 08:38:22,55 AM [test-akka.actor.default-dispatcher-18] [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/25/2024 08:38:22.055] [test-akka.actor.default-dispatcher-11] [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/25/2024 08:38:22.157] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower418]: org.opendaylight.controller.cluster.common.actor.Monitor@26228b9e [INFO] [akkaDeadLetter][03/25/2024 08:38:22.158] [test-akka.actor.default-dispatcher-17] [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'. 08:38:22,158 AM [test-akka.actor.default-dispatcher-17] [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'. 08:38:22,160 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower with journal batch size 1000 08:38:22,169 AM [test-akka.actor.default-dispatcher-12] [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 08:38:22,170 AM [test-akka.actor.default-dispatcher-12] [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 08:38:22,170 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=1, votedFor=null 08:38:22,170 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:38:22,170 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 08:38:22,170 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/25/2024 08:38:22.171] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower418] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@77ff4c96 [INFO] [akkaDeadLetter][03/25/2024 08:38:22.171] [test-akka.actor.default-dispatcher-7] [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'. 08:38:22,171 AM [test-akka.actor.default-dispatcher-7] [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'. 08:38:22,267 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 08:38:22,270 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true]] 08:38:22,270 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persist data SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]]] 08:38:22,271 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]]] 08:38:22,271 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=b167f60f-0d49-4bcc-9033-33cfb828988b}, logIndex: 0, isSendImmediate: true 08:38:22,271 AM [test-akka.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:38:22,271 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:22,271 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:38:22,271 AM [test-akka.actor.default-dispatcher-11] [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]]]]]] 08:38:22,271 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation RemoveServer{serverId='leader'} 08:38:22,272 AM [test-akka.actor.default-dispatcher-11] [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]]]]]] 08:38:22,272 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Number of entries to be appended = 1 08:38:22,272 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:38:22,272 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]] 08:38:22,272 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Append log entry and persist SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]]] 08:38:22,272 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Updated server config: isVoting: true, peers: [] 08:38:22,272 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Log size is now 1 08:38:22,272 AM [test-akka.actor.default-dispatcher-11] [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] 08:38:22,272 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:38:22,272 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 08:38:22,272 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:22,274 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]]]] 08:38:22,274 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:38:22,274 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 08:38:22,274 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 08:38:22,274 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]]] 08:38:22,274 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 08:38:22,275 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 08:38:22,276 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: persist complete SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]]] [WARN] [03/25/2024 08:38:22.276] [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@3ef225d6 [WARN] [03/25/2024 08:38:22.276] [test-akka.actor.default-dispatcher-7] [akka://test/user/leader419] unhandled message from TestActor[akka://test/user/leader419]: ServerRemoved [serverId=leader] 08:38:22,407 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Commit index set to 0 08:38:22,407 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:38:22,407 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:38:22,407 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Setting last applied to 0 08:38:22,407 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Moving last applied index from -1 to 0 08:38:22,408 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower, isVoting=true]]] 08:38:22,408 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Persisting ApplyJournalEntries with index=0 08:38:22,428 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerLeader ending 08:38:22,428 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower417] 08:38:22,439 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader419] 08:38:22,439 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector420] 08:38:22,440 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector421#1048758036] 08:38:22,440 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower418] 08:38:22,542 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot starting [WARN] [03/25/2024 08:38:22.544] [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@67a562ed 08:38:22,545 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 08:38:22,546 AM [test-akka.actor.default-dispatcher-11] [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 08:38:22,547 AM [test-akka.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 08:38:22,646 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:22,646 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 08:38:22,646 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 [WARN] [03/25/2024 08:38:22.646] [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@58d19dce 08:38:22,648 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 08:38:22,649 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 08:38:22,857 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server424, votingMember=true], state: Idle 08:38:22,857 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server424, votingMember=true] 08:38:22,857 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:38:22,857 AM [test-akka.actor.default-dispatcher-11] [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 08:38:22,857 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 08:38:22,858 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 08:38:22,858 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 08:38:22,858 AM [test-akka.actor.default-dispatcher-11] [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] 08:38:22,858 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:38:22,858 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 08:38:22,858 AM [test-akka.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 171 bytes, total chunks to send: 1 08:38:22,858 AM [test-akka.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 08:38:22,858 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 171 08:38:22,858 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server424), Chunk: 1/1 08:38:22,858 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 08:38:22,859 AM [test-akka.actor.default-dispatcher-17] [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 08:38:22,859 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 08:38:22,859 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 08:38:22,859 AM [test-akka.actor.default-dispatcher-17] [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] 08:38:22,859 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 08:38:22,859 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:38:22,859 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 08:38:22,861 AM [test-akka.actor.default-dispatcher-11] [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] 08:38:22,861 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 08:38:22,861 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 [WARN] [03/25/2024 08:38:22.861] [test-akka.actor.default-dispatcher-17] [akka://test/user/new-server424] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@40b97b0d 08:38:22,861 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to -1 08:38:22,861 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 08:38:22,861 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called 08:38:22,861 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 08:38:22,861 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 08:38:22,861 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 08:38:22,862 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 08:38:22,862 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 08:38:22,908 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:38:22,908 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server new-server: not leader 08:38:24,467 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:38:24,467 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] 08:38:24,467 AM [test-akka.actor.default-dispatcher-17] [WARN] RaftActorServerConfigurationSupport - leader: Timeout occured for new server new-server while installing snapshot 08:38:24,468 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithLeaderChangeDuringInstallSnapshot ending 08:38:24,468 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower422] 08:38:24,479 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector423#-1389874136] 08:38:24,479 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server424] 08:38:24,480 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader425] 08:38:24,480 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector426] 08:38:24,583 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected starting [WARN] [03/25/2024 08:38:24.585] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@7efaf29c 08:38:24,586 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node1 with journal batch size 1000 [WARN] [03/25/2024 08:38:24.588] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@588adefc 08:38:24,588 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node2 with journal batch size 1000 08:38:24,589 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=1, votedFor=node1 08:38:24,589 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:38:24,589 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:38:24,589 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 08:38:24,590 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=1, votedFor=node1 08:38:24,590 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:38:24,590 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 08:38:24,591 AM [test-akka.actor.default-dispatcher-17] [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 08:38:24,700 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 08:38:24,704 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 08:38:24,704 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - node1: Sending local ElectionTimeout to start leader election 08:38:24,704 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:38:24,705 AM [test-akka.actor.default-dispatcher-18] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:38:24,705 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Received TimeoutNow - switching to Candidate 08:38:24,705 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:38:24,705 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=2, votedFor=node1 08:38:24,705 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Starting new election term 2 08:38:24,705 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Sending RequestVote [term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1] to peer node2 08:38:24,705 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:38:24,750 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Received TimeoutNow - switching to Candidate 08:38:24,750 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Election: Candidate has following voting peers: [] 08:38:24,750 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=2, votedFor=node2 08:38:24,750 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Starting new election term 2 08:38:24,750 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:38:24,751 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Received ElectionTimeout 08:38:24,751 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Election: Leader has following peers: [node1] 08:38:24,751 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:24,751 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:38:24,751 AM [test-akka.actor.default-dispatcher-11] [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 08:38:24,751 AM [test-akka.actor.default-dispatcher-11] [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=[]] 08:38:24,752 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): New Leader node2 sent an AppendEntries to Candidate for term 2 - will switch to Follower 08:38:24,752 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate) :- Switching from behavior Candidate to Follower, election term: 2 08:38:24,868 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 08:38:24,868 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 08:38:24,868 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - node1: New leader node2 elected 08:38:24,868 AM [test-akka.actor.default-dispatcher-18] [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 08:38:24,868 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:24,868 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - node1: Forwarding ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] to new leader 08:38:24,868 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=akka://test/user/node2, votingState=VOTING]] 08:38:24,868 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: getLeaderAddress leaderId = node2 peerAddress = akka://test/user/node2 08:38:24,868 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - node1: Not leader - forwarding to leader ActorSelection[Anchor(akka://test/), Path(/user/node2)] 08:38:24,869 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 08:38:24,869 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState [WARN] [03/25/2024 08:38:24.869] [test-akka.actor.default-dispatcher-11] [akka://test/user/node1] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@55edd4dd 08:38:24,869 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=akka://test/user/node1, votingState=VOTING]] 08:38:24,869 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 08:38:24,869 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Persist data SimpleReplicatedLogEntry [index=1, term=2, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 08:38:24,869 AM [test-akka.actor.default-dispatcher-7] [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]]]] 08:38:24,870 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=57c30582-0e3a-4300-b847-c3c8d06f2e2e}, logIndex: 1, isSendImmediate: true 08:38:24,870 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:38:24,870 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): sendAppendEntries: 1 is present for follower node1 08:38:24,870 AM [test-akka.actor.default-dispatcher-7] [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]]]]]] 08:38:24,870 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 08:38:24,870 AM [test-akka.actor.default-dispatcher-11] [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]]]]]] 08:38:24,870 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Number of entries to be appended = 1 08:38:24,870 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:38:24,870 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 08:38:24,870 AM [test-akka.actor.default-dispatcher-11] [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]]]] 08:38:24,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=akka://test/user/node2, votingState=VOTING]] 08:38:24,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Log size is now 2 08:38:24,871 AM [test-akka.actor.default-dispatcher-11] [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] 08:38:24,871 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) 08:38:24,871 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 1, nextIndex: 2 08:38:24,871 AM [test-akka.actor.default-dispatcher-18] [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 08:38:24,871 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:38:24,871 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 08:38:24,872 AM [test-akka.actor.default-dispatcher-7] [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 08:38:24,872 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: -1 08:38:24,872 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Setting last applied to 0 08:38:24,872 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from -1 to 0 08:38:24,872 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]] 08:38:24,872 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Setting last applied to 1 08:38:24,872 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from 0 to 1 08:38:24,872 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 08:38:24,872 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: fakeSnapshot purging log to 0 for term 2 08:38:24,872 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 08:38:24,872 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Persisting ApplyJournalEntries with index=1 08:38:24,872 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: persist complete SimpleReplicatedLogEntry [index=1, term=2, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] [WARN] [03/25/2024 08:38:24.872] [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@2893ba8e 08:38:24,988 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Commit index set to 1 08:38:24,988 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 08:38:24,988 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 1 08:38:24,988 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Setting last applied to 0 08:38:24,988 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from -1 to 0 08:38:24,988 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=true]]] 08:38:24,988 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Setting last applied to 1 08:38:24,988 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from 0 to 1 08:38:24,988 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Applying state for log index 1 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 08:38:24,988 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: fakeSnapshot purging log to 0 for term 2 08:38:24,988 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Persisting ApplyJournalEntries with index=1 08:38:25,22 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndOtherLeaderElected ending 08:38:25,22 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower427] 08:38:25,34 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector428#-858085394] 08:38:25,35 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node1] 08:38:25,36 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector429#869794913] 08:38:25,36 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node2] 08:38:25,43 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithInstallSnapshotTimeout starting 08:38:25,46 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 [WARN] [03/25/2024 08:38:25.046] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server432]: org.opendaylight.controller.cluster.common.actor.Monitor@7e6e4fec [WARN] [03/25/2024 08:38:25.048] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader433]: org.opendaylight.controller.cluster.common.actor.Monitor@271b2eba 08:38:25,48 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:25,48 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 08:38:25,48 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:25,48 AM [test-akka.actor.default-dispatcher-11] [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 08:38:25,49 AM [test-akka.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 08:38:25,55 AM [test-akka.actor.default-dispatcher-12] [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 08:38:25,55 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 08:38:25,59 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server432, votingMember=true], state: Idle 08:38:25,59 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server432, votingMember=true] 08:38:25,59 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. 08:38:25,59 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 08:38:25,59 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 08:38:25,60 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 08:38:25,60 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=bogus] 08:38:25,60 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Dropping UnInitializedFollowerSnapshotReply for server bogus: server Id doesn't match 08:38:25,60 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 08:38:25,60 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] 08:38:25,60 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:38:25,60 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 08:38:25,60 AM [test-akka.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 171 bytes, total chunks to send: 1 08:38:25,60 AM [test-akka.actor.default-dispatcher-7] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 08:38:25,60 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 171 08:38:25,60 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server432), Chunk: 1/1 08:38:25,60 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 08:38:25,60 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 08:38:25,177 AM [test-akka.actor.default-dispatcher-12] [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 08:38:25,178 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 08:38:25,178 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:38:25,178 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 [WARN] [03/25/2024 08:38:25.179] [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@2f1d08d1 08:38:25,277 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:38:25,277 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server432, votingMember=true] 08:38:25,278 AM [test-akka.actor.default-dispatcher-7] [WARN] RaftActorServerConfigurationSupport - leader: Timeout occured for new server new-server while installing snapshot 08:38:25,278 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithInstallSnapshotTimeout ending 08:38:25,278 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower430] 08:38:25,289 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector431#1023222120] 08:38:25,289 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server432] 08:38:25,289 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader433] 08:38:25,392 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoExistingFollower starting [WARN] [03/25/2024 08:38:25.393] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server436]: org.opendaylight.controller.cluster.common.actor.Monitor@ea2cd4c 08:38:25,394 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 08:38:25,395 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 08:38:25,395 AM [test-akka.actor.default-dispatcher-15] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 08:38:25,493 AM [main] [DEBUG] MockRaftActorContext - test: Moving last applied index from -1 to 1 08:38:25,495 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 1 08:38:25,495 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= [WARN] [03/25/2024 08:38:25.494] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader437]: org.opendaylight.controller.cluster.common.actor.Monitor@2a453e1f 08:38:25,495 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:25,497 AM [test-akka.actor.default-dispatcher-12] [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 08:38:25,497 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 08:38:25,705 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server436, votingMember=true], state: Idle 08:38:25,705 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server436, votingMember=true] 08:38:25,705 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 08:38:25,705 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 08:38:25,706 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 08:38:25,706 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 08:38:25,706 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=[0, 1]], electionTerm=1, electionVotedFor=, ServerConfigPayload=null] 08:38:25,706 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:38:25,706 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 08:38:25,706 AM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 324 bytes, total chunks to send: 1 08:38:25,706 AM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=324, offset=0, size=324, hashCode=-1763937099 08:38:25,706 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 324 08:38:25,706 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server436), Chunk: 1/1 08:38:25,706 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 08:38:25,706 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 08:38:25,706 AM [test-akka.actor.default-dispatcher-12] [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 08:38:25,707 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 08:38:25,707 AM [test-akka.actor.default-dispatcher-12] [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] 08:38:25,707 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to 1 08:38:25,707 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:38:25,707 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 08:38:25,709 AM [test-akka.actor.default-dispatcher-15] [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] 08:38:25,709 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 08:38:25,709 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 08:38:25,709 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to 1 08:38:25,709 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 08:38:25,709 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called [WARN] [03/25/2024 08:38:25.709] [test-akka.actor.default-dispatcher-12] [akka://test/user/new-server436] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@f5291ab 08:38:25,709 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 08:38:25,709 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 08:38:25,709 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 2 08:38:25,709 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 08:38:25,709 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: fakeSnapshot purging log to 0 for term 1 08:38:25,709 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 08:38:25,709 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:38:25,709 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:38:25,709 AM [test-akka.actor.default-dispatcher-15] [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]]]] 08:38:25,709 AM [test-akka.actor.default-dispatcher-15] [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]]]] 08:38:25,709 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=be254c4c-1643-4ccd-9292-6573a0932faf}, logIndex: 2, isSendImmediate: true 08:38:25,710 AM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:38:25,710 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: 0 08:38:25,710 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 2 is present for follower new-server 08:38:25,710 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=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]]]]]] 08:38:25,710 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server436, votingMember=true] 08:38:25,710 AM [test-akka.actor.default-dispatcher-11] [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]]]]]] 08:38:25,710 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 08:38:25,710 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: 1, entries to be added from: 0 08:38:25,710 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 08:38:25,710 AM [test-akka.actor.default-dispatcher-11] [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]]]] 08:38:25,710 AM [test-akka.actor.default-dispatcher-15] [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]]]] 08:38:25,710 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:38:25,711 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 1 08:38:25,711 AM [test-akka.actor.default-dispatcher-11] [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] 08:38:25,711 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected 1) 08:38:25,711 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 2, nextIndex: 3 08:38:25,711 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 08:38:25,711 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 2 08:38:25,711 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from 1 to 2 08:38:25,711 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 2 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 08:38:25,711 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: fakeSnapshot purging log to 1 for term 1 08:38:25,711 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 08:38:25,711 AM [test-akka.actor.default-dispatcher-15] [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]]]] 08:38:25,712 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 2 08:38:25,712 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 1) 08:38:25,712 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:38:25,712 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 2 08:38:25,712 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from 1 to 2 08:38:25,712 AM [test-akka.actor.default-dispatcher-15] [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]]] [WARN] [03/25/2024 08:38:25.712] [test-akka.actor.default-dispatcher-11] [akka://test/user/new-server436] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@76f1f1e1 08:38:25,712 AM [test-akka.actor.default-dispatcher-12] [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 08:38:25,712 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=2 08:38:25,712 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=2 08:38:25,758 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoExistingFollower ending 08:38:25,758 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower434] 08:38:25,769 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector435#-919624615] 08:38:25,770 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server436] 08:38:25,770 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader437] 08:38:25,771 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector438] 08:38:25,773 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout starting [WARN] [03/25/2024 08:38:25.775] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@523ba25 08:38:25,777 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node1 with journal batch size 1000 08:38:25,779 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node2 with journal batch size 1000 [WARN] [03/25/2024 08:38:25.779] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@5b2b8b5 08:38:25,779 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=1, votedFor=node1 08:38:25,779 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:38:25,779 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=NON_VOTING]] 08:38:25,779 AM [test-akka.actor.default-dispatcher-15] [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 08:38:25,781 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=1, votedFor=node1 08:38:25,781 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:38:25,781 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]] 08:38:25,781 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received ReplicatedLogEntry for recovery: index: 1, size: 1 08:38:25,781 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received apply journal entries for recovery, applying to state: 0 to 1 08:38:25,781 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from -1 to 1 08:38:25,782 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Recovery completed in 72.31 μs - Switching actor to Follower - last log index = 1, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 2 08:38:25,890 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]], state: Idle 08:38:25,890 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 08:38:25,890 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - node1: Sending local ElectionTimeout to start leader election 08:38:25,890 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:38:25,891 AM [test-akka.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:38:25,891 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Received TimeoutNow - switching to Candidate 08:38:25,891 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:38:25,891 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=2, votedFor=node1 08:38:25,891 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Starting new election term 2 08:38:25,891 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Sending RequestVote [term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1] to peer node2 08:38:25,892 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:38:25,892 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:38:25,892 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Cluster state: [] 08:38:25,892 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Candidate in requestVote:RequestVote [term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1] with higher term appears reachable, updating term. 08:38:25,892 AM [test-akka.actor.default-dispatcher-7] [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 08:38:25,892 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=2, votedFor=null 08:38:25,892 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): In requestVote: RequestVote [term=2, candidateId=node1, lastLogIndex=0, lastLogTerm=1] - currentTerm: 2, votedFor: null, lastIndex: 1, lastTerm: 1 08:38:25,892 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): requestVote returning: RequestVoteReply [term=2, voteGranted=false] 08:38:25,894 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): RaftRPC message received RequestVoteReply [term=2, voteGranted=false], my term is 2 08:38:25,894 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): handleRequestVoteReply: RequestVoteReply [term=2, voteGranted=false], current voteCount: 1 08:38:26,207 AM [test-akka.actor.default-dispatcher-11] [WARN] RaftActorServerConfigurationSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[]] 08:38:26,208 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=akka://test/user/node2, votingState=NON_VOTING]] 08:38:26,209 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 08:38:26,209 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - node1: Found server ActorSelection[Anchor(akka://test/), Path(/user/node2)] to forward to 08:38:26,210 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - node2: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]], state: Idle 08:38:26,210 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 08:38:26,210 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - node2: Sending local ElectionTimeout to start leader election 08:38:26,210 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=VOTING]] 08:38:26,210 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Received TimeoutNow - switching to Candidate 08:38:26,210 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Election: Candidate has following voting peers: [node1] 08:38:26,210 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=3, votedFor=node2 08:38:26,210 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Starting new election term 3 08:38:26,211 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): Sending RequestVote [term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1] to peer node1 08:38:26,211 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 08:38:26,211 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:38:26,211 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Cluster state: [] 08:38:26,211 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Candidate in requestVote:RequestVote [term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1] with higher term appears reachable, updating term. 08:38:26,211 AM [test-akka.actor.default-dispatcher-18] [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 08:38:26,211 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=3, votedFor=null 08:38:26,211 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): In requestVote: RequestVote [term=3, candidateId=node2, lastLogIndex=1, lastLogTerm=1] - currentTerm: 3, votedFor: null, lastIndex: 0, lastTerm: 1 08:38:26,211 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=3, votedFor=node2 08:38:26,211 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 08:38:26,213 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 08:38:26,213 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 08:38:26,213 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Election: Leader has following peers: [node1] 08:38:26,213 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:38:26,213 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 08:38:26,213 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - node2: New leader node2 elected 08:38:26,213 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader node2, need to catch up to -1 08:38:26,213 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - node2: New server configuration : [ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]] 08:38:26,214 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Persist data SimpleReplicatedLogEntry [index=2, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 08:38:26,214 AM [test-akka.actor.default-dispatcher-18] [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]]]] 08:38:26,214 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=ebfed51e-980f-4948-ae42-5196f8c8c9be}, logIndex: 2, isSendImmediate: true [WARN] [03/25/2024 08:38:26.214] [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@d555f4f 08:38:26,214 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: false, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: -1 08:38:26,214 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - node2: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true, node2=true}, serversVisited=[node1]] 08:38:26,214 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached -1 (of expected -1) [WARN] [03/25/2024 08:38:26.214] [test-akka.actor.default-dispatcher-11] [akka://test/user/node1] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@65a873fc 08:38:26,215 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 0, nextIndex: 1 08:38:26,215 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: fakeSnapshot purging log to 0 for term 3 08:38:26,215 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 1, leaderLastIndex: 2, leaderSnapShotIndex: 0 08:38:26,215 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): sendAppendEntries: 1 is present for follower node1 08:38:26,215 AM [test-akka.actor.default-dispatcher-18] [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]]]]]] 08:38:26,215 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): sendAppendEntries: 1 is present for follower node1 08:38:26,215 AM [test-akka.actor.default-dispatcher-7] [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]]]]]] 08:38:26,215 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Number of entries to be appended = 2 08:38:26,215 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:38:26,215 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Append entry to log 2 08:38:26,215 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Append log entry and persist SimpleReplicatedLogEntry [index=1, term=1, payload=2] 08:38:26,216 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [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]]]] 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=akka://test/user/node2, votingState=VOTING]] 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Log size is now 3 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Commit index set to 1 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [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] 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 1 (of expected -1) 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): -1, lastIndex(): 2 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Setting last applied to 0 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from -1 to 0 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=false], ServerInfo[peerId=node2, isVoting=false]]] 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Setting last applied to 1 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from 0 to 1 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Applying state for log index 1 data 2 08:38:26,216 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): handleAppendEntriesReply - FollowerLogInformation for node1 updated: matchIndex: 2, nextIndex: 3 08:38:26,216 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Applying to log - commitIndex: 2, lastAppliedIndex: 1 08:38:26,216 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Setting last applied to 2 08:38:26,216 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from 1 to 2 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: applyState called: 2 08:38:26,216 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: fakeSnapshot purging log to 0 for term 3 08:38:26,216 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Applying state for log index 2 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 08:38:26,216 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: fakeSnapshot purging log to 1 for term 3 08:38:26,216 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Leader): Checking sendAppendEntries for follower node1: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 08:38:26,217 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupport - node2: ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] has been successfully replicated to a majority of followers 08:38:26,217 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Persisting ApplyJournalEntries with index=2 08:38:26,217 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: persist complete SimpleReplicatedLogEntry [index=1, term=1, payload=2] 08:38:26,217 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: persist complete SimpleReplicatedLogEntry [index=2, term=3, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]]] 08:38:26,217 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Persisting ApplyJournalEntries with index=1 08:38:26,218 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Commit index set to 2 08:38:26,218 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - node1: Lagging 0 entries behind leader node2 and reached 2 (of expected -1) 08:38:26,218 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 2, context.getLastApplied(): 1, lastIndex(): 2 08:38:26,218 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Setting last applied to 2 08:38:26,218 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from 1 to 2 08:38:26,218 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Applying state for log index 2 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=node1, isVoting=true], ServerInfo[peerId=node2, isVoting=true]]] 08:38:26,218 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: fakeSnapshot purging log to 1 for term 3 08:38:26,218 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Persisting ApplyJournalEntries with index=2 08:38:26,271 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndForwardedToOtherNodeAfterElectionTimeout ending 08:38:26,271 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower439] 08:38:26,282 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector440#2054468021] 08:38:26,283 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node1] 08:38:26,283 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector441#-958127571] 08:38:26,284 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node2] 08:38:26,386 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoConsensusReached starting [WARN] [03/25/2024 08:38:26.389] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server444]: org.opendaylight.controller.cluster.common.actor.Monitor@395925c0 08:38:26,390 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 [WARN] [03/25/2024 08:38:26.392] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader445]: org.opendaylight.controller.cluster.common.actor.Monitor@38eec7ac 08:38:26,392 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 08:38:26,392 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:26,392 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 08:38:26,393 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:26,393 AM [test-akka.actor.default-dispatcher-18] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 08:38:26,394 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 08:38:26,395 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 08:38:26,404 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server444, votingMember=true], state: Idle 08:38:26,404 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server444, votingMember=true] 08:38:26,405 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Capturing Snapshot : lastLogEntry is null. Using snapshot values lastAppliedIndex -1 and lastAppliedTerm -1 instead. 08:38:26,405 AM [test-akka.actor.default-dispatcher-11] [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 08:38:26,405 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 08:38:26,405 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 08:38:26,405 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 08:38:26,405 AM [test-akka.actor.default-dispatcher-11] [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] 08:38:26,405 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:38:26,405 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 08:38:26,405 AM [test-akka.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 171 bytes, total chunks to send: 1 08:38:26,405 AM [test-akka.actor.default-dispatcher-11] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 08:38:26,405 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 171 08:38:26,406 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server444), Chunk: 1/1 08:38:26,406 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 08:38:26,406 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 08:38:26,406 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 08:38:26,406 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] 08:38:26,406 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 08:38:26,406 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 08:38:26,406 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:38:26,406 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 08:38:26,408 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] 08:38:26,408 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 [WARN] [03/25/2024 08:38:26.408] [test-akka.actor.default-dispatcher-11] [akka://test/user/new-server444] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2cfec58a 08:38:26,408 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 08:38:26,408 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to -1 08:38:26,408 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 08:38:26,408 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called 08:38:26,409 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] 08:38:26,409 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 08:38:26,409 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 08:38:26,409 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Snapshot successfully installed on follower new-server (last chunk 1) - matchIndex set to -1, nextIndex set to 0 08:38:26,409 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 08:38:26,455 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:38:26,455 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:38:26,455 AM [test-akka.actor.default-dispatcher-11] [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]]]] 08:38:26,455 AM [test-akka.actor.default-dispatcher-11] [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]]]] 08:38:26,455 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=67dca7e9-9994-4b6a-ba53-b7bfed363185}, logIndex: 0, isSendImmediate: true 08:38:26,455 AM [test-akka.actor.default-dispatcher-11] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:38:26,455 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:26,455 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:38:26,456 AM [test-akka.actor.default-dispatcher-11] [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]]]]]] 08:38:26,456 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server444, votingMember=true] 08:38:26,457 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]]]] 08:38:26,505 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 08:38:26,505 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Server operation already in progress - queueing AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 08:38:26,517 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:38:26,638 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:38:26,638 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]]]]]] 08:38:26,757 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:38:26,757 AM [test-akka.actor.default-dispatcher-11] [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]]]]]] 08:38:26,877 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:38:26,878 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]]]]]] 08:38:26,998 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:38:26,998 AM [test-akka.actor.default-dispatcher-11] [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]]]]]] 08:38:27,118 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:38:27,119 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]]]]]] 08:38:27,238 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:38:27,238 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]]]]]] 08:38:27,358 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:38:27,358 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]]]]]] 08:38:28,467 AM [test-akka.actor.default-dispatcher-18] [WARN] RaftActorServerConfigurationSupport - leader: Timeout occured while replicating the new server configuration for new-server 08:38:28,467 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 08:38:28,468 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=, votingMember=false], state: Persisting 08:38:28,468 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning PRIOR_REQUEST_CONSENSUS_TIMEOUT for operation AddServer [newServerId=new-server2, newServerAddress=, votingMember=false] 08:38:28,469 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoConsensusReached ending 08:38:28,469 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower442] 08:38:28,480 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector443#152627171] 08:38:28,480 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server444] 08:38:28,481 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader445] 08:38:28,481 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector446] 08:38:28,482 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-serverCollector447] 08:38:28,585 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerLeaderWithNoFollowers starting [WARN] [03/25/2024 08:38:28.586] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader449]: org.opendaylight.controller.cluster.common.actor.Monitor@77e3982e 08:38:28,587 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:28,587 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 08:38:28,587 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:28,589 AM [test-akka.actor.default-dispatcher-11] [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 08:38:28,590 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 08:38:28,598 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: onRemoveServer: RemoveServer{serverId='leader'}, state: Idle 08:38:28,599 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerLeaderWithNoFollowers ending 08:38:28,599 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower448] 08:38:28,610 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader449] 08:38:28,712 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete starting [WARN] [03/25/2024 08:38:28.715] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server452]: org.opendaylight.controller.cluster.common.actor.Monitor@49329172 08:38:28,716 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 [WARN] [03/25/2024 08:38:28.717] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader453]: org.opendaylight.controller.cluster.common.actor.Monitor@19c20d27 08:38:28,718 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 08:38:28,718 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:28,718 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 08:38:28,718 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:28,718 AM [test-akka.actor.default-dispatcher-17] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 08:38:28,719 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 08:38:28,720 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 08:38:28,720 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 08:38:28,720 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. 08:38:28,720 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=true] 08:38:28,720 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 08:38:28,721 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 08:38:28,721 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] 08:38:28,721 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: user triggered or root overwrite snapshot encountered, trimming log up to last applied index -1 08:38:28,721 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:38:28,730 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server452, votingMember=true], state: Idle 08:38:28,730 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server452, votingMember=true] 08:38:28,730 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - captureToInstall should not be called in state Persisting 08:38:28,730 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Snapshot already in progress - waiting for completion 08:38:28,730 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 08:38:28,731 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:38:28,731 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning NO_LEADER for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server452, votingMember=true] 08:38:28,731 AM [test-akka.actor.default-dispatcher-7] [WARN] RaftActorServerConfigurationSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 08:38:28,731 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithLeaderChangeBeforePriorSnapshotComplete ending 08:38:28,731 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 08:38:28,731 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower450] 08:38:28,741 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector451#-553798091] 08:38:28,742 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server452] 08:38:28,742 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader453] 08:38:28,742 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector454] 08:38:28,745 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServersAsNonVoting starting [WARN] [03/25/2024 08:38:28.746] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server457]: org.opendaylight.controller.cluster.common.actor.Monitor@411e3e3b 08:38:28,747 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 08:38:28,749 AM [test-akka.actor.default-dispatcher-11] [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 08:38:28,749 AM [test-akka.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [03/25/2024 08:38:28.847] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader458]: org.opendaylight.controller.cluster.common.actor.Monitor@234684cf 08:38:28,848 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:28,848 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 08:38:28,848 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:28,850 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 08:38:28,850 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 08:38:28,959 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server457, votingMember=false], state: Idle 08:38:28,959 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server457, votingMember=false] 08:38:28,959 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: New follower is non-voting - directly persisting new server configuration 08:38:28,959 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 08:38:28,959 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=false], ServerInfo[peerId=leader, isVoting=true]]]] 08:38:28,959 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=false], ServerInfo[peerId=leader, isVoting=true]]]] 08:38:28,960 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=4543e4a6-9273-441f-a1dd-a22aca93589a}, logIndex: 0, isSendImmediate: true 08:38:28,960 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 08:38:28,960 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 08:38:28,960 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 08:38:28,960 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:28,960 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server457, votingMember=false] 08:38:28,960 AM [test-akka.actor.default-dispatcher-11] [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 08:38:28,960 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 08:38:28,960 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:38:28,961 AM [test-akka.actor.default-dispatcher-17] [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 08:38:28,961 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 08:38:28,961 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 08:38:28,961 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 08:38:28,961 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:38:28,961 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=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]]]]]] 08:38:28,961 AM [test-akka.actor.default-dispatcher-17] [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]]]] 08:38:28,962 AM [test-akka.actor.default-dispatcher-17] [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]]]]]] 08:38:28,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 08:38:28,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 [WARN] [03/25/2024 08:38:28.962] [test-akka.actor.default-dispatcher-7] [akka://test/user/new-server457] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6e3608a5 08:38:28,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]] 08:38:28,962 AM [test-akka.actor.default-dispatcher-17] [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]]]] 08:38:28,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: false, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:38:28,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 1 08:38:28,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 0 08:38:28,962 AM [test-akka.actor.default-dispatcher-17] [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] 08:38:28,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:38:28,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:38:28,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 0 08:38:28,962 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to 0 08:38:28,962 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 08:38:28,962 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=false], ServerInfo[peerId=leader, isVoting=true]]] 08:38:28,962 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:28,963 AM [test-akka.actor.default-dispatcher-11] [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]]]] 08:38:28,963 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=0 [WARN] [03/25/2024 08:38:28.963] [test-akka.actor.default-dispatcher-18] [akka://test/user/new-server457] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@23df506a 08:38:29,78 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:38:29,197 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:38:29,318 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:38:29,438 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:38:29,516 AM [main] [DEBUG] RaftActorServerConfigurationSupportTest - new-server2: Set currentTerm=1, votedFor=leader 08:38:29,517 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower455, votingMember=false], state: Idle 08:38:29,517 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower455, votingMember=false] 08:38:29,517 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: New follower is non-voting - directly persisting new server configuration 08:38:29,517 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 08:38:29,517 AM [test-akka.actor.default-dispatcher-18] [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]]]] 08:38:29,517 AM [test-akka.actor.default-dispatcher-18] [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]]]] 08:38:29,518 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=670b701e-747d-479c-b309-4e089c0800eb}, logIndex: 1, isSendImmediate: true 08:38:29,518 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 1 08:38:29,518 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from 0 to 1 08:38:29,518 AM [test-akka.actor.default-dispatcher-18] [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]]] 08:38:29,518 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:38:29,518 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 1 is present for follower new-server 08:38:29,518 AM [test-akka.actor.default-dispatcher-18] [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]]]]]] 08:38:29,519 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:38:29,519 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server2, newServerAddress=akka://test/user/follower455, votingMember=false] 08:38:29,519 AM [test-akka.actor.default-dispatcher-17] [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]]]]]] 08:38:29,519 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 08:38:29,519 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:38:29,519 AM [test-akka.actor.default-dispatcher-17] [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]]] 08:38:29,519 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=false], ServerInfo[peerId=new-server2, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 08:38:29,519 AM [test-akka.actor.default-dispatcher-17] [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]] 08:38:29,519 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 2 08:38:29,519 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 1 08:38:29,519 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] 08:38:29,519 AM [test-akka.actor.default-dispatcher-18] [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 08:38:29,519 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:38:29,519 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:38:29,519 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 1 08:38:29,519 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from 0 to 1 08:38:29,519 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=1 08:38:29,519 AM [test-akka.actor.default-dispatcher-17] [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]]] 08:38:29,520 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 1, nextIndex: 2 08:38:29,520 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:38:29,520 AM [test-akka.actor.default-dispatcher-18] [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) 08:38:29,521 AM [test-akka.actor.default-dispatcher-17] [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]]]] 08:38:29,521 AM [test-akka.actor.default-dispatcher-12] [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]]]] [ERROR] [03/25/2024 08:38:29.519] [test-akka.actor.internal-dispatcher-3] [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) 08:38:29,521 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=1 08:38:29,570 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServersAsNonVoting ending 08:38:29,570 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower455] 08:38:29,581 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector456#-1521085459] 08:38:29,581 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server457] 08:38:29,587 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader458] 08:38:29,587 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector459] 08:38:29,589 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithPriorSnapshotInProgress starting [WARN] [03/25/2024 08:38:29.591] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server462]: org.opendaylight.controller.cluster.common.actor.Monitor@55cbd982 08:38:29,592 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 [WARN] [03/25/2024 08:38:29.593] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader463]: org.opendaylight.controller.cluster.common.actor.Monitor@3a093c49 08:38:29,594 AM [test-akka.actor.default-dispatcher-7] [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 08:38:29,594 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:29,594 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 08:38:29,594 AM [test-akka.actor.default-dispatcher-7] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 08:38:29,594 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:29,597 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 08:38:29,597 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 08:38:29,597 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 08:38:29,598 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. 08:38:29,598 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] 08:38:29,598 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 08:38:29,598 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 08:38:29,598 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] 08:38:29,598 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 08:38:29,598 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:38:29,598 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 08:38:29,598 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 08:38:29,656 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server462, votingMember=true], state: Idle 08:38:29,656 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server462, votingMember=true] 08:38:29,656 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. 08:38:29,656 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=false] to install on new-server 08:38:29,656 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 08:38:29,656 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 08:38:29,656 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - commit should not be called in state Creating 08:38:29,656 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 08:38:29,656 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] 08:38:29,657 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:38:29,657 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 08:38:29,657 AM [test-akka.actor.default-dispatcher-18] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 171 bytes, total chunks to send: 1 08:38:29,657 AM [test-akka.actor.default-dispatcher-18] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=171, offset=0, size=171, hashCode=-2041399403 08:38:29,657 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 171 08:38:29,657 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server462), Chunk: 1/1 08:38:29,657 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 08:38:29,657 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 08:38:29,657 AM [test-akka.actor.default-dispatcher-17] [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 08:38:29,657 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 08:38:29,657 AM [test-akka.actor.default-dispatcher-17] [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] 08:38:29,657 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 08:38:29,657 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:38:29,657 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 08:38:29,659 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] 08:38:29,659 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 08:38:29,659 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 08:38:29,659 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to -1 08:38:29,659 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null [WARN] [03/25/2024 08:38:29.659] [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@1e833c8 08:38:29,659 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called 08:38:29,659 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] 08:38:29,659 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 08:38:29,659 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 08:38:29,659 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 08:38:29,659 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 08:38:29,660 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:38:29,660 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:38:29,660 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]]]] 08:38:29,660 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]]]] 08:38:29,660 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=1cfbe379-1eb1-4dc4-b0c3-91e32fad9b51}, logIndex: 0, isSendImmediate: true 08:38:29,660 AM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:38:29,660 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 08:38:29,660 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower new-server 08:38:29,660 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]]]]]] 08:38:29,660 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server462, votingMember=true] 08:38:29,661 AM [test-akka.actor.default-dispatcher-7] [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]]]]]] 08:38:29,661 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 08:38:29,661 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:38:29,661 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Append entry to log ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 08:38:29,661 AM [test-akka.actor.default-dispatcher-7] [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]]]] 08:38:29,661 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=null, votingState=VOTING]] 08:38:29,661 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 1 08:38:29,661 AM [test-akka.actor.default-dispatcher-7] [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] 08:38:29,661 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:38:29,661 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 0, nextIndex: 1 08:38:29,661 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 08:38:29,662 AM [test-akka.actor.default-dispatcher-17] [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]]]] 08:38:29,662 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:38:29,662 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 08:38:29,662 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 08:38:29,662 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Applying state for log index 0 data ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]] 08:38:29,662 AM [test-akka.actor.default-dispatcher-12] [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]]]] 08:38:29,662 AM [test-akka.actor.default-dispatcher-17] [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 08:38:29,662 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 [WARN] [03/25/2024 08:38:29.662] [test-akka.actor.default-dispatcher-12] [akka://test/user/new-server462] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@62f41586 08:38:29,664 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithPriorSnapshotInProgress ending 08:38:29,664 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower460] 08:38:29,675 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector461#1763540157] 08:38:29,675 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server462] 08:38:29,675 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader463] 08:38:29,676 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector464] 08:38:29,778 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeLeaderToNonVotingInSingleNode starting [WARN] [03/25/2024 08:38:29.779] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader466]: org.opendaylight.controller.cluster.common.actor.Monitor@5b60c781 08:38:29,779 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:29,780 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 08:38:29,780 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:29,782 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 08:38:29,782 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 08:38:29,889 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 08:38:29,889 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 08:38:29,889 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning INVALID_REQUEST for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 08:38:29,890 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeLeaderToNonVotingInSingleNode ending 08:38:29,890 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower465] 08:38:29,900 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader466] 08:38:29,903 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeLeaderToNonVoting starting [WARN] [03/25/2024 08:38:29.904] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader470]: org.opendaylight.controller.cluster.common.actor.Monitor@37b7dd72 08:38:29,904 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:29,904 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 08:38:29,904 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:29,905 AM [test-akka.actor.default-dispatcher-11] [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 08:38:29,906 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower2, follower] 08:38:29,906 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:38:29,906 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/25/2024 08:38:29.906] [test-akka.actor.default-dispatcher-6] [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/25/2024 08:38:29.906] [test-akka.actor.default-dispatcher-6] [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/25/2024 08:38:29.912] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower468]: org.opendaylight.controller.cluster.common.actor.Monitor@e31df2e 08:38:29,913 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower with journal batch size 1000 08:38:29,914 AM [test-akka.actor.default-dispatcher-6] [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 08:38:29,914 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower2 with journal batch size 1000 [WARN] [03/25/2024 08:38:29.914] [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@56fef7cd 08:38:29,915 AM [test-akka.actor.default-dispatcher-7] [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 08:38:29,925 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]], state: Idle 08:38:29,925 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 08:38:29,925 AM [test-akka.actor.default-dispatcher-12] [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]] 08:38:29,925 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]] 08:38:29,925 AM [test-akka.actor.default-dispatcher-12] [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]]]] 08:38:29,925 AM [test-akka.actor.default-dispatcher-12] [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]]]] 08:38:29,925 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=5cc1b232-b131-490a-83bf-bc7fe07324d1}, logIndex: 0, isSendImmediate: true 08:38:29,925 AM [test-akka.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:38:29,925 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:29,926 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:29,926 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={leader=false}, serversVisited=[]] 08:38:29,926 AM [test-akka.actor.default-dispatcher-7] [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 08:38:29,926 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Set currentTerm=1, votedFor=null 08:38:29,926 AM [test-akka.actor.default-dispatcher-18] [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 08:38:29,926 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 08:38:29,926 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=1, votedFor=null 08:38:29,926 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 08:38:29,926 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:29,926 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:38:29,926 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:38:29,926 AM [test-akka.actor.default-dispatcher-12] [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]]]]]] 08:38:29,926 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 08:38:29,926 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:29,926 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:38:29,926 AM [test-akka.actor.default-dispatcher-12] [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]]]]]] 08:38:29,927 AM [test-akka.actor.default-dispatcher-11] [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]]]] 08:38:29,927 AM [test-akka.actor.default-dispatcher-16] [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]]]]]] 08:38:29,927 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Number of entries to be appended = 1 08:38:29,927 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 [WARN] [03/25/2024 08:38:29.927] [test-akka.actor.default-dispatcher-7] [akka://test/user/follower2469] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@335a1aa4 08:38:29,927 AM [test-akka.actor.default-dispatcher-16] [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]]] 08:38:29,927 AM [test-akka.actor.default-dispatcher-16] [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]]]] 08:38:29,928 AM [test-akka.actor.default-dispatcher-16] [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]] 08:38:29,928 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Log size is now 1 08:38:29,928 AM [test-akka.actor.default-dispatcher-16] [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] 08:38:29,928 AM [test-akka.actor.default-dispatcher-16] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:38:29,928 AM [test-akka.actor.default-dispatcher-7] [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]]]]]] 08:38:29,928 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Number of entries to be appended = 1 08:38:29,928 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:38:29,928 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 08:38:29,928 AM [test-akka.actor.default-dispatcher-7] [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]]] 08:38:29,928 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:38:29,928 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=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]] 08:38:29,928 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 08:38:29,928 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 08:38:29,928 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=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]] [WARN] [03/25/2024 08:38:29.928] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower468] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@658e90fc 08:38:29,928 AM [test-akka.actor.default-dispatcher-7] [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]] 08:38:29,928 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Log size is now 1 08:38:29,928 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] 08:38:29,928 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) 08:38:29,928 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 08:38:29,928 AM [test-akka.actor.default-dispatcher-16] [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 08:38:29,928 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - Leader changed to non-voting - trying leadership transfer 08:38:29,928 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Initiating leader transfer 08:38:29,928 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=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]] 08:38:29,929 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Commit index set to 0 08:38:29,929 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:38:29,929 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:38:29,929 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Setting last applied to 0 08:38:29,929 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Moving last applied index from -1 to 0 08:38:29,929 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=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]] [WARN] [03/25/2024 08:38:29.929] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower2469] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4c2e6423 08:38:29,929 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 08:38:29,929 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Persisting ApplyJournalEntries with index=0 08:38:29,929 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorLeadershipTransferCohort - leader: pauseLeader successfully completed - doing transfer 08:38:29,929 AM [test-akka.actor.default-dispatcher-18] [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]]]] 08:38:29,929 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Attempting to transfer leadership 08:38:29,929 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 08:38:29,929 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:29,929 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:38:29,929 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:38:29,929 AM [test-akka.actor.default-dispatcher-16] [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=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]]]] 08:38:29,929 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 [WARN] [03/25/2024 08:38:29.929] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower468] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@61985a8e 08:38:29,929 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: onLeaderTransitioning: LeaderTransitioning [leaderId=leader] 08:38:29,929 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 08:38:29,929 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:29,929 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): tryToCompleteLeadershipTransfer: followerId: follower, matchIndex: 0, lastIndex: 0, isVoting: true 08:38:29,929 AM [test-akka.actor.default-dispatcher-18] [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=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]]]] 08:38:29,929 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Follower's log matches - sending ElectionTimeout 08:38:29,929 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Number of entries to be appended = 1 08:38:29,929 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 08:38:29,929 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): matchEntry SimpleReplicatedLogEntry [index=0, term=1, payload=ServerConfigurationPayload [serverConfig=[ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=false]]]] is present: existingEntryTerm: 1 08:38:29,929 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 1 08:38:29,929 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Log size is now 1 08:38:29,930 AM [test-akka.actor.default-dispatcher-17] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Commit index set to 0 08:38:29,930 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Leader transfer complete 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [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] 08:38:29,930 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader transfer complete - waiting for new leader 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Setting last applied to 0 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Moving last applied index from -1 to 0 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [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]]] 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Received TimeoutNow - switching to Candidate 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Candidate): Election: Candidate has following voting peers: [follower2] 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=2, votedFor=follower 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Candidate): Starting new election term 2 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Candidate): Sending RequestVote [term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1] to peer follower2 08:38:29,930 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Found higher term in RequestVote rpc, verifying whether it's safe to update term. 08:38:29,930 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:38:29,930 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Cluster state: [] 08:38:29,930 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Candidate in requestVote:RequestVote [term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1] with higher term appears reachable, updating term. 08:38:29,931 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Term 2 in "RequestVote [term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1]" message is greater than follower's term 1 - updating term 08:38:29,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Set currentTerm=2, votedFor=null 08:38:29,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): In requestVote: RequestVote [term=2, candidateId=follower, lastLogIndex=0, lastLogTerm=1] - currentTerm: 2, votedFor: null, lastIndex: 0, lastTerm: 1 08:38:29,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Set currentTerm=2, votedFor=follower 08:38:29,931 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): requestVote returning: RequestVoteReply [term=2, voteGranted=true] 08:38:29,932 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Persisting ApplyJournalEntries with index=0 08:38:29,932 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Candidate): RaftRPC message received RequestVoteReply [term=2, voteGranted=true], my term is 2 08:38:29,932 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Candidate): handleRequestVoteReply: RequestVoteReply [term=2, voteGranted=true], current voteCount: 1 08:38:29,932 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Leader): Election: Leader has following peers: [leader, follower2] 08:38:29,932 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Leader): Checking sendAppendEntries for follower leader: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:29,932 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:29,932 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Candidate) :- Switching from behavior Candidate to Leader, election term: 2 08:38:29,932 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader follower, need to catch up to -1 08:38:29,932 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Term 2 in "AppendEntries [leaderId=follower, 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 08:38:29,932 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 08:38:29,932 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:29,932 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=2, votedFor=null [WARN] [03/25/2024 08:38:29.932] [test-akka.actor.default-dispatcher-17] [akka://test/user/follower2469] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1a2e28be 08:38:29,932 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader follower and reached 0 (of expected -1) 08:38:29,932 AM [test-akka.actor.default-dispatcher-18] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader) :- Switching from behavior Leader to Follower, election term: 2 [WARN] [03/25/2024 08:38:29.932] [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@14686f94 08:38:30,448 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader follower and reached 0 (of expected -1) 08:38:30,448 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - leader: Last sync leader does not match current leader follower, need to catch up to -1 08:38:30,449 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorLeadershipTransferCohort - leader: leader changed to follower 08:38:30,449 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Leader): handleAppendEntriesReply - FollowerLogInformation for leader updated: matchIndex: 0, nextIndex: 1 08:38:30,449 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Leader): Checking sendAppendEntries for follower leader: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:30,449 AM [test-akka.actor.default-dispatcher-7] [INFO] RaftActorLeadershipTransferCohort - leader: Successfully transferred leadership to follower in 520.3 ms 08:38:30,449 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: leader transfer succeeded after change to non-voting 08:38:30,450 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - leader: Lagging 0 entries behind leader follower and reached 0 (of expected -1) [WARN] [03/25/2024 08:38:30.450] [test-akka.actor.default-dispatcher-12] [akka://test/user/leader470] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1abe8503 [WARN] [03/25/2024 08:38:30.450] [test-akka.actor.default-dispatcher-7] [akka://test/user/leader470] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@32ab1662 08:38:30,481 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeLeaderToNonVoting ending 08:38:30,481 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower467] 08:38:30,492 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader470] 08:38:30,493 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector471] 08:38:30,494 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector472#928627535] 08:38:30,494 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower468] 08:38:30,495 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector473#551947985] 08:38:30,495 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower2469] 08:38:30,497 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testOnApplyState starting [WARN] [03/25/2024 08:38:30.498] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader475]: org.opendaylight.controller.cluster.common.actor.Monitor@51c7b5a9 08:38:30,499 AM [test-akka.actor.default-dispatcher-16] [INFO] MockRaftActor - Starting recovery for leader with journal batch size 1000 08:38:30,499 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testOnApplyState ending 08:38:30,499 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower474] 08:38:30,502 AM [test-akka.actor.default-dispatcher-7] [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 08:38:30,510 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader475] 08:38:30,511 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServer starting [WARN] [03/25/2024 08:38:30.512] [test-akka.actor.default-dispatcher-7] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader479]: org.opendaylight.controller.cluster.common.actor.Monitor@2d9a58a3 08:38:30,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:30,513 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 08:38:30,513 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:30,517 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 08:38:30,518 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower2, follower, downNode] 08:38:30,518 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:38:30,518 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:38:30,518 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/25/2024 08:38:30.518] [test-akka.actor.default-dispatcher-16] [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/25/2024 08:38:30.518] [test-akka.actor.default-dispatcher-16] [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/25/2024 08:38:30.519] [test-akka.actor.default-dispatcher-16] [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/25/2024 08:38:30.617] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower477]: org.opendaylight.controller.cluster.common.actor.Monitor@e5cb5b3 08:38:30,618 AM [test-akka.actor.default-dispatcher-16] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower with journal batch size 1000 08:38:30,619 AM [test-akka.actor.default-dispatcher-12] [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/25/2024 08:38:30.627] [test-akka.actor.default-dispatcher-12] [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=[]] 08:38:30,627 AM [test-akka.actor.default-dispatcher-12] [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 08:38:30,627 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=1, votedFor=null 08:38:30,627 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [03/25/2024 08:38:30.627] [test-akka.actor.default-dispatcher-16] [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=[]] 08:38:30,627 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 08:38:30,628 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/25/2024 08:38:30.628] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower477] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5fdf7d47 [WARN] [03/25/2024 08:38:30.718] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower2478]: org.opendaylight.controller.cluster.common.actor.Monitor@5cf9101c 08:38:30,719 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower2 with journal batch size 1000 08:38:30,720 AM [test-akka.actor.default-dispatcher-7] [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 08:38:30,747 AM [test-akka.actor.default-dispatcher-7] [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 08:38:30,748 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Set currentTerm=1, votedFor=null 08:38:30,748 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached -1 (of expected -1) [WARN] [03/25/2024 08:38:30.748] [test-akka.actor.default-dispatcher-12] [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=[]] 08:38:30,748 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower2: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [03/25/2024 08:38:30.748] [test-akka.actor.default-dispatcher-11] [akka://test/user/follower477] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2dd8767a 08:38:30,748 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 08:38:30,748 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/25/2024 08:38:30.749] [test-akka.actor.default-dispatcher-12] [akka://test/user/follower2478] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@2acfc2c0 08:38:30,828 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 08:38:30,829 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=true], ServerInfo[peerId=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:38:30,829 AM [test-akka.actor.default-dispatcher-12] [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]]]] 08:38:30,829 AM [test-akka.actor.default-dispatcher-12] [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]]]] 08:38:30,829 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=23dfacfd-58f2-4a07-8321-fcae71d5431a}, logIndex: 0, isSendImmediate: true 08:38:30,829 AM [test-akka.actor.default-dispatcher-12] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:38:30,829 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:30,829 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:38:30,830 AM [test-akka.actor.default-dispatcher-12] [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]]]]]] 08:38:30,830 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower downNode: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:30,830 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation RemoveServer{serverId='follower'} 08:38:30,830 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]]]]]] 08:38:30,830 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Number of entries to be appended = 1 08:38:30,830 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:38:30,830 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]]] 08:38:30,830 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]]]] 08:38:30,830 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]] 08:38:30,830 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Log size is now 1 08:38:30,831 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] 08:38:30,831 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached -1 (of expected -1) [WARN] [03/25/2024 08:38:30.831] [test-akka.actor.default-dispatcher-16] [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=[]] 08:38:30,831 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 08:38:30,831 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:30,831 AM [test-akka.actor.default-dispatcher-12] [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]]]] 08:38:30,831 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 0, lastAppliedIndex: -1 08:38:30,831 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 08:38:30,831 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 08:38:30,831 AM [test-akka.actor.default-dispatcher-12] [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]]] 08:38:30,831 AM [test-akka.actor.default-dispatcher-12] [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 08:38:30,831 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 [WARN] [03/25/2024 08:38:30.832] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower477] unhandled message from TestActor[akka://test/user/leader479]: ServerRemoved [serverId=follower] 08:38:30,832 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=downNode, isVoting=true], ServerInfo[peerId=leader, isVoting=true]]]] [WARN] [03/25/2024 08:38:30.832] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower2478] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@3589a24b [WARN] [03/25/2024 08:38:30.868] [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=[]] 08:38:30,988 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Commit index set to 0 08:38:30,988 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:38:30,988 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 [WARN] [03/25/2024 08:38:30.988] [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=[]] 08:38:30,988 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Setting last applied to 0 08:38:30,988 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Moving last applied index from -1 to 0 08:38:30,988 AM [test-akka.actor.default-dispatcher-15] [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]]] 08:38:30,988 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Persisting ApplyJournalEntries with index=0 08:38:31,32 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServer ending 08:38:31,32 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower476] 08:38:31,43 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader479] 08:38:31,45 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector480] 08:38:31,45 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector481#1199157648] 08:38:31,45 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower477] 08:38:31,47 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector482#-358817549] 08:38:31,47 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower2478] 08:38:31,49 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoLeader starting [WARN] [03/25/2024 08:38:31.053] [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@16e6c25e 08:38:31,53 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 08:38:31,55 AM [test-akka.actor.default-dispatcher-12] [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 08:38:31,55 AM [test-akka.actor.default-dispatcher-12] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [03/25/2024 08:38:31.154] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader486]: org.opendaylight.controller.cluster.common.actor.Monitor@e1f06c2 08:38:31,155 AM [test-akka.actor.default-dispatcher-12] [INFO] MockRaftActor - Starting recovery for leader with journal batch size 1000 08:38:31,156 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 08:38:31,264 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server485, votingMember=true], state: Idle 08:38:31,264 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupport - leader: No leader - returning NO_LEADER reply 08:38:31,265 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithNoLeader ending 08:38:31,265 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower483] 08:38:31,276 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector484#1600673281] 08:38:31,276 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server485] 08:38:31,276 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader486] 08:38:31,278 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeServersVotingStatus starting [WARN] [03/25/2024 08:38:31.279] [test-akka.actor.default-dispatcher-6] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader490]: org.opendaylight.controller.cluster.common.actor.Monitor@1f21a959 08:38:31,279 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:31,279 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 08:38:31,280 AM [test-akka.actor.default-dispatcher-12] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 [WARN] [03/25/2024 08:38:31.282] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower488]: org.opendaylight.controller.cluster.common.actor.Monitor@3207d924 08:38:31,282 AM [test-akka.actor.default-dispatcher-12] [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 08:38:31,282 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower2, follower] 08:38:31,282 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:38:31,282 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower with journal batch size 1000 08:38:31,283 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/25/2024 08:38:31.283] [test-akka.actor.default-dispatcher-7] [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=[]] 08:38:31,284 AM [test-akka.actor.default-dispatcher-15] [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 08:38:31,284 AM [test-akka.actor.default-dispatcher-15] [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 08:38:31,285 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Set currentTerm=1, votedFor=null [WARN] [03/25/2024 08:38:31.285] [test-akka.actor.default-dispatcher-12] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower2489]: org.opendaylight.controller.cluster.common.actor.Monitor@568f7a3d 08:38:31,285 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:38:31,285 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for follower2 with journal batch size 1000 08:38:31,285 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: -1, nextIndex: 0 08:38:31,285 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/25/2024 08:38:31.286] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower488] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7a90bacd 08:38:31,287 AM [test-akka.actor.default-dispatcher-7] [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 08:38:31,395 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]], state: Idle 08:38:31,396 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 08:38:31,396 AM [test-akka.actor.default-dispatcher-16] [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]] 08:38:31,396 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]] 08:38:31,396 AM [test-akka.actor.default-dispatcher-16] [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]]]] 08:38:31,396 AM [test-akka.actor.default-dispatcher-16] [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]]]] 08:38:31,396 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=568c0867-f469-498a-976f-703cc03f34fb}, logIndex: 0, isSendImmediate: true 08:38:31,396 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 0 08:38:31,396 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 0 08:38:31,396 AM [test-akka.actor.default-dispatcher-16] [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]]] 08:38:31,396 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: false, followerNextIndex: -1, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:31,397 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:31,397 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower 08:38:31,397 AM [test-akka.actor.default-dispatcher-16] [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]]]]]] 08:38:31,397 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 08:38:31,397 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower2=false, follower=false}, serversVisited=[]] 08:38:31,397 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Set currentTerm=1, votedFor=null 08:38:31,397 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 08:38:31,397 AM [test-akka.actor.default-dispatcher-16] [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 08:38:31,397 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]]]]]] 08:38:31,397 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=0 08:38:31,397 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Number of entries to be appended = 1 08:38:31,397 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:38:31,397 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]]] 08:38:31,398 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: -1, nextIndex: 0 08:38:31,398 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]]]] 08:38:31,398 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 08:38:31,398 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 0 is present for follower follower2 08:38:31,398 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=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]]]]]] 08:38:31,398 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]] 08:38:31,398 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Log size is now 1 08:38:31,398 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Commit index set to 0 08:38:31,398 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] 08:38:31,398 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:38:31,398 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:38:31,398 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 0, nextIndex: 1 08:38:31,398 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Setting last applied to 0 08:38:31,398 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Moving last applied index from -1 to 0 08:38:31,398 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 08:38:31,398 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]]] 08:38:31,398 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]]]] 08:38:31,399 AM [test-akka.actor.default-dispatcher-7] [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]]]]]] 08:38:31,399 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Number of entries to be appended = 1 [WARN] [03/25/2024 08:38:31.399] [test-akka.actor.default-dispatcher-16] [akka://test/user/follower2489] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@64173582 08:38:31,399 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): After cleanup, lastIndex: -1, entries to be added from: 0 08:38:31,399 AM [test-akka.actor.default-dispatcher-7] [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]]] 08:38:31,399 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=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 08:38:31,399 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]]]] 08:38:31,399 AM [test-akka.actor.default-dispatcher-7] [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]] 08:38:31,399 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Log size is now 1 08:38:31,399 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Commit index set to 0 08:38:31,399 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] 08:38:31,399 AM [test-akka.actor.default-dispatcher-7] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 0 (of expected -1) 08:38:31,399 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 0, context.getLastApplied(): -1, lastIndex(): 0 08:38:31,399 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Setting last applied to 0 08:38:31,399 AM [test-akka.actor.default-dispatcher-7] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Moving last applied index from -1 to 0 08:38:31,399 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Persisting ApplyJournalEntries with index=0 08:38:31,399 AM [test-akka.actor.default-dispatcher-7] [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/25/2024 08:38:31.399] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower488] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@6c49a2e2 08:38:31,399 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 0, nextIndex: 1 08:38:31,399 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 08:38:31,400 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=false], ServerInfo[peerId=follower, isVoting=false], ServerInfo[peerId=leader, isVoting=true]]]] 08:38:31,400 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Persisting ApplyJournalEntries with index=0 [WARN] [03/25/2024 08:38:31.400] [test-akka.actor.default-dispatcher-18] [akka://test/user/follower2489] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@570ad4a8 08:38:31,451 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]], state: Idle 08:38:31,451 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 08:38:31,451 AM [test-akka.actor.default-dispatcher-18] [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]] 08:38:31,451 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower2, isVoting=false], ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:38:31,451 AM [test-akka.actor.default-dispatcher-18] [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]]]] 08:38:31,451 AM [test-akka.actor.default-dispatcher-18] [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]]]] 08:38:31,451 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=894e574f-ed8d-487a-a65c-8db9c6d68028}, logIndex: 1, isSendImmediate: true 08:38:31,451 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 1 08:38:31,451 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from 0 to 1 08:38:31,452 AM [test-akka.actor.default-dispatcher-18] [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]]] 08:38:31,452 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:38:31,452 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 1 is present for follower follower2 08:38:31,452 AM [test-akka.actor.default-dispatcher-18] [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]]]]]] 08:38:31,452 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:38:31,452 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 1 is present for follower follower 08:38:31,452 AM [test-akka.actor.default-dispatcher-18] [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]]]]]] 08:38:31,452 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={follower=true}, serversVisited=[]] 08:38:31,452 AM [test-akka.actor.default-dispatcher-12] [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]]]]]] 08:38:31,452 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Number of entries to be appended = 1 08:38:31,452 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:38:31,452 AM [test-akka.actor.default-dispatcher-12] [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]]] 08:38:31,452 AM [test-akka.actor.default-dispatcher-12] [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]]]] 08:38:31,452 AM [test-akka.actor.default-dispatcher-15] [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]]]]]] 08:38:31,452 AM [test-akka.actor.default-dispatcher-18] [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 08:38:31,452 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Number of entries to be appended = 1 08:38:31,452 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:38:31,452 AM [test-akka.actor.default-dispatcher-12] [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]] 08:38:31,452 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Log size is now 2 08:38:31,453 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=1 08:38:31,453 AM [test-akka.actor.default-dispatcher-15] [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]]] 08:38:31,453 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Commit index set to 1 08:38:31,453 AM [test-akka.actor.default-dispatcher-15] [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]]]] 08:38:31,453 AM [test-akka.actor.default-dispatcher-12] [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] 08:38:31,453 AM [test-akka.actor.default-dispatcher-12] [DEBUG] SyncStatusTracker - follower2: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:38:31,453 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:38:31,453 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2 (Follower): Setting last applied to 1 08:38:31,453 AM [test-akka.actor.default-dispatcher-12] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Moving last applied index from 0 to 1 08:38:31,453 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower2 updated: matchIndex: 1, nextIndex: 2 08:38:31,453 AM [test-akka.actor.default-dispatcher-15] [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]] 08:38:31,453 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Log size is now 2 08:38:31,453 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: fakeSnapshot purging log to 0 for term 1 08:38:31,453 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Commit index set to 1 08:38:31,453 AM [test-akka.actor.default-dispatcher-15] [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] 08:38:31,453 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 1 (of expected -1) 08:38:31,453 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:38:31,453 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower (Follower): Setting last applied to 1 08:38:31,453 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 08:38:31,453 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Moving last applied index from 0 to 1 08:38:31,453 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 1, nextIndex: 2 08:38:31,453 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: 0 08:38:31,453 AM [test-akka.actor.default-dispatcher-12] [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]]] 08:38:31,453 AM [test-akka.actor.default-dispatcher-11] [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]]]] 08:38:31,454 AM [test-akka.actor.default-dispatcher-15] [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]]] 08:38:31,455 AM [test-akka.actor.default-dispatcher-17] [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]]]] 08:38:31,455 AM [test-akka.actor.default-dispatcher-15] [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]]]] 08:38:31,455 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower2: Persisting ApplyJournalEntries with index=1 08:38:31,455 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - follower: Persisting ApplyJournalEntries with index=1 08:38:31,505 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeServersVotingStatus ending 08:38:31,505 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower487] 08:38:31,516 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader490] 08:38:31,516 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector491] 08:38:31,517 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector492#913082218] 08:38:31,517 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower488] 08:38:31,517 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector493#1460932527] 08:38:31,518 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower2489] 08:38:31,521 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithExistingFollower starting [WARN] [03/25/2024 08:38:31.526] [test-akka.actor.default-dispatcher-18] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server496]: org.opendaylight.controller.cluster.common.actor.Monitor@6a00279e 08:38:31,527 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 08:38:31,527 AM [main] [DEBUG] RaftActorServerConfigurationSupportTest - follower: Set currentTerm=1, votedFor=leader 08:38:31,527 AM [main] [DEBUG] RaftActorServerConfigurationSupportTest - follower: Moving last applied index from -1 to 2 [WARN] [03/25/2024 08:38:31.528] [test-akka.actor.default-dispatcher-11] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/leader497]: org.opendaylight.controller.cluster.common.actor.Monitor@38af2288 08:38:31,528 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to 2 08:38:31,528 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor=leader 08:38:31,529 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:31,529 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 08:38:31,530 AM [test-akka.actor.default-dispatcher-18] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy 08:38:31,531 AM [test-akka.actor.default-dispatcher-11] [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 08:38:31,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower] 08:38:31,531 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: 2, leaderLastIndex: 2, leaderSnapShotIndex: -1 08:38:31,532 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 08:38:31,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 2, nextIndex: 3 08:38:31,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: fakeSnapshot purging log to 1 for term 1 08:38:31,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 2, leaderSnapShotIndex: 1 08:38:31,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 08:38:31,532 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest - follower: fakeSnapshot purging log to 1 for term 1 08:38:31,639 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server496, votingMember=true], state: Idle 08:38:31,639 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server496, votingMember=true] 08:38:31,640 AM [test-akka.actor.default-dispatcher-15] [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 08:38:31,640 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 08:38:31,640 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating capture snapshot for new server new-server 08:38:31,640 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 08:38:31,640 AM [test-akka.actor.default-dispatcher-15] [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] 08:38:31,640 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: 1 and term: 1 08:38:31,640 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendInstallSnapshot 08:38:31,640 AM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Snapshot 338 bytes, total chunks to send: 1 08:38:31,640 AM [test-akka.actor.default-dispatcher-15] [DEBUG] LeaderInstallSnapshotState - leader (Leader): Next chunk: total length=338, offset=0, size=338, hashCode=1701166743 08:38:31,640 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): next snapshot chunk size for follower new-server: 338 08:38:31,641 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): InstallSnapshot sent to follower Vector(user, new-server496), Chunk: 1/1 08:38:31,641 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Snapshot success - sequence number: -1 08:38:31,641 AM [test-akka.actor.default-dispatcher-6] [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 08:38:31,641 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: SnapshotComplete received 08:38:31,641 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 08:38:31,641 AM [test-akka.actor.default-dispatcher-6] [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] 08:38:31,641 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 2 08:38:31,641 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - addChunk: chunkIndex=1, lastChunkIndex=0, collectedChunks.size=0, lastChunkHashCode=-1 08:38:31,641 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Snapshot installed from leader: leader 08:38:31,643 AM [test-akka.actor.default-dispatcher-6] [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] 08:38:31,643 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - lastSequenceNumber prior to persisting applied snapshot: -1 08:38:31,643 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Snapshot success - sequence number: -1 08:38:31,643 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from -1 to 2 [WARN] [03/25/2024 08:38:31.643] [test-akka.actor.default-dispatcher-15] [akka://test/user/new-server496] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@7c17e12b 08:38:31,643 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 08:38:31,643 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: applySnapshot called 08:38:31,643 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): handleInstallSnapshot returning: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 08:38:31,643 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: SnapshotComplete received 08:38:31,643 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleInstallSnapshotReply: InstallSnapshotReply [term=1, followerId=new-server, chunkIndex=1, success=true] 08:38:31,644 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 2, nextIndex set to 3 08:38:31,644 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Sent message UnInitializedFollowerSnapshotReply to self 08:38:31,644 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: onUnInitializedFollowerSnapshotReply: UnInitializedFollowerSnapshotReply [followerId=new-server] 08:38:31,644 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: New server configuration : [ServerInfo[peerId=follower, isVoting=true], ServerInfo[peerId=new-server, isVoting=true], ServerInfo[peerId=leader, isVoting=true]] 08:38:31,644 AM [test-akka.actor.default-dispatcher-15] [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]]]] 08:38:31,644 AM [test-akka.actor.default-dispatcher-15] [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]]]] 08:38:31,644 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=79d011b3-0f17-41b8-a100-286713756940}, logIndex: 3, isSendImmediate: true 08:38:31,644 AM [test-akka.actor.default-dispatcher-15] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:38:31,644 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 08:38:31,644 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 3 is present for follower follower 08:38:31,644 AM [test-akka.actor.default-dispatcher-15] [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]]]]]] 08:38:31,644 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 3, leaderLastIndex: 3, leaderSnapShotIndex: 1 08:38:31,644 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): sendAppendEntries: 3 is present for follower new-server 08:38:31,645 AM [test-akka.actor.default-dispatcher-6] [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]]]]]] 08:38:31,645 AM [test-akka.actor.default-dispatcher-15] [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]]]]]] 08:38:31,645 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): Number of entries to be appended = 1 08:38:31,645 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 08:38:31,645 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning OK for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server496, votingMember=true] 08:38:31,645 AM [test-akka.actor.default-dispatcher-6] [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]]] 08:38:31,645 AM [test-akka.actor.default-dispatcher-11] [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]]]]]] 08:38:31,645 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest - follower: Updated server config: isVoting: true, peers: [PeerInfo [id=leader, address=, votingState=VOTING], PeerInfo [id=new-server, address=null, votingState=VOTING]] 08:38:31,645 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Number of entries to be appended = 1 08:38:31,645 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): Log size is now 2 08:38:31,645 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): After cleanup, lastIndex: 2, entries to be added from: 0 08:38:31,645 AM [test-akka.actor.default-dispatcher-11] [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]]] 08:38:31,645 AM [test-akka.actor.default-dispatcher-6] [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] 08:38:31,645 AM [test-akka.actor.default-dispatcher-11] [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]]]] 08:38:31,645 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 2 (of expected -1) 08:38:31,645 AM [test-akka.actor.default-dispatcher-11] [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]] 08:38:31,645 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Log size is now 1 08:38:31,645 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for follower updated: matchIndex: 3, nextIndex: 4 08:38:31,645 AM [test-akka.actor.default-dispatcher-11] [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] 08:38:31,645 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 2 (of expected 2) 08:38:31,645 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 08:38:31,645 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: 3, nextIndex: 4 08:38:31,645 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: true, followerNextIndex: 4, leaderLastIndex: 3, leaderSnapShotIndex: 1 08:38:31,646 AM [test-akka.actor.default-dispatcher-15] [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]]]] 08:38:31,646 AM [test-akka.actor.default-dispatcher-6] [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]]]] 08:38:31,646 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Applying to log - commitIndex: 3, lastAppliedIndex: 2 08:38:31,646 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Setting last applied to 3 08:38:31,646 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from 2 to 3 08:38:31,646 AM [test-akka.actor.default-dispatcher-6] [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]]] [WARN] [03/25/2024 08:38:31.646] [test-akka.actor.default-dispatcher-17] [akka://test/user/new-server496] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@20471fcc 08:38:31,646 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: fakeSnapshot purging log to 2 for term 1 08:38:31,646 AM [test-akka.actor.default-dispatcher-6] [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 08:38:31,646 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Persisting ApplyJournalEntries with index=3 08:38:31,767 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): Commit index set to 3 08:38:31,767 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - follower: Lagging 0 entries behind leader leader and reached 3 (of expected -1) 08:38:31,767 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 08:38:31,767 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest - follower (Follower): Setting last applied to 3 08:38:31,767 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest - follower: Moving last applied index from 2 to 3 08:38:31,767 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Commit index set to 3 08:38:31,767 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest - follower: fakeSnapshot purging log to 2 for term 1 08:38:31,767 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - new-server: Lagging 0 entries behind leader leader and reached 3 (of expected 2) 08:38:31,767 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 3, context.getLastApplied(): 2, lastIndex(): 3 08:38:31,767 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server (Follower): Setting last applied to 3 08:38:31,767 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Moving last applied index from 2 to 3 08:38:31,768 AM [test-akka.actor.default-dispatcher-6] [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]]] 08:38:31,768 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Persisting ApplyJournalEntries with index=3 08:38:31,792 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithExistingFollower ending 08:38:31,792 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower494] 08:38:31,803 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector495#-766638290] 08:38:31,803 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server496] 08:38:31,803 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader497] 08:38:31,804 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leaderCollector498] 08:38:31,805 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerForwardedToLeader starting [WARN] [03/25/2024 08:38:31.807] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server501]: org.opendaylight.controller.cluster.common.actor.Monitor@1d1c7fa1 08:38:31,808 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 08:38:31,809 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 08:38:31,810 AM [test-akka.actor.default-dispatcher-6] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [03/25/2024 08:38:31.810] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower503]: org.opendaylight.controller.cluster.common.actor.Monitor@40ad4534 08:38:31,810 AM [test-akka.actor.default-dispatcher-6] [INFO] MockRaftActor - Starting recovery for follower with journal batch size 1000 08:38:31,811 AM [test-akka.actor.default-dispatcher-15] [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 08:38:31,812 AM [test-akka.actor.default-dispatcher-15] [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 08:38:31,812 AM [test-akka.actor.default-dispatcher-15] [DEBUG] MockRaftActor - follower: Set currentTerm=1, votedFor=null 08:38:31,812 AM [test-akka.actor.default-dispatcher-15] [INFO] MockRaftActor - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 08:38:31,812 AM [test-akka.actor.default-dispatcher-15] [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] 08:38:31,812 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - follower: Last sync leader does not match current leader leader, need to catch up to -1 [WARN] [03/25/2024 08:38:31.814] [test-akka.actor.default-dispatcher-6] [akka://test/user/follower503] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4741f24 08:38:31,822 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - follower: onAddServer: AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server501, votingMember=true], state: Idle 08:38:31,822 AM [test-akka.actor.default-dispatcher-6] [DEBUG] MockRaftActor - follower: getLeaderAddress leaderId = leader peerAddress = akka://test/user/leader502 08:38:31,822 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(akka://test/), Path(/user/leader502)] 08:38:31,873 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerForwardedToLeader ending 08:38:31,873 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower499] 08:38:31,884 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector500#-85681327] 08:38:31,884 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server501] 08:38:31,885 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/leader502#-641976787] 08:38:31,885 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower503] 08:38:31,886 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerForwardToLeader starting [WARN] [03/25/2024 08:38:31.887] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/follower506]: org.opendaylight.controller.cluster.common.actor.Monitor@4b9f6aa3 08:38:31,888 AM [test-akka.actor.default-dispatcher-6] [INFO] MockRaftActor - Starting recovery for follower with journal batch size 1000 08:38:31,889 AM [test-akka.actor.default-dispatcher-6] [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 08:38:31,889 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 08:38:31,889 AM [test-akka.actor.default-dispatcher-17] [DEBUG] MockRaftActor - follower: Set currentTerm=1, votedFor=null 08:38:31,889 AM [test-akka.actor.default-dispatcher-17] [INFO] MockRaftActor - follower (Follower): The followers log is empty and the senders prevLogIndex is 0 08:38:31,890 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] 08:38:31,890 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/25/2024 08:38:31.893] [test-akka.actor.default-dispatcher-15] [akka://test/user/follower506] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4e094aa0 08:38:31,899 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - follower: onRemoveServer: RemoveServer{serverId='follower'}, state: Idle 08:38:31,900 AM [test-akka.actor.default-dispatcher-15] [DEBUG] MockRaftActor - follower: getLeaderAddress leaderId = leader peerAddress = akka://test/user/leader505 08:38:31,900 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - follower: Not leader - forwarding to leader ActorSelection[Anchor(akka://test/), Path(/user/leader505)] 08:38:31,950 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testRemoveServerForwardToLeader ending 08:38:31,950 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower504] 08:38:31,961 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader505] 08:38:31,961 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower506] 08:38:32,63 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithExistingServer starting [WARN] [03/25/2024 08:38:32.064] [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@125a3cba 08:38:32,65 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:32,65 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 08:38:32,65 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:32,67 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 08:38:32,67 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [follower] 08:38:32,67 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower follower: active: false, followerNextIndex: -1, leaderLastIndex: -1, leaderSnapShotIndex: -1 08:38:32,175 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: onAddServer: AddServer [newServerId=follower, newServerAddress=akka://test/user/follower507, votingMember=true], state: Idle 08:38:32,175 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=follower, newServerAddress=akka://test/user/follower507, votingMember=true] 08:38:32,175 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning ALREADY_EXISTS for operation AddServer [newServerId=follower, newServerAddress=akka://test/user/follower507, votingMember=true] 08:38:32,175 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithExistingServer ending 08:38:32,176 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower507] 08:38:32,186 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader508] 08:38:32,289 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout starting [WARN] [03/25/2024 08:38:32.291] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@6e8bfcd3 08:38:32,292 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node1 with journal batch size 1000 08:38:32,294 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=1, votedFor=node1 08:38:32,295 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:38:32,295 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:38:32,295 AM [test-akka.actor.default-dispatcher-15] [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/25/2024 08:38:32.393] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node2]: org.opendaylight.controller.cluster.common.actor.Monitor@1d525ce9 08:38:32,393 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node2 with journal batch size 1000 08:38:32,396 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=1, votedFor=node1 08:38:32,396 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 133 08:38:32,396 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Updated server config: isVoting: true, peers: [PeerInfo [id=node1, address=null, votingState=NON_VOTING]] 08:38:32,396 AM [test-akka.actor.default-dispatcher-15] [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 08:38:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]], state: Idle 08:38:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 08:38:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - node1: Sending local ElectionTimeout to start leader election 08:38:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: true, peers: [PeerInfo [id=node2, address=null, votingState=VOTING]] 08:38:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:38:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Received TimeoutNow - switching to Candidate 08:38:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:38:32,405 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=2, votedFor=node1 08:38:32,405 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Starting new election term 2 08:38:32,405 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 08:38:32,406 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:38:32,517 AM [test-akka.actor.default-dispatcher-6] [WARN] RaftActorServerConfigurationSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 08:38:32,517 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Updated server config: isVoting: false, peers: [PeerInfo [id=node2, address=akka://test/user/node2, votingState=VOTING]] 08:38:32,518 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 08:38:32,518 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={node1=true}, serversVisited=[]] 08:38:32,518 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeaderAndElectionTimeout ending 08:38:32,518 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower509] 08:38:32,529 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector510#1468229779] 08:38:32,530 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node1] 08:38:32,531 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector511#2097503140] 08:38:32,531 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node2] 08:38:32,533 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeader starting [WARN] [03/25/2024 08:38:32.536] [test-akka.actor.default-dispatcher-15] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/node1]: org.opendaylight.controller.cluster.common.actor.Monitor@4e5b7660 08:38:32,537 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node1 with journal batch size 1000 [WARN] [03/25/2024 08:38:32.538] [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@d99f5e0 08:38:32,539 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Starting recovery for node2 with journal batch size 1000 08:38:32,540 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=1, votedFor=downNode1 08:38:32,541 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Received ReplicatedLogEntry for recovery: index: 0, size: 163 08:38:32,541 AM [test-akka.actor.default-dispatcher-17] [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]] 08:38:32,541 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Received apply journal entries for recovery, applying to state: 0 to 0 08:38:32,541 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from -1 to 0 08:38:32,541 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Recovery completed in 112.8 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:38:32,541 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=1, votedFor=downNode2 08:38:32,542 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received ReplicatedLogEntry for recovery: index: 0, size: 163 08:38:32,542 AM [test-akka.actor.default-dispatcher-15] [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]] 08:38:32,542 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Received apply journal entries for recovery, applying to state: 0 to 0 08:38:32,542 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from -1 to 0 08:38:32,542 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Recovery completed in 48.11 μs - Switching actor to Follower - last log index = 0, last log term = 1, snapshot index = -1, snapshot term = -1, journal size = 1 08:38:32,553 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 08:38:32,553 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 08:38:32,553 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: Sending local ElectionTimeout to start leader election 08:38:32,554 AM [test-akka.actor.default-dispatcher-6] [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]] 08:38:32,554 AM [test-akka.actor.default-dispatcher-6] [DEBUG] DefaultConfigParamsImpl - No custom RaftPolicy specified. Using DefaultRaftPolicy 08:38:32,554 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Received TimeoutNow - switching to Candidate 08:38:32,554 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:38:32,554 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=2, votedFor=node1 08:38:32,554 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Starting new election term 2 08:38:32,554 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 2 08:38:33,68 AM [test-akka.actor.default-dispatcher-15] [WARN] RaftActorServerConfigurationSupport - node1: Leader election timed out - cannot apply operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 08:38:33,68 AM [test-akka.actor.default-dispatcher-15] [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]] 08:38:33,68 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - node1: tryToForwardOperationToAnotherServer - servers already visited [] 08:38:33,68 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - node1: Returning NO_LEADER for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 08:38:33,69 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node1: Last sync leader does not match current leader downNode1, need to catch up to 0 [WARN] [03/25/2024 08:38:33.070] [test-akka.actor.default-dispatcher-15] [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/25/2024 08:38:33.070] [test-akka.actor.default-dispatcher-15] [akka://test/user/node1] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@4cf703b9 08:38:33,728 AM [main] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - Peer address for peer node2 set to akka://test/user/node2 08:38:33,728 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: onChangeServersVotingStatus: ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]], state: Idle 08:38:33,728 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - Initiating ChangeServersVotingStatusState 08:38:33,728 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupport - node1: Sending local ElectionTimeout to start leader election 08:38:33,728 AM [test-akka.actor.default-dispatcher-6] [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]] 08:38:33,728 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower): Received TimeoutNow - switching to Candidate 08:38:33,729 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Election: Candidate has following voting peers: [node2] 08:38:33,729 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Set currentTerm=3, votedFor=node1 08:38:33,729 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Starting new election term 3 08:38:33,729 AM [test-akka.actor.default-dispatcher-6] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): Sending RequestVote [term=3, candidateId=node1, lastLogIndex=0, lastLogTerm=1] to peer node2 08:38:33,729 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. 08:38:33,729 AM [test-akka.actor.default-dispatcher-6] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Follower) :- Switching from behavior Follower to Candidate, election term: 3 08:38:33,729 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Cluster state: [] 08:38:33,729 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. 08:38:33,729 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 08:38:33,729 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=3, votedFor=null 08:38:33,729 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 08:38:33,729 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Set currentTerm=3, votedFor=node1 08:38:33,729 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): requestVote returning: RequestVoteReply [term=3, voteGranted=true] 08:38:33,730 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): RaftRPC message received RequestVoteReply [term=3, voteGranted=true], my term is 3 08:38:33,730 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate): handleRequestVoteReply: RequestVoteReply [term=3, voteGranted=true], current voteCount: 1 08:38:33,730 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Election: Leader has following peers: [node2, downNode2, downNode1] 08:38:33,730 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 0, leaderSnapShotIndex: -1 08:38:33,730 AM [test-akka.actor.default-dispatcher-15] [INFO] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Candidate) :- Switching from behavior Candidate to Leader, election term: 3 08:38:33,730 AM [test-akka.actor.default-dispatcher-6] [DEBUG] SyncStatusTracker - node2: Last sync leader does not match current leader node1, need to catch up to -1 08:38:33,731 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - node1: New leader node1 elected 08:38:33,731 AM [test-akka.actor.default-dispatcher-15] [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]] 08:38:33,731 AM [test-akka.actor.default-dispatcher-15] [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]]]] 08:38:33,731 AM [test-akka.actor.default-dispatcher-15] [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/25/2024 08:38:33.731] [test-akka.actor.default-dispatcher-6] [akka://test/user/node2] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@51698ef 08:38:33,731 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Replicate message: identifier: ServerOperationContextIdentifier{value=061258da-abb7-4141-beee-0584ba709449}, logIndex: 1, isSendImmediate: true 08:38:33,731 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Checking sendAppendEntries for follower node2: active: false, followerNextIndex: 0, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:38:33,731 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupport - node1: Returning OK for operation ChangeServersVotingStatus [serverVotingStatusMap={downNode2=false, downNode1=false, node2=true, node1=true}, serversVisited=[]] 08:38:33,731 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - node2: Lagging -1 entries behind leader node1 and reached 0 (of expected -1) 08:38:33,731 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 0, nextIndex: 1 [WARN] [03/25/2024 08:38:33.731] [test-akka.actor.default-dispatcher-18] [akka://test/user/node2] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@5cc625b9 08:38:33,731 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 1, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:38:33,731 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): sendAppendEntries: 1 is present for follower node2 08:38:33,731 AM [test-akka.actor.default-dispatcher-15] [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]]]]]] 08:38:33,731 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): sendAppendEntries: 1 is present for follower node2 08:38:33,732 AM [test-akka.actor.default-dispatcher-15] [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]]]]]] 08:38:33,732 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Number of entries to be appended = 1 08:38:33,732 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): After cleanup, lastIndex: 0, entries to be added from: 0 08:38:33,732 AM [test-akka.actor.default-dispatcher-15] [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]]] 08:38:33,732 AM [test-akka.actor.default-dispatcher-15] [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]]]] 08:38:33,732 AM [test-akka.actor.default-dispatcher-15] [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]] 08:38:33,732 AM [test-akka.actor.default-dispatcher-15] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Log size is now 2 08:38:33,732 AM [test-akka.actor.default-dispatcher-18] [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]]]] 08:38:33,732 AM [test-akka.actor.default-dispatcher-15] [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] 08:38:33,732 AM [test-akka.actor.default-dispatcher-15] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 0 (of expected -1) 08:38:33,732 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): handleAppendEntriesReply - FollowerLogInformation for node2 updated: matchIndex: 1, nextIndex: 2 08:38:33,732 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Applying to log - commitIndex: 1, lastAppliedIndex: 0 08:38:33,732 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Setting last applied to 1 08:38:33,732 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Moving last applied index from 0 to 1 08:38:33,732 AM [test-akka.actor.default-dispatcher-18] [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]]] 08:38:33,732 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1 (Leader): Checking sendAppendEntries for follower node2: active: true, followerNextIndex: 2, leaderLastIndex: 1, leaderSnapShotIndex: -1 08:38:33,732 AM [test-akka.actor.default-dispatcher-18] [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 08:38:33,732 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node1: Persisting ApplyJournalEntries with index=1 08:38:33,733 AM [test-akka.actor.default-dispatcher-18] [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]]]] 08:38:33,733 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Commit index set to 1 08:38:33,733 AM [test-akka.actor.default-dispatcher-18] [DEBUG] SyncStatusTracker - node2: Lagging 0 entries behind leader node1 and reached 1 (of expected -1) 08:38:33,733 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): applyLogToStateMachine, appendEntries.getLeaderCommit(): 1, context.getLastApplied(): 0, lastIndex(): 1 08:38:33,733 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2 (Follower): Setting last applied to 1 08:38:33,733 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Moving last applied index from 0 to 1 08:38:33,733 AM [test-akka.actor.default-dispatcher-18] [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]]] 08:38:33,733 AM [test-akka.actor.default-dispatcher-18] [DEBUG] RaftActorServerConfigurationSupportTest$CollectingMockRaftActor - node2: Persisting ApplyJournalEntries with index=1 08:38:33,786 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testChangeToVotingWithNoLeader ending 08:38:33,786 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower512] 08:38:33,797 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector513#1003115912] 08:38:33,797 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node1] 08:38:33,797 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/collector514#-878811731] 08:38:33,797 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/node2] 08:38:33,899 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithPriorSnapshotCompleteTimeout starting 08:38:33,902 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - Starting recovery for new-server with journal batch size 1000 [WARN] [03/25/2024 08:38:33.903] [test-akka.actor.default-dispatcher-17] [akka://test/user/termination-monitor] received dead letter from TestActor[akka://test/user/new-server517]: org.opendaylight.controller.cluster.common.actor.Monitor@a247ef5 08:38:33,905 AM [test-akka.actor.default-dispatcher-11] [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 08:38:33,906 AM [test-akka.actor.default-dispatcher-11] [INFO] DefaultConfigParamsImpl - Trying to use custom RaftPolicy org.opendaylight.controller.cluster.raft.policy.DisableElectionsRaftPolicy [WARN] [03/25/2024 08:38:34.003] [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@77b07f2e 08:38:34,4 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Moving last applied index from -1 to -1 08:38:34,4 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Set currentTerm=1, votedFor= 08:38:34,4 AM [test-akka.actor.default-dispatcher-11] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Starting recovery for leader with journal batch size 1000 08:38:34,6 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 08:38:34,6 AM [test-akka.actor.default-dispatcher-16] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Election: Leader has following peers: [] 08:38:34,102 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - Take a snapshot of current state. lastReplicatedLog is null and replicatedToAllIndex is -1 08:38:34,102 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. 08:38:34,102 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] 08:38:34,102 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: lastSequenceNumber prior to capture: -1 08:38:34,102 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: CaptureSnapshotReply received by actor 08:38:34,103 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] 08:38:34,103 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 08:38:34,103 AM [test-akka.actor.default-dispatcher-17] [INFO] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader: Removed in-memory snapshotted entries, adjusted snaphsotIndex: -1 and term: -1 08:38:34,113 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 08:38:34,113 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Initiating AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server517, votingMember=true] 08:38:34,113 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - captureToInstall should not be called in state Persisting 08:38:34,113 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Snapshot already in progress - waiting for completion 08:38:34,228 AM [test-akka.actor.default-dispatcher-11] [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 08:38:34,228 AM [test-akka.actor.default-dispatcher-11] [DEBUG] RaftActorServerConfigurationSupportTest$MockNewFollowerRaftActor - new-server: Set currentTerm=1, votedFor=null 08:38:34,228 AM [test-akka.actor.default-dispatcher-11] [DEBUG] SyncStatusTracker - new-server: Last sync leader does not match current leader leader, need to catch up to -1 08:38:34,228 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): handleAppendEntriesReply - FollowerLogInformation for new-server updated: matchIndex: -1, nextIndex: 0 08:38:34,228 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupportTest$MockLeaderRaftActor - leader (Leader): Checking sendAppendEntries for follower new-server: active: false, followerNextIndex: 0, leaderLastIndex: -1, leaderSnapShotIndex: -1 [WARN] [03/25/2024 08:38:34.230] [test-akka.actor.default-dispatcher-16] [akka://test/user/new-server517] unhandled message from Actor[akka://test/deadLetters]: org.opendaylight.controller.cluster.raft.base.messages.FollowerInitialSyncUpStatus@1fbc4915 08:38:34,328 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: handleInstallSnapshotTimeout for new server new-server 08:38:34,328 AM [test-akka.actor.default-dispatcher-17] [DEBUG] RaftActorServerConfigurationSupport - leader: Returning TIMEOUT for operation AddServer [newServerId=new-server, newServerAddress=akka://test/user/new-server517, votingMember=true] 08:38:34,328 AM [test-akka.actor.default-dispatcher-17] [WARN] RaftActorServerConfigurationSupport - leader: Timeout occured for new server new-server while waiting for prior snapshot to complete 08:38:34,328 AM [main] [INFO] RaftActorServerConfigurationSupportTest - testAddServerWithPriorSnapshotCompleteTimeout ending 08:38:34,328 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/follower515] 08:38:34,339 AM [main] [INFO] TestActorFactory - Killing actor Actor[akka://test/user/new-serverCollector516#-601894883] 08:38:34,339 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/new-server517] 08:38:34,340 AM [main] [INFO] TestActorFactory - Killing actor TestActor[akka://test/user/leader518] [INFO] [03/25/2024 08:38:34.341] [main] [CoordinatedShutdown(akka://test)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason] 08:38:34,342 AM [test-akka.actor.default-dispatcher-16] [INFO] CoordinatedShutdown - Running CoordinatedShutdown with reason [ActorSystemTerminateReason] [WARN] [03/25/2024 08:38:34.342] [test-akka.actor.default-dispatcher-16] [akka://test/system/cluster/core/daemon] unhandled message from Actor[akka://test/deadLetters]: Leave(akka://test@10.30.170.141:25520) [INFO] [03/25/2024 08:38:34.344] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - Exiting completed [INFO] [03/25/2024 08:38:34.344] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - Shutting down... 08:38:34,344 AM [test-akka.actor.default-dispatcher-16] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - Exiting completed 08:38:34,344 AM [test-akka.actor.default-dispatcher-16] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - Shutting down... 08:38:34,344 AM [test-akka.actor.default-dispatcher-16] [INFO] Cluster - Cluster Node [akka://test@10.30.170.141:25520] - Successfully shut down [INFO] [03/25/2024 08:38:34.344] [test-akka.actor.internal-dispatcher-5] [Cluster(akka://test)] Cluster Node [akka://test@10.30.170.141:25520] - Successfully shut down [INFO] [03/25/2024 08:38:34.348] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.141:25520/system/remoting-terminator] Shutting down remote daemon. 08:38:34,348 AM [test-akka.actor.default-dispatcher-6] [INFO] RemoteActorRefProvider$RemotingTerminator - Shutting down remote daemon. 08:38:34,348 AM [test-akka.actor.default-dispatcher-17] [INFO] RemoteActorRefProvider$RemotingTerminator - Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/25/2024 08:38:34.348] [test-akka.remote.default-remote-dispatcher-8] [akka://test@10.30.170.141:25520/system/remoting-terminator] Remote daemon shut down; proceeding with flushing remote transports. [INFO] [03/25/2024 08:38:34.350] [test-akka.remote.default-remote-dispatcher-9] [akka://test@10.30.170.141:25520/system/remoting-terminator] Remoting shut down. [DEBUG] [03/25/2024 08:38:34.351] [test-akka.actor.internal-dispatcher-4] [EventStream] shutting down: StandardOutLogger